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

DOC-2 and DOC-3 (INFO) not reported consistently #156

Open
maria-messerschmidt opened this issue Apr 25, 2024 · 1 comment
Open

DOC-2 and DOC-3 (INFO) not reported consistently #156

maria-messerschmidt opened this issue Apr 25, 2024 · 1 comment

Comments

@maria-messerschmidt
Copy link

The two info messages for mimetype and version (DOC-2 and DOC-3) are not reported consistently, and I am not sure of the pattern of when they are and are not reported.

DOC-3 is reported in most cases regardless of other output and regardless of whether the validator is run with or without -p. However, occassionally as in example 1, it is not reported. The scenario is a basic .fods file which should validate correctly without -p and should fail validation with -p.

DOC-2 is not reported very often. In fact, this same .fods file is the only place I have managed to trigger it so far, and then only when run without -p (example 2).

Example 1: Run with -p
C:\odf\odf-validator-main>odf-validator.bat -p "filer/testfiler/T001.fods"
APP-1: [INFO] Validating filer\testfiler\T001.fods.
APP-5: [INFO] DNA ODF Spreadsheets Preservation Specification Profile report for filer\testfiler\T001.fods.
PKG-1: T001.fods [ERROR] An OpenDocument Package SHALL be a well formed Zip Archive.
POL_2: T001.fods [ERROR] Standard Compliance | The file MUST comply with the standard "OASIS Open Document Format for Office Applications (OpenDocument) v1.3".
NOT VALID, 2 errors, 0 warnings and 0 info messages.

Example 2: Run without -p
C:\odf\odf-validator-main>odf-validator.bat "filer/testfiler/T001.fods"
APP-1: [INFO] Validating filer\testfiler\T001.fods.
APP-4: [INFO] Validation report for filer\testfiler\T001.fods.
DOC-2: filer\testfiler\T001.fods [INFO] OpenDocument version 1.3 detected.
DOC-3: filer\testfiler\T001.fods [INFO] OpenDocument MIMETYPE application/vnd.oasis.opendocument.spreadsheet detected
VALID, no errors, no warnings and 2 info message found.

@maria-messerschmidt maria-messerschmidt changed the title DOC-2 and DOC3 (INFO) not reported consistently DOC-2 and DOC-3 (INFO) not reported consistently Apr 25, 2024
@carlwilson
Copy link
Member

Hi @maria-messerschmidt. I'll take a look at this and see if I can reproduce it and fix quickly if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants