Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6ECCAD5BB for ; Mon, 30 Jul 2012 15:16:15 +0000 (UTC) Received: (qmail 46992 invoked by uid 500); 30 Jul 2012 15:16:14 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 46776 invoked by uid 500); 30 Jul 2012 15:16:14 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 46767 invoked by uid 99); 30 Jul 2012 15:16:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2012 15:16:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2012 15:16:13 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 6364058F6; Mon, 30 Jul 2012 15:15:53 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 53621] Response code incorrect for requests to contexts in stopped state. Date: Mon, 30 Jul 2012 15:15:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: KyleJHarper@gmail.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=53621 --- Comment #3 from Kyle Harper --- Regarding RFC 2616 and 4xx vs. 5xx codes, I agree that 4xx is more appropriate. I'm not sure I agree that 404 is the best option as it lacks information for the client, but given Konstantin's remark #1 "A stopped context is absent to tomcat", it makes sense. I did bring this to the users group via email and the solution of adding a servlet in the ROOT context to handle mappings for contexts in the stopped state was suggested. I implemented this and it works in 7.0.26, and does not work in 6.0.35. Here is a link to the archive for that issue: http://markmail.org/thread/wk7d5zxkp2lsflmz (I can open a different bug for 6.0.35 Request Mapper not falling back to /ROOT if you wish to patch 6.x.) >1. A stopped application is effectively absent from Tomcat and its request >Mapper. Given this, tomcat is working as intended. Leaving bug resolved:invalid. If time permits I'll research a patch to enable configurable status codes in stopped states. Thanks. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org