You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/10/21 16:24:04 UTC
[Bug 60294] New: Add "unknown" ShapeType for 4095
https://bz.apache.org/bugzilla/show_bug.cgi?id=60294
Bug ID: 60294
Summary: Add "unknown" ShapeType for 4095
Product: POI
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: HSLF
Assignee: dev@poi.apache.org
Reporter: tallison@mitre.org
On TIKA-2129, Seva Alekseyev shared a file that throws:
java.lang.IllegalArgumentException: Unknown shape type: 4095
at org.apache.poi.sl.usermodel.ShapeType.forId(ShapeType.java:314)
at
org.apache.poi.hslf.usermodel.HSLFShapeFactory.createSimpleShape(HSLFShapeFactory.java:98)
at
org.apache.poi.hslf.usermodel.HSLFShapeFactory.createShape(HSLFShapeFactory.java:62)
at org.apache.poi.hslf.usermodel.HSLFSheet.getShapes(HSLFSheet.java:173)
at org.apache.tika.parser.microsoft.HSLFExtractor.parse(HSLFExtractor.java:93)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:149)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:117)
When I save the file as pptx, the shape is called "AutoShape". According to one
vendor of MSOffice processing tools, 4095 is a recognized code for 'Unknown'.
Any objections to adding this to ShapeType?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60294] Add "unknown" ShapeType for 4095
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60294
Andreas Beeker <ki...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #2 from Andreas Beeker <ki...@apache.org> ---
fixed via r1766227
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60294] Add "unknown" ShapeType for 4095
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60294
--- Comment #4 from Tim Allison <ta...@mitre.org> ---
Thank you, Andi!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60294] Add "unknown" ShapeType for 4095
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60294
--- Comment #1 from Andreas Beeker <ki...@apache.org> ---
For shape types 0x0FFF is not defined (see MSOSPT [1]) - I could only find
something for MSODGMT [2]. When the file is saved as .pptx, PP2016 create a
custom geometry shape depicting a rectangle, but in .ppt I can't find that
freeform shape structure.
So I would reuse the shape type NOT_PRIMITIVE in this case and not introduce
another enumeration value.
[1] https://msdn.microsoft.com/en-us/library/dd949385(v=office.12).aspx
[2] https://msdn.microsoft.com/en-us/library/dd953236(v=office.12).aspx
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60294] Add "unknown" ShapeType for 4095
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60294
--- Comment #3 from Andreas Beeker <ki...@apache.org> ---
... beside of reading the .ppt, I've also successfully rendered it ...
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org