Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #12730 - regex rules have configs for query matching and merging #12732

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

joakime
Copy link
Contributor

@joakime joakime commented Jan 23, 2025

Introduce 2 new configurations on RegexRules.

  • isMatchOnQuery (default true) - true to perform regex match on URI path + query, false to have match only on URI path.
  • isAddQueries (default false) - true will merge input URI query with replacement/location string query, false to have URI path + query be entirely replaced as if it is just a regular regex on a String.

@joakime joakime added Enhancement Sponsored This issue affects a user with a commercial support agreement labels Jan 23, 2025
@joakime joakime requested a review from gregw January 23, 2025 20:40
@joakime joakime self-assigned this Jan 23, 2025
@joakime joakime linked an issue Jan 23, 2025 that may be closed by this pull request
Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

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

OK but some niggles

@joakime joakime requested a review from gregw January 24, 2025 14:24
@joakime joakime merged commit 575b9cc into jetty-12.0.x Jan 24, 2025
10 checks passed
@joakime joakime deleted the fix/12.0.x/regexrule-optional-query branch January 24, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Sponsored This issue affects a user with a commercial support agreement
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

RegexRule needs configurable to include query (or not) in match logic
2 participants