Skip to content

#6204 - Documents with a pre-CASMetadata initial CAS cannot be opened, checked, or repaired - #6205

Merged
reckart merged 1 commit into
release/41.xfrom
bugfix/6204-Documents-with-a-pre-CASMetadata-initial-CAS-cannot-be-opened-checked-or-repaired
Aug 2, 2026
Merged

#6204 - Documents with a pre-CASMetadata initial CAS cannot be opened, checked, or repaired#6205
reckart merged 1 commit into
release/41.xfrom
bugfix/6204-Documents-with-a-pre-CASMetadata-initial-CAS-cannot-be-opened-checked-or-repaired

Conversation

@reckart

@reckart reckart commented Aug 1, 2026

Copy link
Copy Markdown
Member

What's in the PR

  • Allow CASes with legacy or missing CASMetadata type to be read without throwing; treat absent metadata as unavailable rather than fatal
  • Extend CASMetadataUtils getters to gracefully handle CAS type systems that lack CASMetadata entirely or have outdated feature sets
  • Add regression test verifying legacy CASes without CASMetadata type can be deserialized and stamped without error
  • Promote CASMetadataTypeIsPresentCheck from reporting missing type as INFO to WARN; add detection and reporting of outdated (stale) CASMetadata with missing features
  • Refactor CASMetadataTypeIsPresentCheck to load type system descriptor via UIMAFramework.getXMLParser() instead of createTypeSystemDescription, eliminating import-resolution indirection
  • Add comprehensive test suite for CASMetadataTypeIsPresentCheck covering missing type, outdated type, missing instance, and current-up-to-date cases

How to test manually

  • See issue description

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

…, checked, or repaired

- Allow CASes with legacy or missing CASMetadata type to be read without throwing; treat absent metadata as unavailable rather than fatal
- Extend CASMetadataUtils getters to gracefully handle CAS type systems that lack CASMetadata entirely or have outdated feature sets
- Add regression test verifying legacy CASes without CASMetadata type can be deserialized and stamped without error
- Promote CASMetadataTypeIsPresentCheck from reporting missing type as INFO to WARN; add detection and reporting of outdated (stale) CASMetadata with missing features
- Refactor CASMetadataTypeIsPresentCheck to load type system descriptor via UIMAFramework.getXMLParser() instead of createTypeSystemDescription, eliminating import-resolution indirection
- Add comprehensive test suite for CASMetadataTypeIsPresentCheck covering missing type, outdated type, missing instance, and current-up-to-date cases
@reckart reckart added this to the 41.3 milestone Aug 1, 2026
@reckart reckart self-assigned this Aug 1, 2026
@reckart reckart added this to Kanban Aug 1, 2026
@reckart reckart added 🐛 Bug Something isn't working Module: CAS Doctor labels Aug 1, 2026
@github-project-automation github-project-automation Bot moved this to 🔖 To do in Kanban Aug 1, 2026
@reckart reckart changed the title #6204 - Documents with a pre-CASMetadata initial CAS cannot be opened… #6204 - Documents with a pre-CASMetadata initial CAS cannot be opened, checked, or repaired Aug 2, 2026
@reckart
reckart merged commit 19c3f1d into release/41.x Aug 2, 2026
4 checks passed
@reckart
reckart deleted the bugfix/6204-Documents-with-a-pre-CASMetadata-initial-CAS-cannot-be-opened-checked-or-repaired branch August 2, 2026 07:21
@github-project-automation github-project-automation Bot moved this from 🔖 To do to 🍹 Done in Kanban Aug 2, 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 Module: CAS Doctor

Projects

Status: 🍹 Done

Development

Successfully merging this pull request may close these issues.

1 participant