softwaremill / elasticmq

In-memory message queue with an Amazon SQS-compatible interface. Runs stand-alone or embedded.
https://softwaremill.com/open-source/
Apache License 2.0
2.51k stars 194 forks source link

Can't send a message w/binary attribute and/or more than one attribute #53

Closed brainoutsource closed 9 years ago

brainoutsource commented 9 years ago

Hello!

I'm trying to send a message having two String attributes and a message having at least one Binary attribute.

For example, this request fails with response code 500:

{  
  "Action":[  
    "SendMessage"
  ],
  "Version":[  
    "2012-11-05"
  ],
  "MessageBody":[  
    "Test message"
  ],
  "MessageAttribute.1.Name":[  
    "stringAttribute"
  ],
  "MessageAttribute.1.Value.StringValue":[  
    "someString"
  ],
  "MessageAttribute.1.Value.DataType":[  
    "String"
  ],
  "MessageAttribute.2.Name":[  
    "binaryAttribute"
  ],
  "MessageAttribute.2.Value.BinaryValue":[  
    "c29tZVN0cmluZw=="
  ],
  "MessageAttribute.2.Value.DataType":[  
    "Binary"
  ]
}

However, a message having only one String attribute is sent fine.

Unfortunately, I have no logs from the ElasticMQ, the only thing's visible from the client side is 500 There was an internal server error.

adamw commented 9 years ago

Currently only String attributes are supported - adding binary attributes support shouldn't be a problem, but it was never done. Maybe you'd like to try a PR? :)

brainoutsource commented 9 years ago

Working on it

adamw commented 9 years ago

Awesome! :)

adamw commented 9 years ago

Fixed in 0.8.9 as far as I know