Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 992E110F04 for ; Fri, 23 Aug 2013 19:37:57 +0000 (UTC) Received: (qmail 72984 invoked by uid 500); 23 Aug 2013 19:37:56 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 72773 invoked by uid 500); 23 Aug 2013 19:37:54 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 72632 invoked by uid 99); 23 Aug 2013 19:37:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 19:37:52 +0000 Date: Fri, 23 Aug 2013 19:37:52 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9897) Add method to get path start position without drive specifier in o.a.h.fs.Path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-9897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748911#comment-13748911 ] Chris Nauroth commented on HADOOP-9897: --------------------------------------- It looks like this patch won't work now that HADOOP-9887 has been committed. That patch added another call to {{Path#isWindowsAbsolutePath}}. This is a public static method on a {{Public}} and {{Stable}} annotated class, so changing this method signature would be backwards-incompatible. A safer change would be to handle this just as an internal refactoring within {{Path}}, and keep the public method signatures the same. > Add method to get path start position without drive specifier in o.a.h.fs.Path > -------------------------------------------------------------------------------- > > Key: HADOOP-9897 > URL: https://issues.apache.org/jira/browse/HADOOP-9897 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Binglin Chang > Assignee: Binglin Chang > Priority: Trivial > Attachments: HADOOP-9897.v1.patch > > > There are a lot of code in Path to get start position after skipping drive specifier, like: > {code} > int start = hasWindowsDrive(uri.getPath()) ? 3 : 0; > {code} > Also there is a minor bug in mergePaths: > mergePath("/", "/foo") will yield Path("//foo") which will be parsed as uri authority, not path. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira