You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Michal Nikodím (JIRA)" <ji...@apache.org> on 2016/06/27 14:33:52 UTC

[jira] [Comment Edited] (CAMEL-10095) bug in "remove whitespace noise from uri"

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

Michal Nikodím edited comment on CAMEL-10095 at 6/27/16 2:33 PM:
-----------------------------------------------------------------

example:
{noformat}
            <from uri="webapi:GET				/v1/phonebook/buildings?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/buildings/{id}?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/countries?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/countries/{country}?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/cities?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/streets?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/companies?oauth=OPTIONAL"/>
            <from uri="webapi:POST				/v1/phonebook/companies"/>
            <from uri="webapi:GET				/v1/phonebook/companies/{companyCode}?oauth=OPTIONAL"/>
            <from uri="webapi:PUT,DELETE 		        /v1/phonebook/companies/{companyCode}"/>
{noformat}


was (Author: michal.nikodim@topmonks.com):
example:
{noformat}
            <from uri="webapi:GET				/v1/phonebook/buildings?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/buildings/{id}?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/countries?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/countries/{country}?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/cities?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/streets?oauth=OPTIONAL"/>
            <from uri="webapi:GET				/v1/phonebook/companies?oauth=OPTIONAL"/>
            <from uri="webapi:POST				/v1/phonebook/companies"/>
            <from uri="webapi:GET				/v1/phonebook/companies/{companyCode}?oauth=OPTIONAL"/>
            <from uri="webapi:PUT,DELETE 		        /v1/phonebook/companies/{companyCode}"/>
<noformat}

> 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)