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

Robbie Gemmell commented on PROTON-1459:
----------------------------------------

All the 'plain' helper method does with the username is convert to bytes and 
send.

Looking at that process, it is using the JVM default charset, which it 
shouldnt, so the only thing I can see that might cause issue 'client side' is 
if it isnt encoding as expected as a result of that. One way to check would be 
to forego calling the plain method, and instead do everything it does yourself, 
supplying the encoded credential bytes. Another would be to verify what it 
actually sends on the wire using Wireshark. If the wire encoding seems correct, 
you'd have to look toward the server being used. Since ":" is a common 
separator, I have seen servers dissallow its use in usernames previously.

> username with : does not work on sasl.plain
> -------------------------------------------
>
>                 Key: PROTON-1459
>                 URL: https://issues.apache.org/jira/browse/PROTON-1459
>             Project: Qpid Proton
>          Issue Type: Bug
>    Affects Versions: proton-j-0.18.0
>            Reporter: Priyanka Mathur
>
> In the following code if I use a username with double colon(:) or colon in 
> the beginning eg like usernamewith:: or user::name or :username
> Sasl sasl = transport.sasl();
> sasl.plain(this.userName, this.sasToken);
> Connection is never successful.
> However if I change the username as user:name, connection is successful.
> Are there any restrictions in username ?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to