Skip to content

FIX: Skip manifest entries absent from ZIP in getXmlEntries()#286

Open
carlwilson wants to merge 3 commits intomainfrom
fix/manifest-driven-profile
Open

FIX: Skip manifest entries absent from ZIP in getXmlEntries()#286
carlwilson wants to merge 3 commits intomainfrom
fix/manifest-driven-profile

Conversation

@carlwilson
Copy link
Member

carlwilson and others added 3 commits March 4, 2026 10:31
The zero-argument form of Rules.getDnaProfile() was removed when the
isExtended parameter was introduced in 0.20. Adds it back as an
overload delegating to getDnaProfile(false), preserving the previous
default behaviour for existing callers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
A few stack trace prints were left in after debugging, these have been removed.

Closes #283
  - Profile rules (SchematronRule, MacroRule) iterate over getXmlEntries()
  and attempt to stream each entry. If a file is listed in the manifest
  but missing from the ZIP — a condition already correctly reported as
  MAN-4 — the underlying ZipFileProcessor threw an unchecked
  NoSuchElementException, surfacing as a fatal SYS-4 crash.

  - Fix filters getXmlEntries() to only return entries that exist in both
  the manifest and the ZIP archive, so profile rules never attempt to
  read phantom entries.

  - Resolves #282.
@carlwilson carlwilson self-assigned this Mar 4, 2026
@carlwilson carlwilson added the bug Something isn't working label Mar 4, 2026
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

1 participant