[jira] [Commented] (PROTON-974) single symbol for mechanisms in sasl-mechanisms not recognised

2015-08-11 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on PROTON-974:


Commit dd49dc9e7945a113c0cf89e2e5da3ada24f3d8a9 in qpid-proton's branch 
refs/heads/0.10.x from [~astitcher]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=dd49dc9 ]

PROTON-974: Accept a single symbol in SASL mechs frame
- As well as an array of symbols
- This is a specific interop issue with qpidd AMQP 1.0 support


> single symbol for mechanisms in sasl-mechanisms not recognised
> --
>
> Key: PROTON-974
> URL: https://issues.apache.org/jira/browse/PROTON-974
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.10
>Reporter: Gordon Sim
>Assignee: Andrew Stitcher
>
> E.g. if a broker sends a sasl-mechanisms frame with a single symbol as the 
> value of the mechanisms field, then it appears that the cyrus-sasl support in 
> proton-c doesn't recognise that offered mechanism(?)
> {noformat}
> [0x2605d80]:  -> SASL
> [0x2605d80]:  <- SASL
> [0x2605d80]:0 <- @sasl-mechanisms(64) [sasl-server-mechanisms=:ANONYMOUS]
> [0x2605d80]:sasl error: SASL(-4): no mechanism available: No worthy mechs 
> found
> [0x2605d80]:ERROR amqp:unauthorized-access Authentication failed
> [0x2605d80]:  -> EOS
> ERROR:root:amqp:unauthorized-access: Authentication failed
> {noformat}
> From the spec, section 1.4:
> {quote}
> The multiple attribute of a field description controls whether multiple 
> element values are permitted in the representation. A single element of the 
> type specified in the field description is always permitted. Multiple values 
> are represented by the use of an array where the type of the elements in the 
> array is the type defined in the field definition.
> {quote}



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


[jira] [Commented] (PROTON-974) single symbol for mechanisms in sasl-mechanisms not recognised

2015-08-11 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on PROTON-974:


Commit e47f671d79f51ee4374b113f3360b0d05f51d30f in qpid-proton's branch 
refs/heads/master from [~astitcher]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=e47f671 ]

PROTON-974: Accept a single symbol in SASL mechs frame
- As well as an array of symbols
- This is a specific interop issue with qpidd AMQP 1.0 support


> single symbol for mechanisms in sasl-mechanisms not recognised
> --
>
> Key: PROTON-974
> URL: https://issues.apache.org/jira/browse/PROTON-974
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.10
>Reporter: Gordon Sim
>Assignee: Andrew Stitcher
>
> E.g. if a broker sends a sasl-mechanisms frame with a single symbol as the 
> value of the mechanisms field, then it appears that the cyrus-sasl support in 
> proton-c doesn't recognise that offered mechanism(?)
> {noformat}
> [0x2605d80]:  -> SASL
> [0x2605d80]:  <- SASL
> [0x2605d80]:0 <- @sasl-mechanisms(64) [sasl-server-mechanisms=:ANONYMOUS]
> [0x2605d80]:sasl error: SASL(-4): no mechanism available: No worthy mechs 
> found
> [0x2605d80]:ERROR amqp:unauthorized-access Authentication failed
> [0x2605d80]:  -> EOS
> ERROR:root:amqp:unauthorized-access: Authentication failed
> {noformat}
> From the spec, section 1.4:
> {quote}
> The multiple attribute of a field description controls whether multiple 
> element values are permitted in the representation. A single element of the 
> type specified in the field description is always permitted. Multiple values 
> are represented by the use of an array where the type of the elements in the 
> array is the type defined in the field definition.
> {quote}



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


[jira] [Commented] (PROTON-974) single symbol for mechanisms in sasl-mechanisms not recognised

2015-08-04 Thread Andrew Stitcher (JIRA)

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

Andrew Stitcher commented on PROTON-974:


This is an issue in the new Proton-C SASLcode not related to the Cyrus 
implementation specifically.

The code pn_do_mechanisms() in .../sasl/sasl.c only tries to parse a mechanisms 
from with a symbol list in it and will fail if there is no list.

> single symbol for mechanisms in sasl-mechanisms not recognised
> --
>
> Key: PROTON-974
> URL: https://issues.apache.org/jira/browse/PROTON-974
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-c
>Affects Versions: 0.10
>Reporter: Gordon Sim
>Assignee: Andrew Stitcher
>
> E.g. if a broker sends a sasl-mechanisms frame with a single symbol as the 
> value of the mechanisms field, then it appears that the cyrus-sasl support in 
> proton-c doesn't recognise that offered mechanism(?)
> {noformat}
> [0x2605d80]:  -> SASL
> [0x2605d80]:  <- SASL
> [0x2605d80]:0 <- @sasl-mechanisms(64) [sasl-server-mechanisms=:ANONYMOUS]
> [0x2605d80]:sasl error: SASL(-4): no mechanism available: No worthy mechs 
> found
> [0x2605d80]:ERROR amqp:unauthorized-access Authentication failed
> [0x2605d80]:  -> EOS
> ERROR:root:amqp:unauthorized-access: Authentication failed
> {noformat}
> From the spec, section 1.4:
> {quote}
> The multiple attribute of a field description controls whether multiple 
> element values are permitted in the representation. A single element of the 
> type specified in the field description is always permitted. Multiple values 
> are represented by the use of an array where the type of the elements in the 
> array is the type defined in the field definition.
> {quote}



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