Skip to content

Commit

Permalink
fix: ksql.service.id should not be usable as a query parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgadur committed Mar 10, 2021
1 parent 643816f commit 2c612e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion ksqldb-cli/src/main/java/io/confluent/ksql/cli/Cli.java
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ private void setPropertyFromCtxt(

private void setProperty(final String property, final String value) {
final Object priorValue = restClient.setProperty(property, value);

terminal.writer().printf(
"Successfully changed local property '%s'%s to '%s'.%s%n",
property,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class DenyListPropertyValidator {
private final Set<String> immutableProps;

public DenyListPropertyValidator(final Collection<String> immutableProps) {
this.immutableProps = ImmutableSet.copyOf(
Objects.requireNonNull(immutableProps, "immutableProps"));
this.immutableProps = ImmutableSet.<String>builder().addAll(
Objects.requireNonNull(immutableProps, "immutableProps")).add("ksql.service.id").build();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ static KsqlRestApplication buildApplication(
final RateLimiter pullQueryRateLimiter = RateLimiter.create(
ksqlConfig.getInt(KsqlConfig.KSQL_QUERY_PULL_MAX_QPS_CONFIG));


final DenyListPropertyValidator denyListPropertyValidator = new DenyListPropertyValidator(
ksqlConfig.getList(KsqlConfig.KSQL_PROPERTIES_OVERRIDES_DENYLIST));

Expand Down

0 comments on commit 2c612e3

Please sign in to comment.