camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-10603) Realm parameter cause Exception
Date Thu, 15 Dec 2016 16:04:58 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-10603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-10603:
--------------------------------
    Fix Version/s: 2.19.0
                   2.18.2
                   2.17.5

> Realm parameter cause Exception 
> --------------------------------
>
>                 Key: CAMEL-10603
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10603
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ahc
>    Affects Versions: 2.18.1
>            Reporter: Thomas G√ľnter
>             Fix For: 2.17.5, 2.18.2, 2.19.0
>
>
> Using a ahc URI including the realm parameter leads into an unknown parameter exception:
> {{"ahc:http://www.yahoo.com?clientConfig.realm.principal=testPrincipal&clientConfig.realm.password=testPassword&clientConfig.realm.scheme=BASIC"}}
> Causes Exception:
> org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: ahc://http://www.google.com?clientConfig.realm.principal=testPrincipal
due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the
parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{realm.principal=testPrincipal}]
> Suggestion for org.apache.camel.component.ahc.AhcComponent:
> Line #44:
> {{private static final String CLIENT_REALM_CONFIG_PREFIX = "clientConfig.realm.";}}
> Line #94ff:
> Map<String, Object> realmParams = IntrospectionSupport.extractProperties(parameters,
CLIENT_REALM_CONFIG_PREFIX);
>                 realmBuilder = new Realm.Builder(realmParams.get("principal").toString(),
realmParams.get("password").toString());
>                 realmParams.remove("principal");
>                 realmParams.remove("password");
>                 setProperties(realmBuilder, realmParams);
>                 validateParameters(uri, realmParams, null);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message