PPTX: exception resolving rel reference to '../customXml/item1.xml'
Issue #1046
resolved
Reported by Marc Mittag on the okapi-users list. He sent me a sample file that demonstrates this, which I can share, but isn’t postable here. I’ve attached a somewhat hacky testcase by grafting the offending rels line onto a clean file.
java.lang.IllegalStateException: Unable to resolve '../customXml/item1.xml' against path ''.
at net.sf.okapi.filters.openxml.Relationships.normalizeTarget(Relationships.java:198)
at net.sf.okapi.filters.openxml.Relationships.addRelationship(Relationships.java:104)
at net.sf.okapi.filters.openxml.Relationships.parseFromXML(Relationships.java:156)
at net.sf.okapi.filters.openxml.Document$General.getRelationships(Document.java:369)
at net.sf.okapi.filters.openxml.Document$General.initializeMainPartNameAndDocumentRelationshipsNamespace(Document.java:157)
at net.sf.okapi.filters.openxml.Document$General.open(Document.java:129)
at net.sf.okapi.filters.openxml.OpenXMLFilter.openDocument(OpenXMLFilter.java:435)
at net.sf.okapi.filters.openxml.OpenXMLFilter.next(OpenXMLFilter.java:264)
at net.sf.okapi.steps.common.RawDocumentToFilterEventsStep.handleEvent(RawDocumentToFilterEventsStep.java:135)
at net.sf.okapi.common.pipeline.Pipeline.execute(Pipeline.java:117)
at net.sf.okapi.common.pipeline.Pipeline.process(Pipeline.java:227)
at net.sf.okapi.common.pipeline.Pipeline.process(Pipeline.java:199)
at net.sf.okapi.common.pipelinedriver.PipelineDriver.processBatch(PipelineDriver.java:182)
at net.sf.okapi.applications.tikal.Main.extractFile(Main.java:1624)
at net.sf.okapi.applications.tikal.Main.process(Main.java:1005)
at net.sf.okapi.applications.tikal.Main.main(Main.java:604)
Comments (8)
-
reporter -
reporter - attached invalid_rel.pptx
- edited description
-
reporter - changed status to resolved
Fix issue
#1046: ignore invalid openxml rels, rather than crashing→ <<cset 7bc165283ed8>>
-
reporter -
assigned issue to
-
assigned issue to
-
reporter - changed status to open
-
reporter -
reporter - changed status to resolved
-
reporter - changed milestone to 1.42.0
- Log in to comment
Cross-posting my response from the okapi-users list: