Repository navigation
chore(attachments): align AttachmentResource with main (2.0) - #36544
Conversation
…ent entity (backport 2.0) Backport of the attachment-access part of #33477 to 2.0. GET /v1/attachments/{id} and GET /v1/attachments/fqn/{fqn}/{assetType} now resolve the parent entity of each attachment and check VIEW_BASIC on it, the same check the download path runs. The FQN list authorizes each distinct parent, since one page can span more than one. (cherry picked from commit f669f7d — AttachmentResource only)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 1 closed / 1 findings🔴 High risk · Adding parent-entity VIEW_BASIC checks changes authorization for attachment reads; overly restrictive or mismatched permissions could block legitimate access. Brings ✅ 1 closed✅ Quality: Authorization fix ships with no regression test
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Brings
AttachmentResourceon2.0in line withmain: the parent-entity lookup for an attachment lives in one helper, and the attachment endpoints share it.No API shape changes.