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

John Hewson commented on PDFBOX-2619:
-------------------------------------

Unfortunately [r1656215|http://svn.apache.org/r1656215] breaks the build on my 
machine:

{code}
Running org.apache.pdfbox.preflight.metadata.TestSynchronizedMetadataValidation
Tests run: 12, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.288 sec <<< 
FAILURE! - in 
org.apache.pdfbox.preflight.metadata.TestSynchronizedMetadataValidation
testBadPrefixSchemas(org.apache.pdfbox.preflight.metadata.TestSynchronizedMetadataValidation)
  Time elapsed: 0.035 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<7.[4.]2> but was:<7.[]2>
        at org.junit.Assert.assertEquals(Assert.java:115)
        at org.junit.Assert.assertEquals(Assert.java:144)
        at 
org.apache.pdfbox.preflight.metadata.TestSynchronizedMetadataValidation.testBadPrefixSchemas(TestSynchronizedMetadataValidation.java:499)

testAllInfoSynhcronized(org.apache.pdfbox.preflight.metadata.TestSynchronizedMetadataValidation)
  Time elapsed: 0.019 sec  <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<2>
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.failNotEquals(Assert.java:743)
        at org.junit.Assert.assertEquals(Assert.java:118)
        at org.junit.Assert.assertEquals(Assert.java:555)
        at org.junit.Assert.assertEquals(Assert.java:542)
        at 
org.apache.pdfbox.preflight.metadata.TestSynchronizedMetadataValidation.testAllInfoSynhcronized(TestSynchronizedMetadataValidation.java:422)

testdoublePrefixSchemas(org.apache.pdfbox.preflight.metadata.TestSynchronizedMetadataValidation)
  Time elapsed: 0.033 sec  <<< FAILURE!
java.lang.AssertionError: null
        at org.junit.Assert.fail(Assert.java:86)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at org.junit.Assert.assertTrue(Assert.java:52)
        at 
org.apache.pdfbox.preflight.metadata.TestSynchronizedMetadataValidation.testdoublePrefixSchemas(TestSynchronizedMetadataValidation.java:572)
{code}

Perhaps because I'm in a different time zone?

> XMP dates contain time zone, while document info dates do not, and this isn't 
> detected by preflight
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2619
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2619
>             Project: PDFBox
>          Issue Type: Sub-task
>          Components: Preflight
>    Affects Versions: 1.8.8, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Maruan Sahyoun
>             Fix For: 1.8.9, 2.0.0
>
>         Attachments: empty_word.pdf
>
>
> Another one from the Bavaria test suite:
> {code}
> /CreationDate(D:20090317081112) 
> /ModDate(D:20090317081112)
> <xmp:CreateDate>2009-03-17T08:11:12Z</xmp:CreateDate>
> <xmp:ModifyDate>2009-03-17T08:11:12Z</xmp:ModifyDate>
> {code}
> The info dates do not have a timezone, but the xmp dates do (Z = "Zulu"). 
> This information (whether there was a timezone information in the string) is 
> "lost" in our conversion methods :-(
> Amusingly, PDF Tools says the file is valid.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to