You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Peter Pfort (JIRA)" <ji...@apache.org> on 2009/03/26 16:27:42 UTC

[jira] Created: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

OpenWire encode and decode UTF8 incorrect
-----------------------------------------

                 Key: AMQCPP-232
                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
             Project: ActiveMQ C++ Client
          Issue Type: Bug
          Components: Openwire
    Affects Versions: 2.2.5
         Environment: Windows XP SP 3, Visual Studio 2008
            Reporter: Peter Pfort
            Assignee: Timothy Bish


Hallo,

we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".

All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
 consumer.

The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs


Regards,
Peter

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


[jira] Resolved: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQCPP-232.
---------------------------------

    Resolution: Fixed

Patch applied, thanks!



> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Updated: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish updated AMQCPP-232:
--------------------------------

    Fix Version/s: 3.0
                   2.2.6

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Updated: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Martin Schlapfer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Schlapfer updated AMQCPP-232:
------------------------------------

    Attachment: OpenwireStringSupport_fixed.patch

Found a problem with readString during testing of encodings containing 1-byte AND 2-byte sequences.  For a 1-byte sequence the value was not placed back in the value array.  Please use this updated patch instead of the previous I had attached.  Thanks.

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch, OpenwireStringSupport.patch, OpenwireStringSupport_fixed.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Commented: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Martin Schlapfer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50906#action_50906 ] 

Martin Schlapfer commented on AMQCPP-232:
-----------------------------------------

Tim/Peter, 

Having just worked in this area on another piece of software, I have a few code review comments on this patch: 

(1) In the readString method, the transformation from UTF8 to Unicode should be limited to 1 byte (max value 255) since the UTF8 data is decoded in this method into a byte array. Decoding values above 255 and stuffing the value into a byte value will only cause debugging problems down then road when receiving UTF8 data with values above 255. Thus, as with the code before patch was applied (with values above 127) , the readString method should throw an IO Exception if a Unicode value greater than 255 is encountered indicating "Encoding is not supported". 

(2) For performance reasons (although not much of a factor with 1 byte Unicode, however greater factor in supporting 2 byte and 4 byte Unicode), bitwise operators should be used to decode / encode between UTF8 and Unicode rather than arithmetic. 

(3) The "null character", value 0, should not be skipped. It should be treated as a character and decoded / endcoded along with the rest of the characters. The null character is a valid value in UTF8 and Unicode (and c++ std::string's). The null character is a C style string programming artifact. 

my two cents, thanks, 
Martin. 



> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Commented: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51017#action_51017 ] 

Timothy Bish commented on AMQCPP-232:
-------------------------------------

I've added the patches to the trunk code today, I'll work on adding it to the 2.x branch tomorrow.  Great Work!  Thanks for the patches. keep them coming  :)

I also added a small benchmark test for the OpenWireStringSupport class to the benchmarks suite for performance comparisons.

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch, OpenwireStringSupport_fixed.patch, OpenwireStringSupportTest.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Updated: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Peter Pfort (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Pfort updated AMQCPP-232:
-------------------------------

    Attachment: OpenwireStringSupport.cpp

Hi,

here is the changed src\main\activemq\connector\openwire\utils\OpenwireStringSupport.cpp.

Peter

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>         Attachments: OpenwireStringSupport.cpp
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Updated: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Martin Schlapfer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Schlapfer updated AMQCPP-232:
------------------------------------

    Attachment: OpenwireStringSupport.patch

Updated patch file, per previous comments.

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch, OpenwireStringSupport.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Updated: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Martin Schlapfer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Schlapfer updated AMQCPP-232:
------------------------------------

    Attachment: OpenwireStringSupportTest.patch

Updated cppunit test case for OpenwireStringSupportTest to support patch to OpenwireStringSupport.

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch, OpenwireStringSupport_fixed.patch, OpenwireStringSupportTest.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Resolved: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQCPP-232.
---------------------------------

    Resolution: Fixed

Resolved, patches added to trunk and 2.x

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch, OpenwireStringSupport_fixed.patch, OpenwireStringSupportTest.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Updated: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Martin Schlapfer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Schlapfer updated AMQCPP-232:
------------------------------------

    Attachment:     (was: OpenwireStringSupport.patch)

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch, OpenwireStringSupport_fixed.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Updated: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Peter Pfort (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Pfort updated AMQCPP-232:
-------------------------------

    Attachment: OpenwireStringSupport.patch

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>         Attachments: OpenwireStringSupport.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Reopened: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Martin Schlapfer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Schlapfer reopened AMQCPP-232:
-------------------------------------

    Regression: [Regression]

Reopening to submit patch as mentioned in previous comment.

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Commented: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50834#action_50834 ] 

Timothy Bish commented on AMQCPP-232:
-------------------------------------

When attaching a fix its much nicer if you could attach a patch file as its easier to apply to the different branches of code, also I can't do anything until you resubmit your patch and select to grant the code to the ASF license.

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>         Attachments: OpenwireStringSupport.cpp
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Commented: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50907#action_50907 ] 

Timothy Bish commented on AMQCPP-232:
-------------------------------------

We welcome additional patches.

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Commented: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51008#action_51008 ] 

Timothy Bish commented on AMQCPP-232:
-------------------------------------

I won't get to this until tomorrow or sat, so feel free to augment the existing CPPUnit test for the code and attach that patch as well.  :)

Thanks for the contribution.

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>             Fix For: 2.2.6, 3.0
>
>         Attachments: OpenwireStringSupport.patch, OpenwireStringSupport_fixed.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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


[jira] Updated: (AMQCPP-232) OpenWire encode and decode UTF8 incorrect

Posted by "Peter Pfort (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Pfort updated AMQCPP-232:
-------------------------------

    Attachment:     (was: OpenwireStringSupport.cpp)

> OpenWire encode and decode UTF8 incorrect
> -----------------------------------------
>
>                 Key: AMQCPP-232
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-232
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: Openwire
>    Affects Versions: 2.2.5
>         Environment: Windows XP SP 3, Visual Studio 2008
>            Reporter: Peter Pfort
>            Assignee: Timothy Bish
>         Attachments: OpenwireStringSupport.patch
>
>
> Hallo,
> we are using topic messages to sent messages from one user to another. Our program subscribe a durable consumer with selector "UserName='<user>'" and send a message with the property "UserName" and value "<user>".
> All works fine, when <user> contains only ASCII characters. When <user> contains non ASCII characters like äöüßé, the message is not send to the
>  consumer.
> The problem ist that readString and writeString in OpenwireStringSupport.cpp have bugs
> Regards,
> Peter

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