metro-jax-ws icon indicating copy to clipboard operation
metro-jax-ws copied to clipboard

XmlDataContentHandler should accept mime-types case-insensitiv

Open Tomas-Kraus opened this issue 3 years ago • 0 comments

We are using JASWX-RT in our Webapplication. If we receive a email with the content-type "application/XML" (XML upper case) an exception is thrown by com.sun.xml.ws.encoding.XmlDataContentHandler:

java.io.IOException: Cannot convert DataSource with content type "application/XML" to object in XmlDataContentHandler
	at com.sun.xml.ws.encoding.XmlDataContentHandler.getContent(XmlDataContentHandler.java:100)
	at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:795)
	at javax.activation.DataHandler.getContent(DataHandler.java:542)
	at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1420)

The content-check should be change to accept also this mime-types.

Affected Versions

[2.2.10]

Source: https://github.com/javaee/metro-jax-ws/issues/1176 Author: glassfishrobot

Tomas-Kraus avatar Jun 02 '22 17:06 Tomas-Kraus