Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Complete
-
Affects Version/s: 3.2.8, 4.0.2
-
Component/s: Web
-
Labels:
-
Last commented by a User:true
Description
When Oracle JAI is installed, ImageIO.getReaderMIMETypes() and ImageIO.getWriterMIMETypes() both return a leading empty string in their arrays. This causes BufferedImageHttpMessageConverter's constructor to fail.
I doubt this is actually a Spring bug; it seems far more likely this is a JAI bug (That said, the documentation for the ImageIO methods doesn't really establish any expectations for the returned array, which is unfortunate). However, working around it in Spring may be beneficial.