Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 15415 invoked from network); 28 Jul 2003 13:40:19 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 28 Jul 2003 13:40:19 -0000 Received: (qmail 23162 invoked by uid 97); 28 Jul 2003 13:42:55 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 23155 invoked from network); 28 Jul 2003 13:42:55 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 28 Jul 2003 13:42:55 -0000 Received: (qmail 13180 invoked by uid 500); 28 Jul 2003 13:39:52 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 13056 invoked by uid 500); 28 Jul 2003 13:39:51 -0000 Received: (qmail 12975 invoked from network); 28 Jul 2003 13:39:50 -0000 Received: from loninmrp0.uk.db.com (160.83.52.97) by daedalus.apache.org with SMTP; 28 Jul 2003 13:39:50 -0000 Received: from sdbo1003.db.com by loninmrp0.uk.db.com id h6SDdniZ003979; Mon, 28 Jul 2003 14:39:49 +0100 Subject: getCanonicalPath used rather than getAbsolutePath To: jakarta-tomcat-catalina-cvs@apache.org X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: "David Cassidy" Date: Mon, 28 Jul 2003 14:39:46 +0100 X-MIMETrack: Serialize by Router on sdbo1003/DMGUK/DeuBaInt/DeuBa(Release 5.0.12 |February 13, 2003) at 28/07/2003 02:39:49 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Guys, We deploy tomcat in a multi-hosting environment. We make rather extensive use of symlinks so that we can update the system. ie when the user wants to publish their content the symlink is changed and hey bingo ... The problem we're finding is that tomcat is expanding the symlink to the real path. At midnight we kinda clean the system so that old dead versions are removed to save disk space etc. Of course then tomcat gets broken due the the file not being there. I've checked the source of Tomcat 4.1.24 and it seems that getCanonicalPath and getAbsolutePath have been used interchangably. Is there a reason for this ? If not taken as though the two methods return the same(ish *) result can we have getAbsolutePath used exclusivly ? Many thanks David * they both return the absolute path, just is getCanonicalPath expands symlinks to the real dir name. -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org