https://issues.apache.org/bugzilla/show_bug.cgi?id=55026
--- Comment #2 from Sebastien Schneider <[email protected]> --- Created attachment 30341 --> https://issues.apache.org/bugzilla/attachment.cgi?id=30341&action=edit OPC file with Content_Types.xml containing parameters I attach a very simple OPC file with a "Content_Types.xml" which contains parameters: ContentType="application/x-resqml+xml;version=2.0;type=obj_global2dCrs" The only line of code I need to highlight the problem is the OPCPackage.open method call like that: OPCPackage p = OPCPackage.open("opc_contenttype_test_wparams.opc", PackageAccess.READ); This call throw the following exception: org.apache.poi.openxml4j.exceptions.InvalidFormatException: The specified content type 'application/x-resqml+xml;version=2.0;type=obj_global1dCrs' is not compliant with RFC 2616: malformed content type. I think that it's because the code from the /[Apache-SVN]/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentType.java doesn't support such ContentType string format. Thank you, cheers, Sebastien. -- 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]
