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

FIX: Policy crash when package has no manifest #205

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

carlwilson
Copy link
Member

  • added check for null manifest when attempting to list package XML files.

Closes #193

- added check for null manifest when attempting to list package XML files.

Closes #193
@carlwilson carlwilson added the bug Something isn't working label Oct 29, 2024
@carlwilson carlwilson added this to the v0.15 milestone Oct 29, 2024
@carlwilson carlwilson self-assigned this Oct 29, 2024
@carlwilson carlwilson merged commit 00da92f into integration Oct 29, 2024
5 checks passed
@carlwilson carlwilson deleted the fix/missing-manifest branch October 29, 2024 11:31
carlwilson added a commit that referenced this pull request Oct 30, 2024
* DEV: v0.15.0 dev version. (#202)

* FIX: Double validation reporting (#201)

- removed the validation report output from profile reporting.

* FIX: Policy crash when document unparsable (#203)

* Dev/0.15 (#204)

* DEV: v0.15.0 dev version.

* DEV: v0.15.0 dev version.

* FIX: Policy crash when package has no manifest (#205)

- added check for null manifest when attempting to list package XML files.

Closes #193

* FIX: Crashing policy macro check of unreadable entries. (#206)

- null stream entries are no longer checked for macros.

* FIX: Version detection issues (#207)

* FIX: Version detection issues

- using full manifest entry name rather than simply file name; and
- use appropriate namespace for detection.

* FIX: Version detection fall-through.

* FIX: Handling of encrypted entries (#208)

- `PackageParser` changes:
  - parsing of `mimetype` and `META-INF/manifest.xml` are now done up front;
  - simpleified entry handling;
  - dedicated methods for mimetype and manifest parsing;
  - cleaned up handling of bad zip entries prior to moving this to the zip classes;
- `OdfPackage` now has an `isEncrypted()` method to check if the package contains encrypted entries;
- simplifed message processing in `ValidatingParser`;
- addded encryption detection to prevent validation and profiling of encrypted package entries;
- CLI reports incomplete validation for packages with encrypted entries, though this is still a little hacky.

* REL: v0.16.0 (#209)

- bumped maven version -> 0.16.0;
- updated version in batch start files; and
- updated version in README and other documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant