Bug 49536

Summary: If no webapps deployed, accessing a URL returns 200 OK with no content instead of 404
Product: Tomcat 7 Reporter: S. Ali Tokmen <postmaster>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: regression CC: lff0305
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X 10.5   
Attachments: Attachment of the log displayed on console when I access a page, I see a NullPointerException

Description S. Ali Tokmen 2010-07-01 04:07:11 UTC
Hello

I've just downloaded http://mirror.veriportal.com/apache/tomcat/tomcat-7/v7.0.0-beta/bin/apache-tomcat-7.0.0.zip

If I start a Tomcat 7 instance with no webapps on it and access a URL, it returns HTTP code 200 OK with no content, instead of an HTTP error 404.

Cheers

S. Ali Tokmen
http://ali.tokmen.com/
Comment 1 S. Ali Tokmen 2010-07-01 04:08:00 UTC
Created attachment 25676 [details]
Attachment of the log displayed on console when I access a page, I see a NullPointerException
Comment 2 Mark Thomas 2010-07-01 17:36:02 UTC
Thanks for the report. This is fixed in trunk and will be included in 7.0.1 onwards.
Comment 3 S. Ali Tokmen 2010-07-01 18:54:53 UTC
This is very good news. Thank you very much.
Comment 4 Mark Thomas 2010-07-07 05:26:08 UTC
*** Bug 49566 has been marked as a duplicate of this bug. ***