activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Pfort (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQCPP-346) No UTF8 conversation in OpenWire strings
Date Fri, 21 Jan 2011 11:01:52 GMT
No UTF8 conversation in OpenWire strings
----------------------------------------

                 Key: AMQCPP-346
                 URL: https://issues.apache.org/jira/browse/AMQCPP-346
             Project: ActiveMQ C++ Client
          Issue Type: Bug
    Affects Versions: 3.2.4, 3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.1.3
         Environment: Windows XP/VISTA/7
            Reporter: Peter Pfort
            Assignee: Timothy Bish


Hello,

I have found a bug in the implementation of the OpenWire protocol. When you have non ascii
character i.e. in the selector of a topic consumer, then the program hangs in createConsumer.

The problem is in the class BaseDataStreamMarshaller. In BaseDataStreamMarshaller::tightMarshalString1()
thinks, the string will be converted to UTF8, but BaseDataStreamMarshaller::tightMarshalString2()
write out the string with dataOut->writeChars( value );

I have changed BaseDataStreamMarshaller::tightMarshalString2() to dataOut->writeUTF( value
); and everything works fine.

Please correct it in the source.

Best regards

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message