Page 1 of 1

Issue inside BinaryPartAbstractImage class

PostPosted: Fri Mar 25, 2011 5:59 am
by ppa_waw
Inside BinaryPartAbstractImage class in createLinkedImagePart method there is one-off error in retrieving extension for given image type.
Line:
Code: Select all
String ext = info.getMimeType().substring( info.getMimeType().indexOf("/"));

Should be corrected to:
Code: Select all
String ext = info.getMimeType().substring( info.getMimeType().indexOf("/")+1);



Correct version of same line is already in createImagePart method.

Re: Issue inside BinaryPartAbstractImage class

PostPosted: Tue Apr 05, 2011 7:38 am
by ppa_waw
I do not have permission to commit this fix, may I ask for help?

Re: Issue inside BinaryPartAbstractImage class

PostPosted: Tue Apr 05, 2011 9:49 am
by jason
Thank you for this - committed as r1466.