You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jeremy Anderson (JIRA)" <ji...@apache.org> on 2014/09/08 15:11:28 UTC

[jira] [Comment Edited] (PDFBOX-2318) NPE in new DomXmpParser when no type is found

    [ https://issues.apache.org/jira/browse/PDFBOX-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14121819#comment-14121819 ] 

Jeremy Anderson edited comment on PDFBOX-2318 at 9/8/14 1:11 PM:
-----------------------------------------------------------------

Updated patch to continue adding properties when a IllegalArgumentException occurs during property abstraction.  Typically occurs for unrecognized datetime formats( ie. 2010-07-28T11:02:12.000CEST)


was (Author: rpialum):
Updated patch to continue adding properties when a IllegalArgumentException occurs during property abstraction.  Typically occurs for unrecognized datetim formats( ie. 2010-07-28T11:02:12.000CEST)

> NPE in new DomXmpParser when no type is found
> ---------------------------------------------
>
>                 Key: PDFBOX-2318
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2318
>             Project: PDFBox
>          Issue Type: Bug
>          Components: XmpBox
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Anderson
>              Labels: patch
>         Attachments: PDFBOX-2318.patch, jsr170-1.0.pdf
>
>
> Discovered this bug while trying to sync both TIKA and PDFBOX to their current SNAPSHOT builds.
> Issue came to light when running Tika's JpegParserTest.testJPEGEmptyEXIFDateTime() junit test case since the test file contains the following property photoshop:LegacyIPTCDigest which is a non defined property in the PhotoshopSchema.
> This causes a null Type to be created in DomXmpParser.parseDescriptionRoot().  The solution in my patch is to default to text for any undefined types.  It may be beneficial to also log a warning about such types so that the schema files can be properly amended.  (Currently the LegacyIPTCDigest has not been added to the Schema in this patch)
> Relates to work done via Tika in TIKA-1285



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