Repository navigation
Document that new Tag(String) creates a weak entity tag (#1694) - #1762
Merged
Merged
Conversation
RFC 9110 section 8.8.3 defines an entity tag as strong unless it carries the "W/" prefix, whereas Tag() and Tag(String) create a weak tag, written as W/"value", which never matches an If-Match or If-Range condition. The behaviour is not changed in this maintenance version (it would alter the ETag header of existing servers); the Javadoc says so and points to new Tag(value, false). Restlet 3.0 creates a strong tag. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 29, 2026
|
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Refs #1694 (the behaviour change is in 3.0 only)
new Tag()andnew Tag(String)create a weak entity tag in this version, whereas RFC 9110 section 8.8.3 defines a tag as strong unless it carries theW/prefix: the tag is written asW/"value"and never matches anIf-MatchorIf-Rangecondition (strong comparison). Changing it in a maintenance version would silently alter theETagheader of existing servers, so the behaviour is unchanged.Tag()andTag(String), pointing tonew Tag(value, false)for a strong tag, and saying that Restlet 3.0 creates a strong tag.changes.md: one line under Enhancements.Same change on the other maintained versions: PR #1761 (3.0) and #1763 (2.6)
🤖 Generated with Claude Code