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

[Feature] Provide utils for double encoding for IDs #155

Open
johnboxall opened this issue May 30, 2024 · 0 comments
Open

[Feature] Provide utils for double encoding for IDs #155

johnboxall opened this issue May 30, 2024 · 0 comments
Labels
ack Acknowledged

Comments

@johnboxall
Copy link
Contributor

https://developer.salesforce.com/docs/commerce/commerce-api/guide/url-encode.html

With W-15746231 we solve the encoding problems of special SCAPI characters such as comma ',' percent '%' and ';' semicolon. The problems occurred, in case those values are part of a resource identifier.

The documentation page https://developer.salesforce.com/docs/commerce/commerce-api/guide/url-encode.html describes how to deal with those special characters.

Please Note: We do NOT recommend double-encoding anymore!

We assume the client has full control about the encoding of URL and query string.

The goal of this TD is to provide some sort of generic SDK util class/function to:

  • url-encode identifiers before placing them in some sort of SCAPI URL template or concat a URL from scratch (url-encode comma "," '%' ';' and so on
  • ensure that multi-id query params like "ids" use a plain text (non-url-encoded) comma ',' as separator

https://gus.lightning.force.com/lightning/r/ADM_Team_Dependency__c/a0nEE000000WU1NYAW/view

@joeluong-sfcc joeluong-sfcc added the ack Acknowledged label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Acknowledged
Projects
None yet
Development

No branches or pull requests

2 participants