camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7057) Issue with password having double &&
Date Wed, 11 Dec 2013 06:58:07 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845137#comment-13845137
] 

Willem Jiang commented on CAMEL-7057:
-------------------------------------

You can work around this issue by apply the password directly on the HttpComponent just like
this
{code}
                HttpConfiguration config = new HttpConfiguration();
                config.setAuthMethod(AuthMethod.Basic);
                config.setAuthUsername("myUser");
                config.setAuthPassword("myPassword");
                // to avoid NTLM
                config.setAuthMethodPriority("Basic,Digest");

                HttpComponent http = context.getComponent("http", HttpComponent.class);
                http.setHttpConfiguration(config);
{code}

> Issue with password having double &&
> ------------------------------------
>
>                 Key: CAMEL-7057
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7057
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.12.2
>            Reporter: Marco Crivellaro
>            Assignee: Willem Jiang
>            Priority: Minor
>
> there is an issue with handling password with double && even when wrapping it
into RAW() constraint 
> For instance the use of URI 
> http://hostname/script.php?authMethod=Basic&authPassword=RAW(pa&&word)&authUsername=usr
> throws the exception: 
> org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: http://hostname/script.php?authMethod=Basic&authPassword=RAW(pa&&word)&authUsername=usr
due to: Invalid uri syntax: Double && marker found. Check the uri and remove the duplicate
& marker. 



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message