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

Jordan Zimmerman resolved CURATOR-58.
-------------------------------------

    Resolution: Fixed

EnsurePath and creatingParentsIfNeeded() were not using the ACLProvider to 
create parent nodes. The fix for this
    is complicated by the fact that ACLProvider is in the framework module but 
ZKPaths is in the client module. Workaround
    by introducing a InternalACLProvider and making ACLProvider a "synonym" for 
it. It can now be passed to ZKPaths.mkdirs().

> ACLs support for ZKPaths.mkdirs()
> ---------------------------------
>
>                 Key: CURATOR-58
>                 URL: https://issues.apache.org/jira/browse/CURATOR-58
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Client, Framework
>    Affects Versions: 2.0.1-incubating
>         Environment: Ubuntu 10.10
>            Reporter: Benjamin Jaton
>            Priority: Minor
>             Fix For: 2.3.1
>
>
> ZKPaths always creates parent node using the OPEN_ACL_UNSAFE ACL:
> line 168:
> zookeeper.create(subPath, new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, 
> CreateMode.PERSISTENT);
> As a result:
> - EnsurePath.ensure(..)
> - CreateBuilderImpl.backgroundCreateParentsThenNode
> - CreateBuilderImpl.pathInForeground
> will never use the ACLProvider and will always create unprotected nodes.
> The workaround is not to use those methods and create the parents manually, 
> node by node.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to