You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/05/15 08:55:00 UTC

[jira] [Resolved] (CAMEL-15058) Rest DSL generated controller error when dispatching request

     [ https://issues.apache.org/jira/browse/CAMEL-15058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-15058.
---------------------------------
    Resolution: Fixed

> Rest DSL generated controller error when dispatching request
> ------------------------------------------------------------
>
>                 Key: CAMEL-15058
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15058
>             Project: Camel
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 3.3.0
>            Reporter: Denis Istomin
>            Assignee: Denis Istomin
>            Priority: Major
>             Fix For: 3.4.0
>
>
> # Create spring boot project via maven archetype
>  # Generate RestController using camel-restdsl-openapi:generate
>  # Send request
> Generated conroller has code:
> {{String path = request.getRequestURI(){color:#cc7832};{color}}}
> {{request.getServletContext().getRequestDispatcher({color:#6a8759}"/camel/" {color}+ path).forward(request{color:#cc7832}, {color}response){color:#cc7832};{color}}}
>  
> when path starts with "/", concatenated string becomes "/camel//path"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)