Problem
Reported in: Nexus Repository 3.98.1; other versions may also be affected.
Nexus One can reject routing-rule matchers containing Java inline regular-expression flags such as (?i). Use Classic UI to create or edit the rule.
Symptoms
The matcher is marked invalid, Create or Save is disabled, and Test Path can display No valid matchers defined.
Solution
Use an account authorized to manage routing rules. Before saving, review the intended allow/block behavior because routing-rule changes can affect repository requests.
- Switch to Classic UI and open the routing rule for creation or editing.
- Enter the intended matcher with its Java inline flags and test representative paths using the available test controls. (e.g.,
^/[Cc][Oo][Mm]/[Pp][Jj][Mm]/.*instead of(?i)^/com/pjm/.*). - Save the rule after confirming the intended matching behavior.
Validation: Reopen the rule and confirm that the matcher was saved. Check representative matching and non-matching paths.
This Nexus One behavior is tracked as NEXUS-56664. If the issue is resolved in a future release, check the Nexus Repository release notes for a resolution note.