Issue Details (XML | Word | Printable)

Key: MULE-3579
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Ross Mason
Reporter: Yuji Yamano
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Mule

JmsMessageUtils#toByteArray() uses platform default encoding

Created: 25/Jul/08 08:00 PM   Updated: 17/Sep/08 11:13 AM
Component/s: Transport: JMS
Affects Version/s: 2.0.2
Fix Version/s: 2.1.0

Time Tracking:
Not Specified

File Attachments: 1. Text File jms-patch.txt (14 kB)
2. Text File jms-patch.txt (13 kB)

Environment: JDK 1.5.0_15-b04, Windows XP

Labels: 20-encoding
User impact: Medium
Effort points: 0.5


 Description  « Hide
If you use non platform default encoding for TextMessage and call JmsMessageAdapter#getPayloadAsString(), retuen string is gabled.

The problem is that JmsMessageUtils#toByteArray() uses platform default encoding to convert TextMessage to bytes. The method is called from JmsMessageAdapter#getPayloadAsString() via getPayloadAsBytes().



 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
Yuji Yamano added a comment - 25/Jul/08 08:02 PM
This is the patch for rev. 12398 on 2.0.x branch.

Yuji Yamano added a comment - 25/Jul/08 08:18 PM
Oops, previous patch (attached date 25/Jul/08 08:02 PM) doesn't include property files. Please use this instead.

Ross Mason added a comment - 28/Aug/08 12:59 PM
This patch contains 2 fixes:
1) A fix to the MessageBundle utils to allow passing in different Locales for testing
2) A fix to the JMS utils to take care or encoding for TextMessage

Ross Mason added a comment - 17/Sep/08 11:10 AM
This patch has been included for the next Mule release. Thanks for submitting a patch and test case