[ 
https://issues.apache.org/jira/browse/CAMEL-20527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151668#comment-18151668
 ] 

Claus Ibsen commented on CAMEL-20527:
-------------------------------------

The failure behind this ticket (CAMEL-20518) was a typographic quote read with 
the Windows default charset. Since Camel requires Java 21, the default charset 
is UTF-8 on all platforms (JEP 400). The generators already sanitize 
descriptions (JavadocHelper.sanitizeDescription, DslHelper.sanitizeText), and 
the generated catalog JSON has no non-ASCII characters. Closing, as no concrete 
place is left; a new ticket can be opened if a specific generator breaks.

_Claude Code on behalf of davsclaus_

> Camel project - implement string sanitization for code generation
> -----------------------------------------------------------------
>
>                 Key: CAMEL-20527
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20527
>             Project: Camel
>          Issue Type: Task
>          Components: build system, tooling
>            Reporter: Otavio Rodolfo Piske
>            Priority: Minor
>
> There are many places where we consume metadata directly from the source code 
> and use it to generate json, runtime metadata, catalog files, configurators, 
> and much more. 
> In some cases this code is not sanitized, and as such, may suffer from 
> problems where invalid characters are used on those Strings. 
> We should implement sanitization for those strings to avoid problems such as 
> those on CAMEL-20518. 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to