Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.14
-
Fix Version/s: 6.1.15.rc4
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
When redirecting to a non-existing relative URL, a NPE gets thrown in org.mortbay.jetty.Response.sendRedirect on line 397. This happens as URI.canonicalPath(String) can return null if "the path tries to .. above its root". E.g. redirecting from "/foo/" to "../bar" results in a NPE.
Please have a look at the attached example that produces the Exception.
probably best to throw an illegalArgumentException if the canonical is null