Repository navigation
Conversation
Motivation: HTTP QUERY needs selected-result preconditions, structured format advertisements, and opt-in byte ranges beyond method registration. Modification: Validate QUERY content metadata and evaluate preconditions against the selected result. Model Accept-Query after collecting initial response fields, leaving trailers unchanged. Add opt-in QUERY range handling and apply the range count limit before selecting an entity strategy. Reject unrepresentable parameters when building typed Accept-Query values. Result: Default GET handling is unchanged. QUERY preserves the full otherwise successful response when If-Range has no matching strong validator. Tests: Exercise typed date and range routing, including streamed results, as well as a native HTTP/2 exchange with two Accept-Query field lines. Verify the Java strong Last-Modified overload with a matching date and check the new range guide and migration notes. References: RFC 10008 sections 2 and 3, RFC 9110 sections 13 and 14, RFC 9651 section 4.2.
Motivation: A known representation must satisfy wildcard If-Match even when the route supplies only Last-Modified. Modification: Skip If-Unmodified-Since for that matched wildcard, while retaining later preconditions and tagged behavior. Result: A stale date alone still rejects PUT; the same request with a matching wildcard runs the route. References: RFC 9110 §§13.1.1, 13.1.4 and 13.2.2; apache#1858.
Member
Author
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.
Motivation
A wildcard
If-Matchtests whether a selected representation exists. A route using onlyLast-Modifiedshould not reject a matching wildcard PUT solely because a lower-priority date precondition is stale.Modification
For a date-only known representation, evaluate the wildcard first and skip the date precondition if it matches. Keep the existing QUERY behavior, ETag comparisons, and evaluation of later preconditions.
Result
The real routing test confirms that the stale date alone returns 412 without running the route, and adding a matching wildcard lets the same PUT run. It failed at 412 versus 200 before the fix. After the fix, all 22 tests in the directive suite and scoped Scala formatting passed locally on JDK 21 / Scala 2.13.18.
Stacked on #1858. Review the child-only diff. GitHub cannot use the fork-only parent branch as an Apache base, so the hosted base is
main. Merge #1858 first, then rebase this child onto current main and revalidate alongside #1881. Do not merge this child independently.References
RFC 9110 §13.1.1 · §13.1.4 · §13.2.2