mercredi 16 septembre 2015

Ruby Rack 1.4.7 SOAP request corrupted when mac line returns exist

We recently upgraded a Rails 2 app on Rack 1.1.6 to Rails 3 with Rack 1.4.7. Now when an XML Soap request comes through that contains Mac line returns in the text part of the text is being dropped (Previously in Rails 2/Rack 1.1.6 this was working).

This appears to be happening at the level of Rack as a call to request.body.read shows missing data. If the same data were sent through with Unix or Windows line endings, or as binary data then everything works correctly; as it stands these requests look like invalid XML.

Does anyone know of a fix/work around for this?

Aucun commentaire:

Enregistrer un commentaire