FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Evaluate conditions on description resources against the described resource by jeswr · Pull Request #2267 · CommunitySolidServer/CommunitySolidServer · GitHub

Repository navigation

fix: Evaluate conditions on description resources against the described resource - #2267

Open
jeswr wants to merge 1 commit into
CommunitySolidServer:mainfrom
jeswr:fix/description-resource-conditions
Open

jeswr wants to merge 1 commit into
CommunitySolidServer:mainfrom
jeswr:fix/description-resource-conditions

Conversation

jeswr commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

✍️ Description

Conditions on a PATCH to a description resource are checked against the .meta identifier, which the accessor has no metadata for. So a non-matching If-Match is ignored and the PATCH succeeds, and If-Match: * always fails. They are now checked against the described resource, like hasResource already does. PUT and DELETE on description resources are already rejected, so only PATCH changes.

Added a unit test and an integration test in Conditions.test.ts (fails on main with 205 instead of 412).

I used Claude Code to help write this change. I have reviewed the content of this PR myself.

✅ PR check list

  • Make sure you have personally reviewed and understood this contribution when using generative AI tools.
  • Target the correct branch based on semantic versioning.
    • main: Backwards compatible bug fixes and feature additions.
    • versions/next-major: Breaking changes, such as changes to APIs, configuration behaviour, or stored data.
  • Update documentation when relevant.
  • Update the release notes when adding new major features.

…ed resource

The conditions of a PATCH request on a description resource were checked
against the description resource itself, for which the data accessor has
no metadata. As a result, If-Match headers were ignored, except for
If-Match: *, which always failed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NeSZT7mKQVVBn4vqTZ6CRn

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL