camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10095) bug in "remove whitespace noise from uri"
Date Mon, 27 Jun 2016 13:48:52 GMT

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

Claus Ibsen commented on CAMEL-10095:
-------------------------------------

This is by design for allowing to split uri attribute over new lines, where whitespace must
be removed to build the uri as a single lined value.

The pattern {2,} is not in groups of 2,4,6, etc. It is 2 or more.

> bug in "remove whitespace noise from uri"
> -----------------------------------------
>
>                 Key: CAMEL-10095
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10095
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-blueprint, camel-spring
>    Affects Versions: 2.17.1
>            Reporter: Michal Nikodím
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.16.4, 2.17.3, 2.18.0
>
>
> in:
> {noformat}org.apache.camel.spring.handler.CamelNamespaceHandler.doBeforeParse(Node){noformat}
> on row 107 is:
> {noformat}String changed = value.replaceAll("\\s{2,}", "");{noformat}
> but it removes all the white chars that are in an even number (2,4,6,8 etc)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message