Linking an image into a cms image: the image is looked up before the caller is checked
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- authorization, backend
Research direction
Start in src/services/cms/images/ and trace the update rule, its data, and how an owner implements the update. Check the order of the caller's permission check, the CMS image ownership check, and the linked image lookup. Done when the responses no longer reveal whether an image ID exists and report the CMS image ownership or existence problem before the linked image collection error.
Written by the indexing model from the issue text.
Description
When an image is linked into a cms image, the linked image's collection is read before the caller is known to pass the owner's rule, and the ownership check of the cms image runs after the rule. Two things follow:
- A caller who may not edit the cms image gets NOT FOUND for an image id that does not exist and the permission message for one that does, so the answer tells whether an image id exists.
- A caller who may edit, sending a cms image that is another owner's or does not exist together with an image they do not administer, is told "Du kan bare bruke bilder fra samlinger du administrerer" and not that the cms image is not theirs or not found.
Nobody can change anything they should not. It is the order of the answers. It was like this before the cms images were moved to the contract form in #1096, and is unchanged by it.
Where: src/services/cms/images/ (the update's rule and its data) and how an owner implements the update.
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vevcom/project-next
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
vevcom/project-next#1223 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vevcom/project-next#1220 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vevcom/project-next#1217 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
vevcom/project-next#1214 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
vevcom/project-next#1213 ·
All issues in vevcom/project-next
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Codex使用可 かんたん コード
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ryuki-moro/Nicomaru#348 ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:crash-loop issue-rating: 🦞 diamond lobster P2
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openclaw/openclaw#211919 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Bug
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day