You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zoran Regvart (JIRA)" <ji...@apache.org> on 2018/12/21 12:51:00 UTC

[jira] [Comment Edited] (CAMEL-12982) Add support for alternative RAW() syntax

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

Zoran Regvart edited comment on CAMEL-12982 at 12/21/18 12:50 PM:
------------------------------------------------------------------

Perhaps a good way to handle this would be to support syntax of RAW and three consecutive characters to start and end the raw syntax, with the addition of handling opening and closing braces, so all these would be valid:
 * RAW\{\{\{{{...\}\}\}}}
 * RAW[[[...]]]
 * RAW(((...)))
 * RAW```...```
 * RAW\\\...\\\
 * RAWaaa...aaa
 * RAW(...) - the existing syntax


was (Author: zregvart):
Perhaps a good way to handle this would be to support syntax of RAW and three consecutive characters to start and end the raw syntax, with the addition of handling opening and closing braces, so all these would be valid:
 * RAW\{{{...}}}
 * RAW[[[...]]]
 * RAW(((...)))
 * RAW```...```
 * RAW\\\...\\\
 * RAWaaa...aaa
 * RAW(...) - the existing syntax

> Add support for alternative RAW() syntax
> ----------------------------------------
>
>                 Key: CAMEL-12982
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12982
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Tadayoshi Sato
>            Priority: Major
>             Fix For: 3.0.0, 2.24.0
>
>
> In some edge case you may have a password=foo)+bar which you want to use as-is. The + sign gets escaped and therefore you need to use RAW syntax. But the closing paranthesis is used the first one. And the parser is not always smart enough. But this can be tricky to improve as you can use &a=v as will and the parser thinks its a new option etc.
> So instead we should add an alternative syntax such as RAW{} where we use curly brackets.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)