Skip to content

[dtq-dev-9-base] Fix dspace-customers 1083 finding 9: check READ on the item resolved from the handle (port of #1557) - #1579

Open
Kasinhou wants to merge 1 commit into
dtq-dev-93from
v9base/port-1557
Open

Kasinhou wants to merge 1 commit into
dtq-dev-93from
v9base/port-1557

Conversation

@Kasinhou

@Kasinhou Kasinhou commented Oct 29, 2026 •

Copy link
Copy Markdown

✅ ČISTÝ CHERRY-PICK Z v7 (dtq-dev)

Pre reviewera: čistý cherry-pick fixu z v7 (dtq-dev) do dtq-dev-9-base — bez konfliktov, produkčný kód bez manuálnych úprav.

Zdroj v7: #1557
Part of UFAL/Propagate PRs to v9: dataquest-dev/dspace-customers#1107

🤖 Generated with Claude Code

…from the handle (#1557)

allzip checked READ on {uuid} but zipped the object resolved from handleId, so
the title of another item leaked in Content-Disposition and its files were
streamed whenever their own bitstream policies allowed it. The handle must now
identify the item {uuid}; any other handle, including an unknown one, gets the
same 422 before a header is set.

metadatabitstreams/search/byHandle had no READ check at all. It now requires
READ on the resolved item (401/403) before any preview content is generated.

(cherry picked from commit e0eb107)
@Kasinhou Kasinhou self-assigned this Oct 29, 2026
@milanmajchrak
milanmajchrak changed the base branch from dtq-dev-9-base to dtq-dev-93 November 17, 2026 15:56

This branch has not been deployed

No deployments
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.

2 participants