Open glassfishrobot opened 9 years ago
Reported by martin_lpz
martin_lpz said: My fix was this:
private boolean isXml(ContentType ct) {
return ct.getSubType().equalsIgnoreCase("xml") &&
(ct.getPrimaryType().equalsIgnoreCase("text") || ct.getPrimaryType().equalsIgnoreCase("application"));
}
This issue was imported from java.net JIRA JAX_WS-1176
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:
The content-check should be change to accept also this mime-types.
Affected Versions
[2.2.10]