Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 99431 invoked from network); 2 Sep 2010 13:20:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Sep 2010 13:20:19 -0000 Received: (qmail 72231 invoked by uid 500); 2 Sep 2010 13:20:19 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 71845 invoked by uid 500); 2 Sep 2010 13:20:16 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 71832 invoked by uid 99); 2 Sep 2010 13:20:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 13:20:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 13:20:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o82DJswr018530 for ; Thu, 2 Sep 2010 13:19:54 GMT Message-ID: <19802872.138931283433594211.JavaMail.jira@thor> Date: Thu, 2 Sep 2010 09:19:54 -0400 (EDT) From: "Ivan Maidanski (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (VFS-314) Local file path with drive prefix is not handled correctly by resolveFile MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Local file path with drive prefix is not handled correctly by resolveFile ------------------------------------------------------------------------- Key: VFS-314 URL: https://issues.apache.org/jira/browse/VFS-314 Project: Commons VFS Issue Type: Bug Affects Versions: 1.0 Reporter: Ivan Maidanski Priority: Minor Local file paths with a drive prefix are not handled correctly by resolveFile(). Eg.: import org.apache.commons.vfs.VFS; public class Test { public static void main(String[] args) throws Exception { System.out.println(VFS.getManager().resolveFile("file:/c:/").resolveFile("d:/")); System.out.println(VFS.getManager().resolveFile("file:/c:/").resolveFile("/d:/")); } } Produces output (twice): file:///c:/d:/ The correct output should be: file:///d:/ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.