curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan Zimmerman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CURATOR-221) ACLProvider is not respected on parent nodes after calling CuratorFramework.usingNamespace
Date Mon, 18 May 2015 23:11:00 GMT

    [ https://issues.apache.org/jira/browse/CURATOR-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14549478#comment-14549478
] 

Jordan Zimmerman commented on CURATOR-221:
------------------------------------------

The ship may have already left the port on this. The workaround is so trivial that it doesn't
seem worth changing behavior for existing users. Where you create your Curator handle, add
a one liner to create the namespace node with the ACL.

> ACLProvider is not respected on parent nodes after calling CuratorFramework.usingNamespace
> ------------------------------------------------------------------------------------------
>
>                 Key: CURATOR-221
>                 URL: https://issues.apache.org/jira/browse/CURATOR-221
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 2.7.1
>            Reporter: Gregory Chanan
>
> See HADOOP-11973 for some background information.
> Here's a high level overview of the issue I'm seeing:
> 1) I create a CuratorFramework with a non-default ACLProvider
> 2) I call framework.usingNamespace("/solr/zkdtsm") on the curator framework
> 3) I do some action, like starting a new SharedCount on a subnode of the namespace /testPath/ZKDTSMRoot/ZKDTSMSeqNumRoot
> Result: the tree is created, but neither /solr nor /solr/zkdtsm have ACLs, while /testPath/ZKDTSMRoot/ZKDTSMSeqNumRoot
does.  I would expect all those nodes would have ACLs because I only performed zookeeper actions
on a CuratorFramework with an ACLProvider specified.
> This seems to happen because NamespaceImpl does not save the ACLProvider, see this line:
> https://github.com/apache/curator/blob/7f2098654a26e2f593801a586ce68300f54abf15/curator-framework/src/main/java/org/apache/curator/framework/imps/NamespaceImpl.java#L47
> Then, when an action is performed on the namespace, fixForNamespace is called:
> https://github.com/apache/curator/blob/7f2098654a26e2f593801a586ce68300f54abf15/curator-framework/src/main/java/org/apache/curator/framework/imps/NamespaceImpl.java#L74
> resulting in the parents being created without an ACL.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message