Describe the bug
Picklist Enabler predeployment step fails when a picklist with a percentage value is provided
It fails with the message "Unable to process pre deploy for Picklist Enabler due to Unable to process Picklist update due to URI malformed"
To Reproduce
Steps to reproduce the behavior:
Provide a picklist to deploy with a value like "20%"
Run sfp release
At the "Executing Pre Deployer Picklist Enabler" step, an error/warning message will appear "Unable to process pre deploy for Picklist Enabler due to Unable to process Picklist update due to URI malformed
Pre Deployer Picklist Enabler skipped due to error"
Expected behavior
Deployment of picklist values with percentages goes through
Screenshots
Error:
Example of the value set:
Platform Details (please complete the following information):
@scc/sfp/38.5.5 win32-x64 node-v20.10.0
Additional context
Upon further inspection, it seems like this is the root cause: src/core/package/deploymentCustomizers/PicklistEnabler.ts:183
The "%" in "20%" gets treated as an escape char in decodeURI()
Describe the bug Picklist Enabler predeployment step fails when a picklist with a percentage value is provided It fails with the message "Unable to process pre deploy for Picklist Enabler due to Unable to process Picklist update due to URI malformed"
To Reproduce Steps to reproduce the behavior:
sfp release
Expected behavior Deployment of picklist values with percentages goes through
Screenshots Error:
Example of the value set:
Platform Details (please complete the following information): @scc/sfp/38.5.5 win32-x64 node-v20.10.0
Additional context Upon further inspection, it seems like this is the root cause: src/core/package/deploymentCustomizers/PicklistEnabler.ts:183 The "%" in "20%" gets treated as an escape char in decodeURI()