Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CXF RS and query parameters #1423

Open
pierpaolo1 opened this issue Sep 19, 2024 · 0 comments
Open

CXF RS and query parameters #1423

pierpaolo1 opened this issue Sep 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pierpaolo1
Copy link

Describe the bug

The CXF-RS component does not route the query parameters correctly.

Steps to reproduce the behavior

  1. Create a simple CXF-RS that routes messages to an external endpoint
    immagine
  2. In "Address" field fill with an external address: http://123.123.123.123:1234
  3. If the route is called with a query parameter, example: http://127.0.0.1:8080/param1/param2?param3=value
    endpoint receives /param1/param2%3Fparam3=value , so the question mark is url encoded

A workaround is ToD, deleting CamelHttpPath and chaining CamelHttpUri like this:
cxfrs://http://123.123.123.123:1234/${in.header.CamelHttpUri}
but in this way I must manage manually "404 not found" with Try-Catch.

Is url encoding an expected behavior?

Variant

Vs Code Extension

Container Management (if applicable)

None

Operating System (if applicable)

Linux

Version

4.7.0

Relevant log output

No response

@pierpaolo1 pierpaolo1 added the bug Something isn't working label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant