* Lukas Ocilka <lukas.ocilka@suse.cz> [Apr 12. 2010 16:19]:
Hi,
We've found out that our RoR-based application can crash if broken XML is sent as a request to the application REST API.
I've tried to create a test case that simulates sending XML - as found on several forums and howtos - by using @request.env['RAW_POST_DATA'] but this variable seems to be ignored during the test. See the attached file, please.
Hmm, what makes you think RAW_POST_DATA gets ignored ? How does the receiving end (CustomersController) look like ? According to the Rails documentation, the request.body() is delivered as a StringIO. So you need request.body.read() to access its contents. Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-ruby+help@opensuse.org