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

fix: Return 412 when If-Match or If-Unmodified-Since fails on GET and HEAD by jeswr · Pull Request #2270 · CommunitySolidServer/CommunitySolidServer · GitHub

Repository navigation

fix: Return 412 when If-Match or If-Unmodified-Since fails on GET and HEAD - #2270

Open
jeswr wants to merge 1 commit into
CommunitySolidServer:mainfrom
jeswr:fix/read-preconditions-412
Open

jeswr wants to merge 1 commit into
CommunitySolidServer:mainfrom
jeswr:fix/read-preconditions-412

Conversation

jeswr commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

✍️ Description

A GET or HEAD whose If-Match or If-Unmodified-Since condition fails currently gets a 304. RFC 9110 §13.2.2 says those two are checked first and fail with 412, for any method. A failing If-None-Match or If-Modified-Since still gives 304.

Added unit tests and an integration test in Conditions.test.ts (fails on main with 304).

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.

… HEAD

RFC 9110, §13.2.2 evaluates If-Match and If-Unmodified-Since before
If-None-Match and If-Modified-Since, and requires a 412 response when
they fail, also for GET and HEAD requests. Previously all failing read
conditions resulted in a 304 response.

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