Return-Path: Delivered-To: apmail-xml-commons-dev-archive@www.apache.org Received: (qmail 29692 invoked from network); 25 Apr 2006 01:14:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 01:14:40 -0000 Received: (qmail 69657 invoked by uid 500); 25 Apr 2006 01:14:39 -0000 Delivered-To: apmail-xml-commons-dev-archive@xml.apache.org Received: (qmail 69629 invoked by uid 500); 25 Apr 2006 01:14:39 -0000 Mailing-List: contact commons-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list commons-dev@xml.apache.org Received: (qmail 69618 invoked by uid 99); 25 Apr 2006 01:14:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 18:14:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [65.77.211.84] (HELO www2.kc.aoindustries.com) (65.77.211.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 18:14:38 -0700 Received: from fo2.kc.aoindustries.com (www2.kc.aoindustries.com [65.77.211.84]) by www2.kc.aoindustries.com (8.13.1/8.13.1) with ESMTP id k3P1EEuw017864 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 Apr 2006 20:14:14 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by fo2.kc.aoindustries.com (8.13.1/8.13.1/Submit) id k3P1EDts017710; Mon, 24 Apr 2006 20:14:13 -0500 X-Authentication-Warning: fo2.kc.aoindustries.com: indexgeo set sender to crossley@apache.org using -f Date: Tue, 25 Apr 2006 11:13:52 +1000 From: David Crossley To: Norman Walsh Cc: commons-dev@xml.apache.org Subject: Re: File URLs will be the death of me Message-ID: <20060425011352.GC12501@igg.indexgeo.com.au> References: <87k69sm53z.fsf@nwalsh.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k69sm53z.fsf@nwalsh.com> User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Norman Walsh wrote: > / Alexander Pavlenko was heard to say: > | Excuse me if I say obvious things but maybe it will help. > | > | "file" URLs usually should have one or three slashes following the scheme > | name, not two. > | > | file:/path - means missing authority part > | file:///path - means empty authority name > | > | Both of the above imply the default authority: > | > | file://localhost/path > | > | If you use two slashes it means that you specify the authority explicitly > | and in case of "file" scheme the authority means host name. > > Yes, I understand the semantics. Unfortunately, file: URIs interact > badly with Windows style path names. > > | By the way, I also actively use CatalogResolver and have encountered many > | times that it returns incorrect URLs like > | file://c:/sofefolder/... Alexander, were you using the trunk of xml-commons resolver? As Norm said, those general problems had already been fixed recently and we had tested it on Windows. > Could you try the patch I provided? I believe that I've plugged that > hole. But I've also believed that before. At Apache Forrest i upgraded our resolver.jar to use the current xml-commons trunk (r395116). Fine for UNIX. I asked our Windows users to test and yes, all is well. However, we don't specifically use "user.dir" so i suppose that we are just reporting that the new patch didn't break other functionality. -David > | and... > | > | couldn't you use java.io.File.toURI()? (J2SE1.4!) > > I think XML Commons is still expected to support 1.3. > > Be seeing you, > norm > > -- > Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc. > NOTICE: This email message is for the sole use of the intended > recipient(s) and may contain confidential and privileged information. > Any unauthorized review, use, disclosure or distribution is prohibited. > If you are not the intended recipient, please contact the sender by > reply email and destroy all copies of the original message.