You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/02/29 19:55:18 UTC

[jira] [Assigned] (PDFBOX-3254) Corrupted XMP causes java.lang.StringIndexOutOfBoundsException

     [ https://issues.apache.org/jira/browse/PDFBOX-3254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr reassigned PDFBOX-3254:
---------------------------------------

    Assignee: Tilman Hausherr

> Corrupted XMP causes java.lang.StringIndexOutOfBoundsException
> --------------------------------------------------------------
>
>                 Key: PDFBOX-3254
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3254
>             Project: PDFBox
>          Issue Type: Bug
>          Components: XmpBox
>    Affects Versions: 1.8.11, 1.8.12, 2.0.0
>            Reporter: Antoine Ribes
>            Assignee: Tilman Hausherr
>             Fix For: 1.8.12, 2.0.0
>
>         Attachments: bad-fmt-95-m28154.pdf
>
>
> Using preflight version 2.0.0-RC3, the validation of the document "bad-fmt-95-m28154.pdf" causes the exception :
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 	at java.lang.String.substring(String.java:1911)
> 	at org.apache.xmpbox.xml.DomXmpParser.parseInitialXpacket(DomXmpParser.java:671)
> 	at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:139)
> 	at org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:69)
> 	at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
> 	at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:122)
> 	at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:163)
> For this document, http://www.pdf-tools.com/ gives the error message :
> bad-fmt-95-m28154.pdf does not conform to PDF/A.
> Validating file "bad-fmt-95-m28154.pdf" for conformance level pdfa-1a
> Invalid content of XMP packet header attribute 'begin': ' '.
> The document does not conform to the requested standard.
> The document's meta data is either missing or inconsistent or corrupt.
> Done.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org