javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

XmlDataContentHandler is not compatible with JavaMail #1133

Open glassfishrobot opened 11 years ago

glassfishrobot commented 11 years ago

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]

glassfishrobot commented 11 years ago

Reported by @bshannon

glassfishrobot commented 11 years ago

snajper said: Hi Bill, could you also attach the testcase you have for this?

glassfishrobot commented 11 years ago

@bshannon said: Supplied offline.

glassfishrobot commented 11 years ago

Was assigned to snajper

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAX_WS-1133