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

Wrong formatting of ~ during APIcall with Cypress #19170

Closed
trondag opened this issue Dec 1, 2021 · 2 comments
Closed

Wrong formatting of ~ during APIcall with Cypress #19170

trondag opened this issue Dec 1, 2021 · 2 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@trondag
Copy link

trondag commented Dec 1, 2021

Current behavior

It looks like the first ~ (tilde) is formatted into %5Cx7e. It should not change it into anything. The next tilde is not touched, which is correct.

I just tested with 8.7.0 and 9.1.0, and this bug is present in 9.1.0

Desired behavior

Not convert the first tilde to this %5Cx7e

Test code to reproduce

cy.request({
    url: 'randomwebpage.com',
    method: "POST",
    body: {
        test: "~~~",
    },
})

Cypress Version

9.1.0

Other

The test code outputs Body: {"test":"\x7e~~"}, should output Body: {"test":"~~~"}

@janhesters
Copy link

We have the same, our Cypress tests are failing after the upgrade because of authentication schemes that are no longer working. (Our cookie serialization has a version number ~2.)

@chrisbreiding
Copy link
Contributor

Duplicate of #19115

@chrisbreiding chrisbreiding marked this as a duplicate of #19115 Dec 2, 2021
@chrisbreiding chrisbreiding added the type: duplicate This issue or pull request already exists label Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants