You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/07/02 14:19:24 UTC
[jira] [Commented] (PROTON-543) Frame Parser error if input stream
is read before SASL is initialized in the transport
[ https://issues.apache.org/jira/browse/PROTON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14049856#comment-14049856 ]
ASF subversion and git services commented on PROTON-543:
--------------------------------------------------------
Commit 1607335 from [~gemmellr] in branch 'proton/trunk'
[ https://svn.apache.org/r1607335 ]
PROTON-543: document that Transport#sasl() must be called prior to any processing if a sasl layer is desired. Throw ISE from sasl() if process() has been called before the first sasl() invocation.
> Frame Parser error if input stream is read before SASL is initialized in the transport
> --------------------------------------------------------------------------------------
>
> Key: PROTON-543
> URL: https://issues.apache.org/jira/browse/PROTON-543
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-j
> Affects Versions: 0.5, 0.6
> Reporter: Rajith Attapattu
> Assignee: Robbie Gemmell
>
> If the input stream is read and passed into the transport, before the sasl() method of TransportImpl.java is called then the _inputProcessor defaults to FrameParser instead of being wrapped by the SASL frame parser.
> This causes a Frame Parsing error as it expects '0' as per the regular header but instead finds '3' which is the correct format if the process is the SASL frame parser.
> As per the discussion on @proton we decide to throw an exception if sasl is set after the input stream has been processed.
--
This message was sent by Atlassian JIRA
(v6.2#6252)