How to control parameters encoding on a HTTP URL when using CXFRS

Solution Verified - Updated -

Issue

  • User is setting a value on paremeter org.apache.cxf.message.Message.QUERY_STRING, but some characters of it are being encoded when invoking CXFRS client. For example:
org.apache.cxf.message.Message.QUERY_STRING="name=XX+,+XXXX++%7B%7D++%3C%3E+%5E+%25+%5B%5D+()+XX"` // Notice '(' and ')' are not encoded.
  • When user invokes CXFRS client, the values get encoded:
on log:

---------------------------
ID: 1
Address: https://server:port/context?name=XX+,+XXXX++%7B%7D++%3C%3E+%5E+%25+%5B%5D+%28%29+XX
Http-Method: POST
Content-Type: application/json 
....

Environment

  • Fuse 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content