-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Granular metadata visibility is not enforced by OAI, IIIF, RDF #12178
Copy link
Copy link
Labels
DSpace-CRIS mergerThis ticket/PR relates to the merger of DSpace-CRIS into DSpace.This ticket/PR relates to the merger of DSpace-CRIS into DSpace.authorizationRelated to user authorization / permissionsRelated to user authorization / permissionsblockerThis ticket or PR will block whatever release milestone is associated with it.This ticket or PR will block whatever release milestone is associated with it.bugclaimed: 4Science4Science team is working on this issue & will contribute back4Science team is working on this issue & will contribute back
Milestone
Metadata
Metadata
Assignees
Labels
DSpace-CRIS mergerThis ticket/PR relates to the merger of DSpace-CRIS into DSpace.This ticket/PR relates to the merger of DSpace-CRIS into DSpace.authorizationRelated to user authorization / permissionsRelated to user authorization / permissionsblockerThis ticket or PR will block whatever release milestone is associated with it.This ticket or PR will block whatever release milestone is associated with it.bugclaimed: 4Science4Science team is working on this issue & will contribute back4Science team is working on this issue & will contribute back
Type
Projects
Status
✅ Done
Status
✅ Done
Describe the bug
PR #11964 introduces granular metadata-level security / metadata visibility controls, and the review notes indicate that metadata visibility should match the configured security levels.
However, this appears to be enforced only on the Item view level. The same protected metadata is still exposed through other outputs/endpoints, including:
It would be better if the full framework introduced in this PR were consistently folded into MetadataExposureService (or the other way around, remove MetadataExposureService & keep MetadataSecurityServiceImpl) and used by all metadata serialization/export endpoints, so that metadata visibility rules are enforced uniformly across DSpace. I believe in the end only one class should remain & handle both configurations.
This will ensure that we don't reintroduce this bug if new metadata exposure output/endpoints are added.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected behavior: metadata hidden by the configured metadata security rules should also be excluded from all export/serialization endpoints, not only from the Item view.