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 2023/07/15 12:43:00 UTC

[jira] [Commented] (PDFBOX-5619) Check NTP time in signature tests

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

Tilman Hausherr commented on PDFBOX-5619:
-----------------------------------------

There is a correlation:
{noformat}
[ERROR] Tests run: 17, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 26.46 s <<< FAILURE! - in org.apache.pdfbox.examples.pdmodel.TestCreateSignature
[ERROR] testTimeDifference  Time elapsed: 5.422 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: Local time is off by more than 18 seconds ==> expected: <true> but was: <false>
	at org.apache.pdfbox.examples.pdmodel.TestCreateSignature.testTimeDifference(TestCreateSignature.java:233)

[ERROR] testCreateSignedTimeStamp  Time elapsed: 3.392 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: OCSP answer is too old, is from 24 seconds ago ==> expected: <true> but was: <false>
	at org.apache.pdfbox.examples.pdmodel.TestCreateSignature.checkLTV(TestCreateSignature.java:1071)
	at org.apache.pdfbox.examples.pdmodel.TestCreateSignature.testCreateSignedTimeStamp(TestCreateSignature.java:386)

[ERROR] testAddValidationInformation  Time elapsed: 2.344 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: OCSP answer is too old, is from 25 seconds ago ==> expected: <true> but was: <false>
	at org.apache.pdfbox.examples.pdmodel.TestCreateSignature.checkLTV(TestCreateSignature.java:1071)
	at org.apache.pdfbox.examples.pdmodel.TestCreateSignature.testAddValidationInformation(TestCreateSignature.java:925)
{noformat}

> Check NTP time in signature tests
> ---------------------------------
>
>                 Key: PDFBOX-5619
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5619
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Signing
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 3.0.0 PDFBox
>
>
> We keep getting "OCSP answer is too old, is from 25 seconds ago" fails on some builds. I want to find out whether this is because some build machines don't tun on the correct time.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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