postmanlabs / postmanlabs/postman-code-generators

Wrong Test Case output in Objective-C

Open
#438 3 comments 1 reaction 2 assignees View on GitHub

@ShauryaAg is already working on this.

Since Jan 4, 2021.

codegen
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
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.