tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42157] - URLs returned by ServletContext.getResource() cannot resolve, directories cannot be browsed...
Date Wed, 18 Apr 2007 21:18:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42157>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42157


rui.damas@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |




------- Additional Comments From rui.damas@gmail.com  2007-04-18 14:18 -------
When you wrote "toURI().resolve is useless"...
I've searched a bit and that's not correct, since all URLs are URIs
(http://www.google.com/search?q=%22all+URLs+are+URIs%22) using toURI().resolve
should work and be useful.

at the URI java class documentation explains the following format:
[scheme:][//authority][path][?query][#fragment]

and not: [scheme:][/authority//][path][?query][#fragment]

In "jndi:/servername//WEB-INF/" the server name is actually part the of the
path, i tested it and...

URL url = context.getResource("/WEB-INF/");
url.getHost();
// returns ""
url.getPath();
// returns "/servername//WEB-INF/"

I'm reopening the bug, at least till someone confirm that that's way is supposed
to be.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message