The use of HttpURI.Mutable methods that change the path (eg .path(String) and .pathQuery(String)) should clear out any existing path violations before parsing the newly provided path.
This helps CompactPathRule to also clear out the path violations that the CompactPathRule is capable of addressing.
Updating CompactPathRuleTest testcase to show these new behaviors.
The use of HttpURI.Mutable methods that change the path (eg
.path(String)
and.pathQuery(String)
) should clear out any existing path violations before parsing the newly provided path.This helps CompactPathRule to also clear out the path violations that the CompactPathRule is capable of addressing.
Updating CompactPathRuleTest testcase to show these new behaviors.
Fixes: #11298