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 2013/02/16 15:25:42 UTC

[Bug 54570] New: InvalidFormatException because of Absolute URI forbidden

https://issues.apache.org/bugzilla/show_bug.cgi?id=54570

            Bug ID: 54570
           Summary: InvalidFormatException because of Absolute URI
                    forbidden
           Product: POI
           Version: 3.9
          Hardware: PC
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XSLF
          Assignee: dev@poi.apache.org
          Reporter: dojolava@gmail.com
    Classification: Unclassified

When trying to extract the text from a pptx document I get the following
Exception:

Stack Trace: org.apache.poi.openxml4j.exceptions.InvalidFormatException:
Absolute URI forbidden: file://///...
    at
org.apache.poi.openxml4j.opc.PackagePartName.throwExceptionIfAbsoluteUri(PackagePartName.java:426)
    at
org.apache.poi.openxml4j.opc.PackagePartName.throwExceptionIfInvalidPartUri(PackagePartName.java:175)
    at
org.apache.poi.openxml4j.opc.PackagePartName.<init>(PackagePartName.java:83)
    at
org.apache.poi.openxml4j.opc.PackagingURIHelper.createPartName(PackagingURIHelper.java:493)
    at
org.apache.poi.openxml4j.opc.PackagePart.getRelatedPart(PackagePart.java:483)
    at org.apache.poi.xslf.XSLFSlideShow.<init>(XSLFSlideShow.java:86)
    at
org.apache.poi.xslf.extractor.XSLFPowerPointExtractor.<init>(XSLFPowerPointExtractor.java:61)

But the document can be opened by MS Office and LibreOffice. There are
complains about some missing references but there is still most of the data in
the document.

Unfortunately I can not attach the document.

-- 
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 54570] InvalidFormatException because of Absolute URI forbidden

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54570

Scott Talbert <sw...@techie.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |swt@techie.net

-- 
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 54570] InvalidFormatException because of Absolute URI forbidden

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54570

dojolava@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from dojolava@gmail.com ---
Here is the offending part, in slideXX.xml.rels:

<Relationships
xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship
TargetMode="External"
Target="file:///\\<path>.xlsx!MSCI!%5bIndicator%20compilation.xlsx%5dMSCI%20Diagramm%201"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject"
Id="rId3"/><Relationship Target="../slideLayouts/slideLayout2.xml"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"
Id="rId2"/><Relationship Target="../drawings/vmlDrawing1.vml"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing"
Id="rId1"/><Relationship TargetMode="External"
Target="file:///\\<path>.xlsx!OECD!%5bIndicator%20compilation.xlsx%5dOECD%20Diagramm%201"
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject"
Id="rId4"/></Relationships>

-- 
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 54570] InvalidFormatException because of Absolute URI forbidden

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54570

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Could you please unpack the file (.pptx is a zip of xml files) and post just
the offending rels part? That'll let us see how the offending link has been
created

-- 
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