Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3891

ZKCli commands give wrong error message "Authentication is not valid" for insufficient permissions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.7.0
    • None

    Description

      ZKCli commands give error message "Authentication is not valid" for insufficient permissions .(when KeeperException.NoAuthException is thrown). This is misleading message. 

      Steps: to get the error

      [zk: vm1:2181(CONNECTED) 0] create /b
      Created /b
      [zk: vm1:2181(CONNECTED) 1] getAcl /b
      'world,'anyone
      : cdrwa
      [zk: vm1:2181(CONNECTED) 2] setAcl /b world:anyone:ra
      [zk: vm1:2181(CONNECTED) 3] getAcl /b
      'world,'anyone
      : ra
      [zk: vm1:2181(CONNECTED) 4] create /b/b1
      Authentication is not valid : /b/b1
      [zk: vm1:2181(CONNECTED) 5]
      

       

      I think we should change  message "Authentication is not valid" to "Insufficient permission"
       

      Attachments

        Issue Links

          Activity

            People

              eolivelli Enrico Olivelli
              arshad.mohammad Mohammad Arshad
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h