BufferedImageHttpMessageConverter is failing in our linux server environment, because in the constructor its calling:
then in MediaType.parseMedia(mediaType):Code:String[] readerMediaTypes = ImageIO.getReaderMIMETypes(); for (String mediaType : readerMediaTypes) { this.readableMediaTypes.add(MediaType.parseMediaType(mediaType)); } ....
This works fine locally, but the list that is returned on the server has a blank first entry, then the rest of the mime types. Seems like since this is a possibility, the default behavior should just be to skip adding that entry, rather than making the whole process go down in flamesCode:public static MediaType parseMediaType(String mediaType) { Assert.hasLength(mediaType, "'mediaType' must not be empty"); ....


Reply With Quote
