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

Feature Complete #115

Merged
merged 31 commits into from
Nov 30, 2023
Merged

Feature Complete #115

merged 31 commits into from
Nov 30, 2023

Conversation

carlwilson
Copy link
Member

No description provided.

- fix to make `ParseResultImpl.isRootName()` smarter;
- dedicated and better tests for `Validator` class; and
- tidied redundant tests in `ValidatorsTest`.
- better and tested instantiation for `MessageLogImpl`;
- replaced naive `List` matches with `Stream` implementations;
- tests and fixes for `MessageImpl` and `ValidationReport` `hashCode` and `equals`; and
- improvements to OdfDocument tests.
Merge PR: Sent to main in error
- added new `org.openpreservation.odf.validation.Rule` interface for extended checks;
- implemented `org.openpreservation.odf.validation.AbstractRule` class;
- implemented `ODF_2` compliance test and reporting;
- added `org.openpreservation.odf.validation.Rules` utility class; and
- tidied `PackageParserTest` class.
- implemented package `mimetype` entry detection as `ODF_3` rule;
- added null archive protection for `org.openpreservation.odf.pkg.OdfPackageImpl` methods; and
- added `Rules` method to get `ODF_3`rule.
- implemented rule for extension and MIME type checking;
- added `Rules` method for instantiation of rule; and
- cleaned up unnecessary exceptions.
- added necessary Package methods to implement digital signature detection;
- implemented digital signature detection for ODF_9 in `DigitalSignaturesRule`; and
- added method to `Rules` for easy rule instantiation.
- swapped `MAN-1` and `MAN-4` so that the first matches the reporting in the spec.
- added rule to detect encrypted entries in manifest;
- added method to FileEntry to flag encrypted files;
- adjusted instantiation, hash code and equals methods of FileEntry to handle encryption flag;
- added logic to manifest parser to parse encryption data;
- added a sub document detection rule for ODF_10;
- added ODF_10 rule instantiation to `Rules`; and
- added test for no package manifest to EncryptionRule.
FEAT: ODF_9 Digital Signature detection
FIX: Align messages with draft specification
DOC: Added section on detection of specification issues.
- added `SchematronRule` class to handle rules encoded as Schematron;
- added schematron rules for for `ODF_5`, `ODF_7` and `ODF_8`;
- added instatiation methods for `ODF_5`, `ODF_7` and `ODF_8` SchematronRules to `Rules`;
- added prerequisite flag to `Rule` for profile sequencing;
- working Hash and Equals for `AbstractRule`;
- convenience method to get set of XML entries from `OdfPackage`;
- convenience method to identify XML entries in `OdfPackages`;
- tidied some compiler warnings, unused imports and the like; and
- added schematron dependencies to `odf-core/pom.xml`.
- new `Profile` and `ProfileResult` classes for checking profiles;
- refactoring to facilitated location reporting;
- revamp of 'MessageLog` class with better methods;
- improved filtering methods in `MessageLogImpl`; and
- better methods for checking `ValidationReport` status.
- implemented DNA profile with pre-requisites and sequencing; and
- tests for the above.
TEST: Unit tests for profile rules
- added option to invoke the profile validator;
- fixed (hacked) console reporting to accomodate the change.
@carlwilson carlwilson merged commit 1b54173 into main Nov 30, 2023
4 checks passed
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 this pull request may close these issues.

1 participant