If the system environment variables include kafka
or KAFKA
, the KafkaRuntimeConfigProducer
throws an exception.
#40677
Labels
Milestone
Describe the bug
If the system environment variables include
kafka
orKAFKA
, theKafkaRuntimeConfigProducer
throws an error.The
substring
here throws an exception:quarkus/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaRuntimeConfigProducer.java
Lines 40 to 41 in 670b1ad
Expected behavior
Work without throwing any error
Actual behavior
throw exception:
Caused by: java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 5
How to Reproduce?
Output of
uname -a
orver
Windows_NT minij 6.2 9200 x86_64 MS/Windows
Output of
java -version
openjdk version "21" 2023-09-19 OpenJDK Runtime Environment (build 21+35-2513) OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)
Quarkus version or git rev
3.10.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
Additional information
No response
The text was updated successfully, but these errors were encountered: