Skip to content

Fix exact URL cache config matching - #13438

Merged
bneradt merged 1 commit into
apache:masterfrom
bneradt:fix-exact-url-cache-config
Jul 31, 2026
Merged

Fix exact URL cache config matching#13438
bneradt merged 1 commit into
apache:masterfrom
bneradt:fix-exact-url-cache-config

Conversation

@bneradt

@bneradt bneradt commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Exact url= entries in cache.config are currently inserted only when record initialization fails. Successfully parsed rules are silently dropped, so their cache actions never apply, while failed rules incorrectly advance matcher state.

Correct the success check, add focused UrlMatcher unit coverage, and add an exact-URL replay AuTest. The replay helper now accepts cache_config entries with dynamic server ports so this behavior can be tested end to end.

Testing:

  • Original code: cache-exact-url fails with expected 201 got 200
  • Fixed code: test_proxy "[ControlMatcher]" passes 13 assertions
  • Fixed code: cache-exact-url passes

Fixes #13421

Copilot AI review requested due to automatic review settings July 28, 2026 01:22
@bneradt bneradt added this to the 11.0.0 milestone Jul 28, 2026
@bneradt bneradt self-assigned this Jul 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

maskit
maskit previously approved these changes Jul 31, 2026
@maskit

maskit commented Jul 31, 2026

Copy link
Copy Markdown
Member

Please resolve the merge conflict.

Copilot AI review requested due to automatic review settings July 31, 2026 22:10
@bneradt
bneradt force-pushed the fix-exact-url-cache-config branch from 428d3a4 to ab4a364 Compare July 31, 2026 22:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Exact URL entries in cache.config are dropped after successful parsing,
so their cache actions never apply. Failed entries are inserted instead,
which also defeats duplicate detection.

Correct the success check and add unit and replay coverage for matching,
nonmatching, invalid, and duplicate rules. Extend ATSReplayTest to accept
cache.config entries with dynamic server ports.

Fixes: apache#13421
@bneradt
bneradt force-pushed the fix-exact-url-cache-config branch from ab4a364 to 8b40074 Compare July 31, 2026 22:16
Copilot AI review requested due to automatic review settings July 31, 2026 22:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bneradt
bneradt merged commit d05506e into apache:master Jul 31, 2026
15 checks passed
@bneradt
bneradt deleted the fix-exact-url-cache-config branch July 31, 2026 23:16
@github-project-automation github-project-automation Bot moved this to For v10.2.0 in ATS v10.2.x Jul 31, 2026
@github-project-automation github-project-automation Bot moved this to For v10.1.1 in ATS v10.1.x Jul 31, 2026
@bneradt bneradt removed this from ATS v10.1.x Jul 31, 2026
cmcfarlen pushed a commit that referenced this pull request Aug 4, 2026
Exact URL entries in cache.config are dropped after successful parsing,
so their cache actions never apply. Failed entries are inserted instead,
which also defeats duplicate detection.

Correct the success check and add unit and replay coverage for matching,
nonmatching, invalid, and duplicate rules. Extend ATSReplayTest to accept
cache.config entries with dynamic server ports.

Fixes: #13421
(cherry picked from commit d05506e)
@cmcfarlen cmcfarlen moved this from For v10.2.0 to Picked v10.2.0 in ATS v10.2.x Aug 4, 2026
@cmcfarlen cmcfarlen modified the milestones: 11.0.0, 10.2.0 Aug 4, 2026
@cmcfarlen

Copy link
Copy Markdown
Contributor

Cherry-picked to the 10.2.x branch as 92f3f3c for the 10.2.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Picked v10.2.0

Development

Successfully merging this pull request may close these issues.

cache.config: Exact url= rules are dropped after successful parsing

4 participants