Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModDate in Document Information Dictionary not checked for correct date form #671

Open
asciim0 opened this issue Apr 15, 2021 · 0 comments · Fixed by #986
Open

ModDate in Document Information Dictionary not checked for correct date form #671

asciim0 opened this issue Apr 15, 2021 · 0 comments · Fixed by #986
Assignees
Labels
feature New functionality to be developed P1 High priority issues to be scheduled in the upcoming release
Milestone

Comments

@asciim0
Copy link
Contributor

asciim0 commented Apr 15, 2021

This issue is partially related to #670
It seems that within the Document Information Dictionary /CreationDate is checked for correct date notation while ModDate is not.
The file with the following Information Dictionary checks out as valid:

711 0 obj 
<<
/Creator (QuarkXPress\(R\) 8.1)
/Title <feff004c00610079006f0075007400200031>
/Producer (QuarkXPress\(R\) 8.1)
/XPressPrivate (%%DocumentProcessColors: Cyan Magenta Yellow Black\n%%EndComments)
/ModDate (20190709173525+01'00')
/CreationDate (D:20190709173525+01'00')
>>

When the CreationDate is formatted incorrectly (missing "D:" prefix) the file is reported as described in #670 . However, the /ModDate has the same incorrect formatting and it doesn't seem to matter.

IMO incorrectly formatted /ModDate should throw an error (well-formed but not valid).

@carlwilson carlwilson self-assigned this Jun 16, 2022
@carlwilson carlwilson added feature New functionality to be developed P1 High priority issues to be scheduled in the upcoming release labels Jun 16, 2022
@carlwilson carlwilson added this to the JHOVE 1.28 milestone Jun 16, 2022
@carlwilson carlwilson modified the milestones: JHOVE 1.28, OPF Hackathon 2023 Tasks Jun 21, 2023
@carlwilson carlwilson removed this from the OPF Hackathon 2023 Tasks milestone Mar 6, 2024
@carlwilson carlwilson added this to the JHOVE 1.34 milestone Aug 22, 2024
@carlwilson carlwilson linked a pull request Jan 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality to be developed P1 High priority issues to be scheduled in the upcoming release
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants