dshma commented on issue #1577: URL: https://github.com/apache/camel-kafka-connector/issues/1577#issuecomment-1924910290
Hello there, Had recently a chance to debug the issue and came across the following place: camel/core/camel-util/src/main/java/org/apache/camel/util/StringHelper:dashToCamelCase ``` /** * Converts the string from dash format into camel case (hello-great-world -> helloGreatWorld) * * @param text the string * @return the string camel cased */ public static String dashToCamelCase(String text) { if (text == null) { return null; } int length = text.length(); if (length == 0) { return text; } if (text.indexOf('-') == -1) { return text; } // there is at least 1 dash so the capacity can be shorter StringBuilder sb = new StringBuilder(length - 1); boolean upper = false; for (int i = 0; i < length; i++) { char c = text.charAt(i); if (c == '-') { upper = true; } else { if (upper) { c = Character.toUpperCase(c); } sb.append(c); upper = false; } } return sb.toString(); } ``` This is what trims dashes for the property and format mentioned above: ` "camel.component.rabbitmq.args[queue.x-queue-type]": "quorum" ` We've applied a temporal fix that doesn't execute the logic within the method for the specific property, but this might be smth to keep in mind in newer versions. fyi: @oscerd -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org