Skip to content

Commit 523562c

Browse files
ijumajunrao
authored andcommitted
KAFKA-3152; kafka-acl doesn't allow space in principal name
* Add quotes to `$` in shell scripts This is necessary for correct processing of quotes in the user command. * Minor improvements to AclCommand messages * Use a principal with a space in `SslEndToEndAuthorizationTest` This passed without any other changes, but good avoid regressions. * Clean-up `TestSslUtils`: Remove unused methods, fix unnecessary verbosity and don't set security.protocol (it should be done at a higher-level). Author: Ismael Juma <ismael@juma.me.uk> Reviewers: Grant Henke <granthenke@gmail.com>, Jun Rao <junrao@gmail.com Closes apache#818 from ijuma/kafka-3152-kafka-acl-space-in-principal
1 parent 22de0a8 commit 523562c

28 files changed

+75
-103
lines changed

bin/kafka-acls.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
exec $(dirname $0)/kafka-run-class.sh kafka.admin.AclCommand $@
17+
exec $(dirname $0)/kafka-run-class.sh kafka.admin.AclCommand "$@"

bin/kafka-configs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
exec $(dirname $0)/kafka-run-class.sh kafka.admin.ConfigCommand $@
17+
exec $(dirname $0)/kafka-run-class.sh kafka.admin.ConfigCommand "$@"

bin/kafka-console-consumer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
1818
export KAFKA_HEAP_OPTS="-Xmx512M"
1919
fi
2020

21-
exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsoleConsumer $@
21+
exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsoleConsumer "$@"

bin/kafka-console-producer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
1818
export KAFKA_HEAP_OPTS="-Xmx512M"
1919
fi
20-
exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsoleProducer $@
20+
exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsoleProducer "$@"

bin/kafka-consumer-groups.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
exec $(dirname $0)/kafka-run-class.sh kafka.admin.ConsumerGroupCommand $@
17+
exec $(dirname $0)/kafka-run-class.sh kafka.admin.ConsumerGroupCommand "$@"

bin/kafka-consumer-offset-checker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsumerOffsetChecker $@
17+
exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsumerOffsetChecker "$@"

bin/kafka-consumer-perf-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
1818
export KAFKA_HEAP_OPTS="-Xmx512M"
1919
fi
20-
exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsumerPerformance $@
20+
exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsumerPerformance "$@"

bin/kafka-mirror-maker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
exec $(dirname $0)/kafka-run-class.sh kafka.tools.MirrorMaker $@
17+
exec $(dirname $0)/kafka-run-class.sh kafka.tools.MirrorMaker "$@"

bin/kafka-preferred-replica-election.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
exec $(dirname $0)/kafka-run-class.sh kafka.admin.PreferredReplicaLeaderElectionCommand $@
17+
exec $(dirname $0)/kafka-run-class.sh kafka.admin.PreferredReplicaLeaderElectionCommand "$@"

bin/kafka-producer-perf-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
1818
export KAFKA_HEAP_OPTS="-Xmx512M"
1919
fi
20-
exec $(dirname $0)/kafka-run-class.sh org.apache.kafka.tools.ProducerPerformance $@
20+
exec $(dirname $0)/kafka-run-class.sh org.apache.kafka.tools.ProducerPerformance "$@"

0 commit comments

Comments
 (0)