Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 23621 invoked from network); 28 Jul 2003 13:45:44 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 28 Jul 2003 13:45:44 -0000 Received: (qmail 23378 invoked by uid 97); 28 Jul 2003 13:48:20 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 23371 invoked from network); 28 Jul 2003 13:48:19 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 28 Jul 2003 13:48:19 -0000 Received: (qmail 22808 invoked by uid 500); 28 Jul 2003 13:45:35 -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 22795 invoked from network); 28 Jul 2003 13:45:35 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 28 Jul 2003 13:45:35 -0000 Received: (qmail 52397 invoked from network); 28 Jul 2003 13:45:34 -0000 Received: from unknown (HELO apache.org) (127.0.0.1) by localhost.apache.org with SMTP; 28 Jul 2003 13:45:34 -0000 Message-ID: <3F2528FC.8090100@apache.org> Date: Mon, 28 Jul 2003 15:45:32 +0200 From: Remy Maucherat User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: getCanonicalPath used rather than getAbsolutePath References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: localhost.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N David Cassidy wrote: > 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 ? No, sorry. > * they both return the absolute path, just is getCanonicalPath expands symlinks to the real dir name. It does much more than that (ex: removing stuff like /./, etc): it is a minimal access path to the file (starting from the filesystem root). Remy --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org