Opened 16 years ago

Closed 16 years ago

#1214 closed enhancement (fixed)

PathInfo support in extension servlets

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: BASE 2.10
Component: web Version:
Keywords: Cc:

Description (last modified by Nicklas Nordborg)

Extensions that which to use servlets are currently required to follow a limited naming scheme when invoking the servlet from an URL:

http://a.base.server/base2/extensions/jar-name/servlet-name.servlet

It is possible to append a query string, but not PATH-INFO. For techincal reasons the URL must still end with '.servlet', but it should be possible to do something like:

http://a.base.server/base2/extensions/jar-name/servlet-name/path/info.servlet

What is required is basically that we need to change the regexp that parses the URL, and to remap the Request.getServletPath() and Request.getPathInfo() to the proper values. Eq:

servlet-path = /extensions/jar-name/servlet-name
path-info = /path/info.servlet

See http://baseplugins.thep.lu.se/ticket/162 (and related mailing list message) for background info.

Change History (3)

comment:1 by Nicklas Nordborg, 16 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 16 years ago

Description: modified (diff)

comment:3 by Nicklas Nordborg, 16 years ago

Resolution: fixed
Status: assignedclosed

(In [4703]) Fixes #1214: PathInfo support in extension servlets

Note: See TracTickets for help on using tickets.