[ https://issues.apache.org/jira/browse/KAFKA-3152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120007#comment-15120007 ]
ASF GitHub Bot commented on KAFKA-3152: --------------------------------------- GitHub user ijuma opened a pull request: https://github.com/apache/kafka/pull/820 KAFKA-3152; kafka-acl doesn't allow space in principal name (backport to 0.9.0) This is a backport of the trunk PR and it excludes the test changes due to conflicts and the fact that the changes were not directly related to the bug in the end (it was something we did not test for, but the non-shell code was already correct). Details: * Add quotes to `$` in shell scripts This is necessary for correct processing of quotes in the user command. * Minor improvements to AclCommand messages You can merge this pull request into a Git repository by running: $ git pull https://github.com/ijuma/kafka kafka-3152-backport-kafka-acl-space-in-principal-name Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/820.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #820 ---- commit 20adaf6677c39865b3a288d112079f12f3842737 Author: Ismael Juma <ism...@juma.me.uk> Date: 2016-01-27T16:23:25Z KAFKA-3152; kafka-acl doesn't allow space in principal name This is a backport of the trunk PR and it excludes the test changes due to conflicts and the fact that the changes were not directly related to the bug in the end (it was something we did not test for, but the non-shell code was already correct). Details: * Add quotes to `$` in shell scripts This is necessary for correct processing of quotes in the user command. * Minor improvements to AclCommand messages ---- > kafka-acl doesn't allow space in principal name > ----------------------------------------------- > > Key: KAFKA-3152 > URL: https://issues.apache.org/jira/browse/KAFKA-3152 > Project: Kafka > Issue Type: Bug > Components: core > Affects Versions: 0.9.0.0 > Reporter: Jun Rao > Assignee: Ismael Juma > > When running the following, > kafka-acls --authorizer kafka.security.auth.SimpleAclAuthorizer > --authorizer-properties zookeeper.connect=localhost:2181 --topic test --add > --producer --allow-host=* --allow-principal "User:CN=xxx,O=My Organization" > the acl is set as the following. The part after space is ignored. > Following is list of acls for resource: Topic:test > User:CN=xxx,O=My has Allow permission for operations: Describe from > hosts: * > User:CN=xxx,O=My has Allow permission for operations: Write from hosts: > * -- This message was sent by Atlassian JIRA (v6.3.4#6332)