You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "amith (Created) (JIRA)" <ji...@apache.org> on 2011/11/23 10:07:40 UTC

[jira] [Created] (ZOOKEEPER-1307) zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client

zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client
----------------------------------------------------------------------------------------------

                 Key: ZOOKEEPER-1307
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1307
             Project: ZooKeeper
          Issue Type: Bug
          Components: java client
         Environment: zkCli.sh
            Reporter: amith
            Priority: Minor
             Fix For: 3.3.5


use consoleClient (zkCli.sh) and issue setAcl /temp abc
[zk: XX.XX.XX.XX:XXXX(CONNECTED) 17] setAcl /temp abc
abc does not have the form scheme:id:perm
Exception in thread "main" org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL
        at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1172)
        at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:717)
        at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582)
        at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354)
        at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312)
        at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)
linux-xxx:/zookeeper1/bin #

if any InvalidACLException is thrown then client is exiting.
client should be able to handle this kind of issues



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (ZOOKEEPER-1307) zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client

Posted by "kavita sharma (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

kavita sharma reassigned ZOOKEEPER-1307:
----------------------------------------

    Assignee: kavita sharma
    
> zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client
> ----------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1307
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1307
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>         Environment: zkCli.sh
>            Reporter: amith
>            Assignee: kavita sharma
>            Priority: Minor
>             Fix For: 3.3.5
>
>
> use consoleClient (zkCli.sh) and issue setAcl /temp abc
> [zk: XX.XX.XX.XX:XXXX(CONNECTED) 17] setAcl /temp abc
> abc does not have the form scheme:id:perm
> Exception in thread "main" org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL
>         at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1172)
>         at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:717)
>         at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582)
>         at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354)
>         at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312)
>         at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)
> linux-xxx:/zookeeper1/bin #
> if any InvalidACLException is thrown then client is exiting.
> client should be able to handle this kind of issues

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (ZOOKEEPER-1307) zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client

Posted by "Patrick Hunt (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231761#comment-13231761 ] 

Patrick Hunt commented on ZOOKEEPER-1307:
-----------------------------------------

Thanks Kavita!

(just a couple nits - we use spaces a bit more liberally (compare your changes to the surrounding code), also we typically don't import *, it's fine this go round (I committed your patch unchanged) but for future, regards)
                
> zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client
> ----------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1307
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1307
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>         Environment: zkCli.sh
>            Reporter: amith
>            Assignee: kavita sharma
>            Priority: Minor
>              Labels: newbie
>             Fix For: 3.5.0
>
>         Attachments: ZOOKEEPER-1307.patch
>
>
> use consoleClient (zkCli.sh) and issue setAcl /temp abc
> [zk: XX.XX.XX.XX:XXXX(CONNECTED) 17] setAcl /temp abc
> abc does not have the form scheme:id:perm
> Exception in thread "main" org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL
>         at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1172)
>         at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:717)
>         at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582)
>         at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354)
>         at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312)
>         at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)
> linux-xxx:/zookeeper1/bin #
> if any InvalidACLException is thrown then client is exiting.
> client should be able to handle this kind of issues

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (ZOOKEEPER-1307) zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231917#comment-13231917 ] 

Hudson commented on ZOOKEEPER-1307:
-----------------------------------

Integrated in ZooKeeper-trunk #1494 (See [https://builds.apache.org/job/ZooKeeper-trunk/1494/])
    ZOOKEEPER-1307. zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client (Kavita Sharma via phunt) (Revision 1301840)

     Result = SUCCESS
phunt : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1301840
Files : 
* /zookeeper/trunk/CHANGES.txt
* /zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeper.java
* /zookeeper/trunk/src/java/main/org/apache/zookeeper/ZooKeeperMain.java
* /zookeeper/trunk/src/java/test/org/apache/zookeeper/ZooKeeperTest.java

                
> zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client
> ----------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1307
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1307
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>         Environment: zkCli.sh
>            Reporter: amith
>            Assignee: kavita sharma
>            Priority: Minor
>              Labels: newbie
>             Fix For: 3.4.4, 3.5.0
>
>         Attachments: ZOOKEEPER-1307.patch
>
>
> use consoleClient (zkCli.sh) and issue setAcl /temp abc
> [zk: XX.XX.XX.XX:XXXX(CONNECTED) 17] setAcl /temp abc
> abc does not have the form scheme:id:perm
> Exception in thread "main" org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL
>         at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1172)
>         at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:717)
>         at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582)
>         at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354)
>         at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312)
>         at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)
> linux-xxx:/zookeeper1/bin #
> if any InvalidACLException is thrown then client is exiting.
> client should be able to handle this kind of issues

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ZOOKEEPER-1307) zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client

Posted by "Patrick Hunt (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-1307:
------------------------------------

    Fix Version/s: 3.4.1
                   3.5.0
    
> zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client
> ----------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1307
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1307
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>         Environment: zkCli.sh
>            Reporter: amith
>            Assignee: kavita sharma
>            Priority: Minor
>              Labels: newbie
>             Fix For: 3.5.0, 3.4.1, 3.3.5
>
>
> use consoleClient (zkCli.sh) and issue setAcl /temp abc
> [zk: XX.XX.XX.XX:XXXX(CONNECTED) 17] setAcl /temp abc
> abc does not have the form scheme:id:perm
> Exception in thread "main" org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL
>         at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1172)
>         at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:717)
>         at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582)
>         at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354)
>         at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312)
>         at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)
> linux-xxx:/zookeeper1/bin #
> if any InvalidACLException is thrown then client is exiting.
> client should be able to handle this kind of issues

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ZOOKEEPER-1307) zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client

Posted by "kavita sharma (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

kavita sharma updated ZOOKEEPER-1307:
-------------------------------------

    Attachment: ZOOKEEPER-1307.patch
    
> zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client
> ----------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1307
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1307
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>         Environment: zkCli.sh
>            Reporter: amith
>            Assignee: kavita sharma
>            Priority: Minor
>              Labels: newbie
>             Fix For: 3.5.0
>
>         Attachments: ZOOKEEPER-1307.patch
>
>
> use consoleClient (zkCli.sh) and issue setAcl /temp abc
> [zk: XX.XX.XX.XX:XXXX(CONNECTED) 17] setAcl /temp abc
> abc does not have the form scheme:id:perm
> Exception in thread "main" org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL
>         at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1172)
>         at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:717)
>         at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582)
>         at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354)
>         at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312)
>         at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)
> linux-xxx:/zookeeper1/bin #
> if any InvalidACLException is thrown then client is exiting.
> client should be able to handle this kind of issues

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (ZOOKEEPER-1307) zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client

Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182454#comment-13182454 ] 

Hadoop QA commented on ZOOKEEPER-1307:
--------------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12509891/ZOOKEEPER-1307.patch
  against trunk revision 1227927.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/888//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/888//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/888//console

This message is automatically generated.
                
> zkCli.sh is exiting when an Invalid ACL exception is thrown from setACL command through client
> ----------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1307
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1307
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>         Environment: zkCli.sh
>            Reporter: amith
>            Assignee: kavita sharma
>            Priority: Minor
>              Labels: newbie
>             Fix For: 3.5.0
>
>         Attachments: ZOOKEEPER-1307.patch
>
>
> use consoleClient (zkCli.sh) and issue setAcl /temp abc
> [zk: XX.XX.XX.XX:XXXX(CONNECTED) 17] setAcl /temp abc
> abc does not have the form scheme:id:perm
> Exception in thread "main" org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL
>         at org.apache.zookeeper.ZooKeeper.setACL(ZooKeeper.java:1172)
>         at org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:717)
>         at org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:582)
>         at org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:354)
>         at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:312)
>         at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:271)
> linux-xxx:/zookeeper1/bin #
> if any InvalidACLException is thrown then client is exiting.
> client should be able to handle this kind of issues

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira