Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Characters being removed from messages #1

Closed
ttonelli opened this issue Nov 30, 2012 · 3 comments
Closed

Characters being removed from messages #1

ttonelli opened this issue Nov 30, 2012 · 3 comments

Comments

@ttonelli
Copy link

Hi,

I am using a simple queue with in memory storage. When I send a message that contains "\r", this character is removed from the message somehow.

Using a wrapper around amazon's Java SQS client, I do something like this:

Queue q = client.createQueue("myqueue");
client.send(q, "Test\rMessage");
Message m = client.receive(q);

However, here m.getBody() is "TestMessage", the "\r" is lost somewhere.

I tested the same code in SQS, so this looks like a problem in ElasticMQ's handlers. Can you verify whether this is really a problem in ElasticMQ?

adamw added a commit that referenced this issue Nov 30, 2012
@adamw
Copy link
Member

adamw commented Nov 30, 2012

This was indeed a bug, and as it turned out only with \r. According to XML spec it should be escaped as an entity, and it's not that easy with Scala's XML literals - will have to move away from them at some point.

Anyway, this is now fixed. Can you try 0.6.2-SNAPSHOT?

@adamw adamw closed this as completed Nov 30, 2012
@ttonelli
Copy link
Author

Great! Thanks for the quick fix!

Yes, my test for this issue is now passing, thanks again!

Cheers,
Thiago

@adamw
Copy link
Member

adamw commented Nov 30, 2012

Np, I'll probably release 0.6.2 soon then.

adamw pushed a commit that referenced this issue Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants