[ jetty-Bugs-1516086 ] avoid NPE when there is no WEB-INF dir

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

[ jetty-Bugs-1516086 ] avoid NPE when there is no WEB-INF dir

SourceForge.net
Bugs item #1516086, was opened at 2006-07-03 01:28
Message generated for change (Comment added) made by janb
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1516086&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: Fixed
Priority: 5
Private: No
Submitted By: Eelco Hillenius (eelco12)
Assigned to: Greg Wilkins (gregwilkins)
Summary: avoid NPE when there is no WEB-INF dir

Initial Comment:
getWebInf dir in WebAppContext may return null, but
calling methods do not check for it. Attached is a
patch that does a null check and thus prevents Jetty
from throwing an NPE when used with a web app without
WEB-INF. Admitted, this is illegal according to the
servlet spec, but the extra check doesn't hurt, or
alternatively, Jetty could throw an exception with a
better error description.

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

>Comment By: Jan Bartel (janb)
Date: 2007-03-05 00:40

Message:
Logged In: YES
user_id=45251
Originator: NO

This has been fixed for many months now, so closing this issue.

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

Comment By: Greg Wilkins (gregwilkins)
Date: 2006-07-03 17:08

Message:
Logged In: YES
user_id=44062

thanks for this bug report.
We mostly did check it for null, but one exception slipped
through recently.  Fixed in svn head soon and in the next
release.

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

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss