Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 98698 invoked from network); 9 Oct 2008 22:44:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2008 22:44:50 -0000 Received: (qmail 31740 invoked by uid 500); 9 Oct 2008 22:44:46 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 31552 invoked by uid 500); 9 Oct 2008 22:44:46 -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 31541 invoked by uid 99); 9 Oct 2008 22:44:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 15:44:46 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 22:43:50 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 97944234C213; Thu, 9 Oct 2008 15:44:26 -0700 (PDT) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: DO NOT REPLY [Bug 45979] META-INF/context.xml does not replace conf/Catalina//[hostname]/ [appname].xml when war deployed X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 5 X-Bugzilla-Component: Catalina X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.armbrust.list@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20081009224426.97944234C213@brutus.apache.org> Date: Thu, 9 Oct 2008 15:44:26 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45979 --- Comment #4 from Dan Armbrust 2008-10-09 15:44:25 PST --- WRT the design, I do not know all of the other use cases. I expect that this decision was arrived at to simplify complexity, or other reasonable reasons. But from my use case, the behaviour certainly violates the Principals of Least Surprises. It seems that if Tomcat had a way to know that it placed a copy of the context.xml file into the conf subfolder, then it would be trivial to have it automatically replace it again, whenever it re-expands the war file. Yes? All that follows is based on what may be faulty guesses about how things currently work: So the real issue becomes knowing if config file was placed in the conf subfolder by tomcat, or by an administrator? Couldn't Tomcat just place a flag (even just a comment - rather hackish but effective) into the xml file when it copies it? Then later, check for the presence of that flag to determine if it should overwrite it when redeploying a war file? No flag - current behaviour. Flag - overwrite the file with the one from the war. If the behaviour stays as it - is seems like tomcat should be throwing out a warning when it will be ignoring a context.xml file found in a war file, because one already existed in the conf subfolder. Otherwise, users can run into all sorts of hard to track when the file they think is being used, isn't. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- 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