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

[jira] [Updated] (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 ]

Denis Istomin updated CAMEL-15058:
----------------------------------
    Description: 
# 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"

  was:
# Create spring boot project via maven archetype
 # Generate RestController using camel-restdsl-openapi:generate
 # Send request


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