Support Article
prpcServiceUtils fails with URLDecode value in target URL
SA-46453
Summary
The import of a Rule Admin Product archive to a specific tenant fails.
Error Messages
java.lang.IllegalArgumentException: Illegal character in path at index 86:
http://your_node:your_port/prweb/PRRestService/beEBp4uRVTogorRwSwWqbHICjV804hg0kOPTuGWSs3M[*/SystemManagement/v1/pzImport
------------------------------------------------------------------------------------------^original column 86
Steps to Reproduce
- Replace the %5B with the URLDecode value of [ in prpcServiceUtils.
- Attempt to import a Rule-Admin-Product (RAP).
Root Cause
A defect or configuration issue in the operating environment The URL format is invalid.
The tenant hash as provided by Pega 7.x is appropriately encoded for use. In this case manipulating the hash resulted in the decoding of %5b to the [ character that it represents.
Square brackets are reserved characters as of RFC986 and cannot appear unencoded in a URL.
Resolution
Perform the following local-change:
URLEncode the [ as %5B before generating it into the prpcServiceUtils.properties file.
If not using automation, then don't change the encoding of the tenant hash.
Published February 9, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.