Archiva

/archiva/browse URL does not work on WebSphere

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.0.2
  • Component/s: Web Interface
  • Labels:
    None
  • Environment:
    WebSphere 6.1
  • Number of attachments :
    1

Description

The browse URL is not recognized, since the RepositoryActionMapper uses the ServletPath to determine the "browse" prefix in the path.
The JEE 5 spec specifies [1]:
"This method will return an empty string ("") if the servlet used to process this request was matched using the "/*" pattern."
If your appserver works as described the "browse" in the URL can only be determined by using getPathInfo().

[1] http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequest.html#getServletPath()

Activity

Hide
Steffen Grunwald added a comment -

Suggested patch considers pathInfo, if servletPath is empty string

Show
Steffen Grunwald added a comment - Suggested patch considers pathInfo, if servletPath is empty string
Hide
Stefan Prange added a comment -

The patch provided by Steffen Grunwald works perfectly on Websphere 6.1.0.15.
I just tested it and thought an approval like this might be helpful.
Bye, Stefan

Show
Stefan Prange added a comment - The patch provided by Steffen Grunwald works perfectly on Websphere 6.1.0.15. I just tested it and thought an approval like this might be helpful. Bye, Stefan
Hide
Brett Porter added a comment -

applied, thanks!

Show
Brett Porter added a comment - applied, thanks!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: