curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Byrne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CURATOR-189) Inconsistent path validation for creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT_SEQUENTIAL)
Date Thu, 19 Feb 2015 20:34:11 GMT

     [ https://issues.apache.org/jira/browse/CURATOR-189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tom Byrne updated CURATOR-189:
------------------------------
    Attachment: ParentInconsistency.java

This SSCCE shows how the call results are different, depending on the state of the parent.

> 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
>         Attachments: ParentInconsistency.java
>
>
> 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)

Mime
View raw message