Open asfimport opened 6 years ago
peter (migrated from Bugzilla): Patch for this Bug
Created attachment jmeter.patch_bug_62584: Patch
@FSchumacher (migrated from Bugzilla): If you look at ConversionUtils#removeSlashDotDot, you will see, that it does a lot more than simply removing '/..' from the complete URL.
Maybe it would be a good idea to factor out the common logic of /.. and /. into a new method and delegate the old one and the new one (you would have to create, too) to it.
And by the way. String#replaceAll takes a regex as first command and '.' has a special meaning in regex, so it is probably a good idea to add test cases for the change :) It should be easier, if you take the route via ConversionUtils.
peter (Bug 62584): In addition to https://github.com/apache/jmeter/issues/2361 does Wicket not only produce collapsing URLs like
"app/path/../path2/"
but also relative paths like
"app/wicket/./login?0"
in redirected URLs.
Current Browsers fix URLs with "/./" by removing "/./" but not JMeter.
In this Bug the problem with relative paths shall be fixed by replacing "/./" by "/" in the URLs getting by redirection.
OS: All