Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Rest connection does not allow multiple same values

SA-23188

Summary



A REST request with the same parameter but multiple values must be sent.

Error Messages



Not Applicable

Steps to Reproduce



Create a REST connection, and attempt any one of the approaches given below.
  • Approach 1: Define multiple parameters of same name. Only the last one gets assembled in the URL.
  • Approach 2: Try and pass comma separated values on single parameter. The comma gets converted.
 
  • Approach 3: Try and add value for parameter plus additional name or value pairs using & or =. The & and = gets converted.


Root Cause



A defect in Pegasystems’ code or rules.
In Pega 7.1.9, pyInvokeRestConnector calls pxDereferenceEndpoint activity to get raw URL, which is then copied into mainURLBuilder local variable for processing. This is the root cause for the issue Approach 1. The current process results in adding only the last parameter.

In Approaches 2 and 3, the activity pxDeferenceEndpoint passes strings to StringUtil.cleanURL, which causes the unwanted character conversions.

Resolution



Apply HFix-27549.

Published May 16, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us