[jira] [Comment Edited] (ARTEMIS-3598) Sending text message non-UTF-8 containing special characters from OpenWire

2021-12-09 Thread Pierre-Henry Brasseur (Jira)


[ 
https://issues.apache.org/jira/browse/ARTEMIS-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17456374#comment-17456374
 ] 

Pierre-Henry Brasseur edited comment on ARTEMIS-3598 at 12/9/21, 12:07 PM:
---

I did test with same main.cpp from Activemq-cpp-library-3.9.5, with the 
following code updated:
{code:java}
            for (int ix = 0; ix < numMessages; ++ix) {
                if (ix == 4) {
                    text = (string) "Test Message  \u00DF";
                } else if (ix == 5) {
                    text = (string) "Test Message  \337";
                }
                std::auto_ptr 
message(session->createTextMessage(text));
                message->setIntProperty("Integer", ix);
                printf("Sent message #%d from thread %s : %s\n", ix + 1, 
threadIdStr.c_str(), text.c_str());
                producer->send(message.get());
            }
 {code}
and my test is still KO with same stack traces on server side for message 
6,7,8,9 and 10 fro m my example here under.

See attachments.  !Artemis - example cpp.png!


was (Author: JIRAUSER281119):
I did test with same main.cpp from Activemq-cpp-library-3.9.5, with the 
following code updated:
{code:java}
            for (int ix = 0; ix < numMessages; ++ix) {
                if (ix == 4) {
                    text = (string) "Test Message  \u00DF";
                } else if (ix == 5) {
                    text = (string) "Test Message  \337";
                }
                std::auto_ptr 
message(session->createTextMessage(text));
                message->setIntProperty("Integer", ix);
                printf("Sent message #%d from thread %s : %s\n", ix + 1, 
threadIdStr.c_str(), text.c_str());
                producer->send(message.get());
            }
 {code}
and my test is still KO wit hsame stack trace on server side.

See attachments. !Artemis - example cpp.png!

> Sending text message non-UTF-8 containing special characters from OpenWire 
> ---
>
> Key: ARTEMIS-3598
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3598
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: ActiveMQ-Artemis-Native, OpenWire
>Affects Versions: 2.16.0, 2.17.0
>Reporter: Pierre-Henry Brasseur
>Assignee: Gary Tully
>Priority: Major
> Attachments: Artemis - example cpp.png, Artemis - example-1.png, 
> Artemis - example.png, Artemis - stack traces  from cpp client.png, Artemis - 
> stack traces.png, Re Question about charset supported by Artemis.msg, main.c, 
> verifyUtf.patch
>
>
> When a text message non-UTF-8 (ISO-8859-15) containing special characters is 
> sent from OpenWire, this raised an exception 
> :"java.io.UTFDataFormatException" which is not correctly handle and prevent 
> the sending of the text message.
> See email from ActiveMQ Community in attachment for more details.
> [^Re Question about charset supported by Artemis.msg] 
>  
> This was working with previous ActiveMQ version (v5.15.9).
>  
> Identified during following test :
> Text message sent from a C program using the Fuse ActiveMQ-Client C library 
> to Artemis v2.16.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Comment Edited] (ARTEMIS-3598) Sending text message non-UTF-8 containing special characters from OpenWire

2021-12-08 Thread Gary Tully (Jira)


[ 
https://issues.apache.org/jira/browse/ARTEMIS-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17455902#comment-17455902
 ] 

Gary Tully edited comment on ARTEMIS-3598 at 12/8/21, 5:41 PM:
---

[~phbrasseur] I cannot reproduce this, with main/trunk in java and with a local 
build of main cms. It works ok. See the attached little java unit test that 
verifies from the main line. When that worked I build cms and ran your example 
main.c and it works too. Not sure what you are seeing but maybe verify with the 
latest 5.19.0 or main.


was (Author: gtully):
[~phbrasseur] I cannot reproduce this, with main in java and with a local build 
of main cms. It works ok. See the attached little java unit test that verifies 
from the main line. When that worked I build cms and ran your example main.c 
and it works too. Not sure what you are seeing but maybe verify with the latest 
5.19.0 or main.

> Sending text message non-UTF-8 containing special characters from OpenWire 
> ---
>
> Key: ARTEMIS-3598
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3598
> Project: ActiveMQ Artemis
>  Issue Type: Bug
>  Components: ActiveMQ-Artemis-Native, OpenWire
>Affects Versions: 2.16.0
>Reporter: Pierre-Henry Brasseur
>Assignee: Clebert Suconic
>Priority: Major
> Attachments: Re Question about charset supported by Artemis.msg, 
> main.c, verifyUtf.patch
>
>
> When a text message non-UTF-8 (ISO-8859-15) containing special characters is 
> sent from OpenWire, this raised an exception 
> :"java.io.UTFDataFormatException" which is not correctly handle and prevent 
> the sending of the text message.
> See email from ActiveMQ Community in attachment for more details.
> [^Re Question about charset supported by Artemis.msg] 
>  
> This was working with previous ActiveMQ version (v5.15.9).
>  
> Identified during following test :
> Text message sent from a C program using the Fuse ActiveMQ-Client C library 
> to Artemis v2.16.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)