You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "allengao (JIRA)" <ji...@apache.org> on 2011/04/13 11:41:05 UTC

[jira] [Created] (ZOOKEEPER-1048) addauth command does not work in cli_mt/cli_st

addauth command does not work in cli_mt/cli_st
----------------------------------------------

                 Key: ZOOKEEPER-1048
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1048
             Project: ZooKeeper
          Issue Type: Bug
          Components: c client
    Affects Versions: 3.3.1
         Environment: SUSE_64
            Reporter: allengao
             Fix For: 3.3.4


I can not operation a node with ACL by "addauth" when using cli_st. I have fixed this bug: 
original:else if (startsWith(line, "addauth ")) {
      char *ptr;
      line += 8;
      ptr = strchr(line, ' ');
      if (ptr) {
        *ptr = '\0';
        ptr++;
      }
      zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) -1 : 0, NULL, NULL);
now: zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) : 0, NULL, NULL);
strlen(ptr) is just ok.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (ZOOKEEPER-1048) addauth command does not work in cli_mt/cli_st

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

Michi Mutsuzaki commented on ZOOKEEPER-1048:
--------------------------------------------

Hi allengao,

I think you are right. Let me test it out, and I'll check in the fix.

Thanks!
--Michi
                
> addauth command does not work in cli_mt/cli_st
> ----------------------------------------------
>
>                 Key: ZOOKEEPER-1048
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1048
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.3.1
>         Environment: SUSE_64
>            Reporter: allengao
>              Labels: patch
>             Fix For: 3.3.6
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I can not operation a node with ACL by "addauth" when using cli_st. I have fixed this bug: 
> original:else if (startsWith(line, "addauth ")) {
>       char *ptr;
>       line += 8;
>       ptr = strchr(line, ' ');
>       if (ptr) {
>         *ptr = '\0';
>         ptr++;
>       }
>       zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) -1 : 0, NULL, NULL);
> now: zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) : 0, NULL, NULL);
> strlen(ptr) is just ok.

--
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-1048) addauth command does not work in cli_mt/cli_st

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

Hudson commented on ZOOKEEPER-1048:
-----------------------------------

Integrated in ZooKeeper-trunk #1548 (See [https://builds.apache.org/job/ZooKeeper-trunk/1548/])
    ZOOKEEPER-1048. addauth command does not work in cli_mt/cli_st (allengao via michim) (Revision 1334548)

     Result = SUCCESS
michim : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1334548
Files : 
* /zookeeper/trunk/CHANGES.txt
* /zookeeper/trunk/src/c/src/cli.c

                
> addauth command does not work in cli_mt/cli_st
> ----------------------------------------------
>
>                 Key: ZOOKEEPER-1048
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1048
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.3.1
>         Environment: SUSE_64
>            Reporter: allengao
>              Labels: patch
>             Fix For: 3.3.6, 3.4.4, 3.5.0
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I can not operation a node with ACL by "addauth" when using cli_st. I have fixed this bug: 
> original:else if (startsWith(line, "addauth ")) {
>       char *ptr;
>       line += 8;
>       ptr = strchr(line, ' ');
>       if (ptr) {
>         *ptr = '\0';
>         ptr++;
>       }
>       zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) -1 : 0, NULL, NULL);
> now: zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) : 0, NULL, NULL);
> strlen(ptr) is just ok.

--
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-1048) addauth command does not work in cli_mt/cli_st

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

Patrick Hunt updated ZOOKEEPER-1048:
------------------------------------

    Fix Version/s:     (was: 3.3.4)
                   3.3.5
    
> addauth command does not work in cli_mt/cli_st
> ----------------------------------------------
>
>                 Key: ZOOKEEPER-1048
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1048
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.3.1
>         Environment: SUSE_64
>            Reporter: allengao
>              Labels: patch
>             Fix For: 3.3.5
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I can not operation a node with ACL by "addauth" when using cli_st. I have fixed this bug: 
> original:else if (startsWith(line, "addauth ")) {
>       char *ptr;
>       line += 8;
>       ptr = strchr(line, ' ');
>       if (ptr) {
>         *ptr = '\0';
>         ptr++;
>       }
>       zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) -1 : 0, NULL, NULL);
> now: zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) : 0, NULL, NULL);
> strlen(ptr) is just ok.

--
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] [Resolved] (ZOOKEEPER-1048) addauth command does not work in cli_mt/cli_st

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

Michi Mutsuzaki resolved ZOOKEEPER-1048.
----------------------------------------

    Resolution: Fixed
    
> addauth command does not work in cli_mt/cli_st
> ----------------------------------------------
>
>                 Key: ZOOKEEPER-1048
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1048
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.3.1
>         Environment: SUSE_64
>            Reporter: allengao
>              Labels: patch
>             Fix For: 3.3.6, 3.4.4, 3.5.0
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I can not operation a node with ACL by "addauth" when using cli_st. I have fixed this bug: 
> original:else if (startsWith(line, "addauth ")) {
>       char *ptr;
>       line += 8;
>       ptr = strchr(line, ' ');
>       if (ptr) {
>         *ptr = '\0';
>         ptr++;
>       }
>       zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) -1 : 0, NULL, NULL);
> now: zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) : 0, NULL, NULL);
> strlen(ptr) is just ok.

--
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-1048) addauth command does not work in cli_mt/cli_st

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

Patrick Hunt updated ZOOKEEPER-1048:
------------------------------------

    Fix Version/s:     (was: 3.3.5)
                   3.3.6
    
> addauth command does not work in cli_mt/cli_st
> ----------------------------------------------
>
>                 Key: ZOOKEEPER-1048
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1048
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.3.1
>         Environment: SUSE_64
>            Reporter: allengao
>              Labels: patch
>             Fix For: 3.3.6
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I can not operation a node with ACL by "addauth" when using cli_st. I have fixed this bug: 
> original:else if (startsWith(line, "addauth ")) {
>       char *ptr;
>       line += 8;
>       ptr = strchr(line, ' ');
>       if (ptr) {
>         *ptr = '\0';
>         ptr++;
>       }
>       zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) -1 : 0, NULL, NULL);
> now: zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) : 0, NULL, NULL);
> strlen(ptr) is just ok.

--
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-1048) addauth command does not work in cli_mt/cli_st

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

Michi Mutsuzaki updated ZOOKEEPER-1048:
---------------------------------------

    Fix Version/s: 3.5.0
                   3.4.4
    
> addauth command does not work in cli_mt/cli_st
> ----------------------------------------------
>
>                 Key: ZOOKEEPER-1048
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1048
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.3.1
>         Environment: SUSE_64
>            Reporter: allengao
>              Labels: patch
>             Fix For: 3.3.6, 3.4.4, 3.5.0
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I can not operation a node with ACL by "addauth" when using cli_st. I have fixed this bug: 
> original:else if (startsWith(line, "addauth ")) {
>       char *ptr;
>       line += 8;
>       ptr = strchr(line, ' ');
>       if (ptr) {
>         *ptr = '\0';
>         ptr++;
>       }
>       zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) -1 : 0, NULL, NULL);
> now: zoo_add_auth(zh, line, ptr, ptr ? strlen(ptr) : 0, NULL, NULL);
> strlen(ptr) is just ok.

--
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