You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2013/12/11 07:58:07 UTC

[jira] [Commented] (CAMEL-7057) Issue with password having double &&

    [ 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)