Summary: | Reaching a Rule M2.4 exception when trying to merge two files | ||
---|---|---|---|
Product: | POI | Reporter: | Lucas <lucas.renaud> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Scull.sarah |
Priority: | P2 | ||
Version: | 3.17-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
Stacktrace
The java class used for merging the 2 workbook The sheet to merge to trigger error The target workbook to trigger the error |
Description
Lucas
2018-08-16 10:32:44 UTC
Created attachment 36094 [details]
The java class used for merging the 2 workbook
Created attachment 36095 [details]
The sheet to merge to trigger error
Created attachment 36096 [details]
The target workbook to trigger the error
The problem is in the two source files, one has default content-type for extension "jpg", the other for "jpeg". It seems the application which produces these files is not creating fully standard-conforming files. one file: <Default Extension="jpeg" ContentType="image/jpeg"/> other file: <Default Extension="jpg" ContentType="image/jpeg"/> We now gracefully handle such situations with r1849814, but such files might cause other issues in LibreOffice or Excel. |