postmanlabs / postmanlabs/postman-code-generators
Wrong Test Case output in Objective-C
@ShauryaAg is already working on this.
Since Jan 4, 2021.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 381
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Objective-C unit test case Resolve URL (Quotes + Special Characters) Copy has output wherein it parse %26 as %2526. %26 is clearly a URL encoded & symbol, and hence it should be left as it is.
To Reproduce
Steps to reproduce the behavior:
Run npm test objective-c
Expected code snippet and corresponding request
%26 is a URL encoded & symbol, and hence it should be left as it is.
Screenshots

Additional context
%26 and %2526 are two different URLs. %25 should only be used if the URL contains a % sign, not when its parsing an already URL encoded string.
Version of postman-code-generators/Postman app:
Issue present in the commit: 31dc9f64295ec47b56c2912901eb39e5bdf067db
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.