| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…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
| Back | FazBrowse Home | New Git URL |
✍️ 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