qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Foglia (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (QPID-3330) Address strings unable to have empty strings as option values
Date Wed, 29 Jun 2011 21:28:29 GMT

     [ https://issues.apache.org/jira/browse/QPID-3330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Anthony Foglia updated QPID-3330:
---------------------------------

    Description: 
The Address object can not be constructed from option maps that have empty strings as values,
because of parser errors. (e.g. Address("inbound; { key: '' }").)

The issue is in AddressParser::readString.  Going into it, current points to the delimiter.
 The readChar call moves current up to one past the delimiter.  Then definition of start as
current++ moves it one further, which is past the closing delimiter of an empty string.

  was:
The Address object can not be constructed from option maps that have empty strings as values,
because of parser errors.

The issue is in AddressParser::readString.  Going into it, current points to the delimiter.
 The readChar call moves current up to one past the delimiter.  Then definition of start as
current++ moves it one further, which is past the closing delimiter of an empty string.


> Address strings unable to have empty strings as option values
> -------------------------------------------------------------
>
>                 Key: QPID-3330
>                 URL: https://issues.apache.org/jira/browse/QPID-3330
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.10, 0.11
>            Reporter: Anthony Foglia
>         Attachments: 0001-Correctly-parse-empty-strings.patch
>
>
> The Address object can not be constructed from option maps that have empty strings as
values, because of parser errors. (e.g. Address("inbound; { key: '' }").)
> The issue is in AddressParser::readString.  Going into it, current points to the delimiter.
 The readChar call moves current up to one past the delimiter.  Then definition of start as
current++ moves it one further, which is past the closing delimiter of an empty string.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Mime
View raw message