Project

General

Profile

Task #1162

Bug #1141: unicode guid handling in mn.create()

override getPathInfo to replace censored characters

Added by Dave Vieglais almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Chad Berkley
Category:
-
Target version:
-
Start date:
2010-12-17
Due date:
% Done:

100%

Estimated time:
1.00 h
Milestone:
Product Version:
*
Story Points:
Sprint:

Description

The Tomcat URI normalization process censors ";" and replaces some char sequences such as "//" with "/" resulting in mangled information being forwarded through request.getPathInfo(). The uncensored information is available through request.getRequestURI() however.

This task is to implement a custom HttpServletRequestWrapper which overrides getPathInfo() so that it returns the uncensored path information.

For example, given a request something like:

http://my.node/mn/object/http:%2F%2fsome.id%2Fof;interest

where the identifier is "http://some.id/of;interest", the normal tomcat request.getPathInfo() returns:

/object/http:/some.id/of

compressing "//" to "/" and truncating at ";"

The value returned by request.getRequestURI() is:

/mn/object/http:%2F%2fsome.id%2Fof;interest

So basically what is needed is to:

  1. remove the servlet from the front of the path
  2. urldecode the remaining info
  3. return the result.

History

#1 Updated by Chad Berkley almost 14 years ago

  • Status changed from New to Closed
  • Assignee changed from Robert Waltz to Chad Berkley
  • % Done changed from 0 to 100

This is now fixed in metacat.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)