Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14ADB172B4 for ; Thu, 19 Feb 2015 20:33:12 +0000 (UTC) Received: (qmail 95968 invoked by uid 500); 19 Feb 2015 20:33:11 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 95919 invoked by uid 500); 19 Feb 2015 20:33:11 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 95902 invoked by uid 99); 19 Feb 2015 20:33:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2015 20:33:11 +0000 Date: Thu, 19 Feb 2015 20:33:11 +0000 (UTC) From: "Tom Byrne (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CURATOR-189) Inconsistent path validation for creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT_SEQUENTIAL) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Tom Byrne created CURATOR-189: --------------------------------- Summary: Inconsistent path validation for creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT_SEQUENTIAL) Key: CURATOR-189 URL: https://issues.apache.org/jira/browse/CURATOR-189 Project: Apache Curator Issue Type: Bug Components: Framework Affects Versions: 2.4.2 Environment: MacOSX Reporter: Tom Byrne Priority: Minor There is an inconsistency in handling paths when calling: curator.create().creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT_SEQUENTIAL).forPath(). If the path passed ends with a "/", the call will succeed if the parents exist, but fail if it does not exist. There is no path validation done on the parent path unless it needs to be created. I think the correct behavior should be that if the parent path ends with a "/", then just to remove the slash and create the parents anyways. -- This message was sent by Atlassian JIRA (v6.3.4#6332)