Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001848 [Resin] major always 07-04-07 02:20 07-30-07 14:05
Reporter Yaroslav Sokolov View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.3 Product Version 3.1.1
  Product Build
Summary 0001848: in specific cases request.getRequestURL() returns not correct URL
Description In case when 'index.jsp' is configured as <welcome-file> and there is request
to a directory containing index.jsp, request.getRequestURL() returns URL for index.jsp instead of URL of the requested directory.

Examlpe:
the server is listening port 80 on localhost,

web.xml contains:
        <welcome-file-list>
                <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>

in web root there is a file 'index.jsp' with the next content:
<%= request.getRequestURL() %>

request: http://localhost/ [^]

the index.jsp generates the next response:
http://localhost/index.jsp [^]

I hope the right result should be 'http://localhost/'. [^]

Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0002159)
ferg
07-30-07 14:05

server/10r9
 

- Issue History
Date Modified Username Field Change
07-04-07 02:20 Yaroslav Sokolov New Issue
07-30-07 14:05 ferg Note Added: 0002159
07-30-07 14:05 ferg Assigned To  => ferg
07-30-07 14:05 ferg Status new => closed
07-30-07 14:05 ferg Resolution open => fixed
07-30-07 14:05 ferg Fixed in Version  => 3.1.3


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker