[ https://issues.apache.org/jira/browse/PDFBOX-2417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14187337#comment-14187337 ]
Ralf Hauser commented on PDFBOX-2417: ------------------------------------- "same" problem: Yes and no: there are several control-flows when parsing xml and the offending element is not placed at the identical position relative to the overall xml. On the other hand, yes, both times the rdf:Description xmlns: attribute is checked before it has been pushed, so just push it before the check (as we are in a create method) > xmp regression? 7.3 : Error on MetaData, Schema is not set in this document : > http://ns.adobe.com/xap/1.0/sType/Dimensions# > --------------------------------------------------------------------------------------------------------------------------- > > Key: PDFBOX-2417 > URL: https://issues.apache.org/jira/browse/PDFBOX-2417 > Project: PDFBox > Issue Type: Bug > Components: Preflight > Affects Versions: 2.0.0 > Reporter: Ralf Hauser > Fix For: 2.0.0 > > Attachments: good0011.pdf, patch2417.txt, patch2417a.txt > > > oops, the error message has changed a little bit: > was "7.6 : Error on MetaData, Type not defined : Dimensions" > org.apache.xmpbox.xml.XmpParsingException: Schema is not set in this document > : http://ns.adobe.com/xap/1.0/sType/Dimensions# > at > org.apache.xmpbox.xml.DomXmpParser.checkPropertyDefinition(DomXmpParser.java:808) > at > org.apache.xmpbox.xml.DomXmpParser.parseLiDescription(DomXmpParser.java:530) > at > org.apache.xmpbox.xml.DomXmpParser.createProperty(DomXmpParser.java:353) > at > org.apache.xmpbox.xml.DomXmpParser.parseDescriptionRoot(DomXmpParser.java:292) > at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:206) > at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:114) > at > org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:66) > at > org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73) > at > org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:88) > at > org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168) -- This message was sent by Atlassian JIRA (v6.3.4#6332)