https://bz.apache.org/bugzilla/show_bug.cgi?id=62522

            Bug ID: 62522
           Summary: jpg,jpeg excel combinination error
           Product: POI
           Version: 3.17-FINAL
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P1
         Component: XSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 36006
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36006&action=edit
file

I have upgraded your poi version, I have a function to merge two excel file.
After merging the two files, I get a error from poi "Rule M2.4 exception : this
error should NEVER happen! If you can provide the triggering file, then please
raise a bug at https://bz.apache.org/bugzilla/enter_bug.cgi?product=POI and
attach the file that triggers it, thanks!"

I checked you source codes. It seems that it is not allowed to put two types
like jpg and jpeg at the same time. In class ContentManager.java, I check
'defaultContentType', there is key value like {'jpg','image/jpeg'}, but I want
to add a one more like {'jpeg', 'image/jpeg'}. But it seems that method
'addContentType' doesn't allow to do that.

So when I execute 'getContentType' in ContentManager.java, I always get error
as what I pointed. Could you tell me how to fix this problem?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to