Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-58

ACLs support for ZKPaths.mkdirs()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.1-incubating
    • 2.4.0
    • Client, Framework
    • None
    • Ubuntu 10.10

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              randgalt Jordan Zimmerman
              benjamin.jaton Benjamin Jaton
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: