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

SYS-1: [ERROR] Package could not be parsed, due to an exception. #195

Open
maria-messerschmidt opened this issue Oct 1, 2024 · 1 comment · Fixed by #208
Open

SYS-1: [ERROR] Package could not be parsed, due to an exception. #195

maria-messerschmidt opened this issue Oct 1, 2024 · 1 comment · Fixed by #208
Milestone

Comments

@maria-messerschmidt
Copy link

The file AT020.ods previously reported POL_1 when validating with profile since it is encrypted via LibreOffice. Without profile, it used to generate XML-3 errors, and this is still the case, but instead of POL_1, it now reports SYS-1 with profile.
AT020.ods

C:\ODF\odf-validator-0.14.0>odf-validator.bat -p C:\Users\maria\Desktop\014test\AT020.ods
APP-1: [INFO] Validating C:\Users\maria\Desktop\014test\AT020.ods.
APP-4: [INFO] Validation report for C:\Users\b340777\Desktop\014test\AT020.ods.
DOC-2: [INFO] package OpenDocument version unknown detected.
XML-3: [ERROR] settings.xml Not a well formed XML document. XML parsing exception at line 1 and column 1: Invalid byte 1 of 1-byte UTF-8 sequence..
DOC-3: [INFO] mimetype OpenDocument MIMETYPE application/vnd.oasis.opendocument.spreadsheet detected
XML-3: [ERROR] manifest.rdf Not a well formed XML document. XML parsing exception at line 1 and column 1: Invalid byte 1 of 1-byte UTF-8 sequence..
XML-3: [ERROR] meta.xml Not a well formed XML document. XML parsing exception at line 1 and column 1: Invalid byte 1 of 1-byte UTF-8 sequence..
PKG-7: [WARNING] Thumbnails\thumbnail.png An OpenDocument Package SHOULD contain a preview image Thumbnails/thumbnail.png.
XML-3: [ERROR] content.xml Not a well formed XML document. XML parsing exception at line 1 and column 1: Invalid byte 1 of 1-byte UTF-8 sequence..
XML-3: [ERROR] styles.xml Not a well formed XML document. XML parsing exception at line 1 and column 1: Invalid byte 2 of 2-byte UTF-8 sequence..
NOT VALID, 5 errors, 1 warnings and 2 info messages.

SYS-1: [ERROR] Package could not be parsed, due to an exception. | Unexpected Exception caught when executing Schematron checks.

@carlwilson carlwilson added this to the v0.15 milestone Oct 16, 2024
@carlwilson carlwilson linked a pull request Oct 30, 2024 that will close this issue
@maria-messerschmidt
Copy link
Author

This is now correctly reporting POL_1 again along with a new WARNING PKG-10. Without profile, only the warnings are reported.

Without profile
APP-1: [INFO] Validating D:\odsfiler\AT020.ods.
APP-4: [INFO] Validation report for D:\odsfiler\AT020.ods.
DOC-2: [INFO] package OpenDocument version 1.3 detected.
PKG-10: [WARNING] settings.xml Encrypted file entry detected: settings.xml.
DOC-3: [INFO] mimetype OpenDocument MIMETYPE application/vnd.oasis.opendocument.spreadsheet detected
PKG-10: [WARNING] meta.xml Encrypted file entry detected: meta.xml.
PKG-7: [WARNING] Thumbnails\thumbnail.png An OpenDocument Package SHOULD contain a preview image Thumbnails/thumbnail.png.
PKG-10: [WARNING] content.xml Encrypted file entry detected: content.xml.
PKG-10: [WARNING] styles.xml Encrypted file entry detected: styles.xml.
INCOMPLETE encrypted entries are not supported, 0 errors, 5 warnings and 2 info messages.

With profile:
APP-1: [INFO] Validating D:\odsfiler\AT020.ods.
APP-4: [INFO] Validation report for D:\odsfiler\AT020.ods.
DOC-2: [INFO] package OpenDocument version 1.3 detected.
PKG-10: [WARNING] settings.xml Encrypted file entry detected: settings.xml.
DOC-3: [INFO] mimetype OpenDocument MIMETYPE application/vnd.oasis.opendocument.spreadsheet detected
PKG-10: [WARNING] meta.xml Encrypted file entry detected: meta.xml.
PKG-7: [WARNING] Thumbnails\thumbnail.png An OpenDocument Package SHOULD contain a preview image Thumbnails/thumbnail.png.
PKG-10: [WARNING] content.xml Encrypted file entry detected: content.xml.
PKG-10: [WARNING] styles.xml Encrypted file entry detected: styles.xml.
INCOMPLETE encrypted entries are not supported, 0 errors, 5 warnings and 2 info messages.

APP-5: [INFO] DNA ODF Spreadsheets Preservation Specification Profile report for D:\odsfiler\AT020.ods.
POL_1: [ERROR] settings.xml Encryption | The package MUST NOT contain any encrypted entries.
POL_1: [ERROR] manifest.rdf Encryption | The package MUST NOT contain any encrypted entries.
POL_1: [ERROR] meta.xml Encryption | The package MUST NOT contain any encrypted entries.
POL_1: [ERROR] content.xml Encryption | The package MUST NOT contain any encrypted entries.
POL_1: [ERROR] styles.xml Encryption | The package MUST NOT contain any encrypted entries.
INCOMPLETE encrypted entries are not supported, 5 errors, 5 warnings and 2 info messages.

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

Successfully merging a pull request may close this issue.

2 participants