Skip to content

Fix exact URL cache config matching - #13438

Open
bneradt wants to merge 1 commit into
apache:masterfrom
bneradt:fix-exact-url-cache-config
Open

Fix exact URL cache config matching#13438
bneradt wants to merge 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

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
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.

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

Projects

Status: No status
Status: No status

Development

Successfully merging this pull request may close these issues.

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

2 participants