Open glassfishrobot opened 11 years ago
Reported by @bshannon
snajper said: Hi Bill, could you also attach the testcase you have for this?
@bshannon said: Supplied offline.
Was assigned to snajper
This issue was imported from java.net JIRA JAX_WS-1133
The MimeCodec class installs some JAF DataContentHandlers that override the default DataContentHandlers included with JavaMail. Unfortunately, the JAX-WS text/xml handler is not compatible with the JavaMail version.
First, the MIME type comparison is not case insensitive.
Second, it's returning a StreamSource as the preferred type from getContent instead of String.
Third, even if you ask for a String explicitly from getTransferData, it still returns a StreamSource.
The other DataContentHandlers should be checked for similar problems.
Affected Versions
[2.2.8]