[ jetty-Bugs-1210299 ] DefaultServlet in 5.1.3 serves WEB-INF and more

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ jetty-Bugs-1210299 ] DefaultServlet in 5.1.3 serves WEB-INF and more

SourceForge.net
Bugs item #1210299, was opened at 2005-05-28 07:33
Message generated for change (Comment added) made by gregwilkins
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1210299&group_id=7322

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
>Resolution: Rejected
Priority: 5
Submitted By: Leos Literak (literakl)
Assigned to: Greg Wilkins (gregwilkins)
Summary: DefaultServlet in 5.1.3 serves WEB-INF and more

Initial Comment:
I have custom servlet that serves all URLs (mapped as
/). Jetty Default servlet is mapped to serve only
specified subdirectory (/images). That worked fine with
jetty 4.1, but is behaves strangely in jetty 5.1.3.

The specified directory looks like treated like prefix.
version   real file                working URL
4.1         images/logo.gif    /images/logo.gif
5.1.3      images/logo.gif    /images/images/logo.gif

If I open just /images URL in jetty 5.1.3, I see
content of the root
for my web application - including WEB-INF directory!
For example
/images/WEB-INF is accessible!

I attach zip file with small webapp that demonstrates
this behaviour. Try to start it from jetty 4.1 (it
works fine) and from jetty 5.1.3.

(hmm, I cannot submit thisa bugreport. I will try
without attaching).

----------------------------------------------------------------------

>Comment By: Greg Wilkins (gregwilkins)
Date: 2005-06-04 14:31

Message:
Logged In: YES
user_id=44062

You have to declare your own instance of the default servlet
and set
the resourceBase or relativeResourceBase init parameter.



----------------------------------------------------------------------

Comment By: Leos Literak (literakl)
Date: 2005-05-28 07:34

Message:
Logged In: YES
user_id=1052649

next try to attach demo

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1210299&group_id=7322


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss