Multipart Attachments not properly encoded when using
<emailMessageContentFilter> with partIndex attribute on non-text attachments
----------------------------------------------------------------------------------------------------------------------------------
Key: WT-494
URL: http://webtest-community.canoo.com/jira/browse/WT-494
Project: WebTest
Type: Bug
Versions: Future versions
Reporter: John Spann
Attachments: WebTest EmailMessageContentFilter Attachment Patch.txt
When using <emailMessageContentFilter> to retrieve specific data attachments,
such as images, WebTest converts the byte array to String, then converts back
when creating the MockConnection Response in ContextHelper.java
This causes the attachments to become improperly encoded and the
<verifyContent> step fails using the original file as the referenceFile
attribute. The fix is a 1-line change which I have attached as a patch to use
IOUtil.getByteArray(inputstream) instead of IOUtil.getString(inputstream) when
calling ContextHelper.defineAsCurrentResponse().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest