Bugs item #1210299, was opened at 2005-05-28 07:33
Message generated for change (Settings changed) 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: Closed
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
|