https://issues.apache.org/bugzilla/show_bug.cgi?id=53734
Yegor Kozlov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Yegor Kozlov <[email protected]> --- Fixed in r1402470. Please try with the latest build fro trunk. Strictly speaking, MS Office generates a invalid OPC package because "javascript://" is not a valid URI. On the low level, POI uses java.net.URI to parse package relationships and this is where the exception comes from. The problem can be narrowed down to a single line: new java.net.URI("javascript://"); which failes with "java.net.URISyntaxException: Expected authority at index 13: javascript://" . The URI class is defined by RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) and it requires that double slash must be immediately followed by the authority component. I added a simple workaround: append a trailing slash if authority is missing, e.g. "javascript:///". Java can parse such URIs without any problems. Yegor -- 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]
