ErnstSoapTester
3 months agoOccasional Visitor
Invalid Content-Type for attachments
When adding a pdf document as an attachment to a SOAP request SoapUI generates a multipart message but using /r/n (carriage return line-feed) in the Content-Type header for the attachment:
Content-Type: application/pdf;name=generated.pdf
My web-service generates an exception on parsing the Content-Type value:
java.lang.IllegalArgumentException: Unexpected char 0x0d at 17 in Content-Type value: application/pdf; \r\n\tname=generated.pdf
I would say this is a bug in SoapUI?
It seems to have been spotted but not flagged a long time ago as well: Problem with content-type when attaching file to SoapUI rest request | SmartBear Community
Did anyone else run into this issue? I am running SoapUI 5.9.1.