hi, The BasicURLNormalizer removes "../" from URL. I wonder if "./" should be removed, too? is it functionally valid in HTTP? how about removing "/./"?
The current behavior is as follows: assertEquals("http://www.apache.org/", normalizer.normalize(" http://www.apache.org", null)); assertEquals("http://www.apache.org/style/style.css", normalizer.normalize("http://www.apache.org/../style/style.css",null)); assertEquals("http://www.apache.org/./style/style.css", normalizer.normalize("http://www.apache.org/./style/style.css",null)); For the above specific case, it's ok to remove the "./" assertEquals("http://www.apache.org/style/style.css", normalizer.normalize("http://www.apache.org/./style/style.css",null)); //functionally ok, the test case fail. p.s. is there any test case for BasicURLNormalizer? I can't find a TestBasicURLNormalizer.java and wonder if similar functional test exists in another test case. Thanks and regards, mingfai