You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2009/06/08 22:38:07 UTC

[jira] Updated: (ZOOKEEPER-433) getacl on root znode (/) fails

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

Patrick Hunt updated ZOOKEEPER-433:
-----------------------------------

    Attachment: ZOOKEEPER-433.patch

this fixes a problem with getacl on root (all virtual) nodes.

basically the acl for virtual nodes was -1, indicating default, which we weren't handling
properly before. now we map to OPEN ALL.

Added c and java tests, also fixed up the c docs a bit as well (added)


> getacl on root znode (/) fails
> ------------------------------
>
>                 Key: ZOOKEEPER-433
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-433
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.1.1
>            Reporter: Patrick Hunt
>            Assignee: Patrick Hunt
>            Priority: Blocker
>             Fix For: 3.2.0
>
>         Attachments: ZOOKEEPER-433.patch
>
>
> running a "getAcl" on the root znode "/" fails with the following:
> Fri Jun  5 10:21:17 2009: 2009-06-05 10:21:17,072 - ERROR [CommitProcessor:3:FinalRequestProcessor@243] - Failed to process sessionid:0x321b16868f40003 ty
> pe:getACL cxid:0x3 zxid:0xfffffffffffffffe txntype:unknown n/a 
> Fri Jun  5 10:21:17 2009: java.lang.NullPointerException
> Fri Jun  5 10:21:17 2009:       at java.util.ArrayList.<init>(ArrayList.java:131)
> Fri Jun  5 10:21:17 2009:       at org.apache.zookeeper.server.DataTree.getACL(DataTree.java:622)
> Fri Jun  5 10:21:17 2009:       at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:216)
> Fri Jun  5 10:21:17 2009:       at org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitProcessor.java:74)
> Fri Jun  5 10:21:17 2009: 2009-06-05 10:21:17,073 - ERROR [CommitProcessor:3:FinalRequestProcessor@250] - Dumping request buffer: 0x00012f
> We need to support getting/setting the root acl in particular -- not being able to control acls on this node makes multi-tenancy a non-starter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.