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

Fix dollar not correctly handled on URI #2862

Merged
merged 4 commits into from
Jun 11, 2021
Merged

Fix dollar not correctly handled on URI #2862

merged 4 commits into from
Jun 11, 2021

Conversation

MrSnix
Copy link
Contributor

@MrSnix MrSnix commented Nov 23, 2020

Added dollar sign on URL_PATH_CHARACTER_WHITELIST.
I don't know if there is a better place but seems working as expected.

On query parameters dollars it's still escaped as it should be.

Before
Schermata 2020-11-23 alle 22 52 58

After
Schermata 2020-11-23 alle 22 52 00

It closes #2850

@MrSnix MrSnix changed the title Initial commit Fix dollar not correctly handled on URI Nov 23, 2020
@CLAassistant
Copy link

CLAassistant commented Dec 3, 2020

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Dec 3, 2020

Deploy preview for insomnia-storybook ready!

Built with commit 7caf1a1

https://deploy-preview-2862--insomnia-storybook.netlify.app

@dimitropoulos
Copy link
Contributor

@reynolek do you know if this will be a breaking change? For example, perhaps there are current use-cases that depend on the $ being encoded. I feel like it's probably fine to do what this PR implements, but I'm not sure.

Screenshot_20210405_160039

@reynolek
Copy link
Contributor

reynolek commented Apr 5, 2021

I am honestly not sure. I feel like we probably should be encoding all special characters and in the event that they are expected to be non-encoded feels like a bug that it still worked.

@MrSnix
Copy link
Contributor Author

MrSnix commented Jun 8, 2021

Small news:
I resolved the conflicts and updated the Typescript support.
Just in case it gets merged.

Copy link
Contributor

@dimitropoulos dimitropoulos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I don't have the right context, but this seems like a legit bug when I read through the original issue (#2850).

@develohpanda please also take a look

@reynolek can you say more about what you mean by "special characters" in the context we're talking about. It seems like these characters should be allowed through from my reading of things.

@reynolek
Copy link
Contributor

reynolek commented Jun 8, 2021

Yeah looks like $ should be allowed through. I am good with the change as it stems from an RFC, and contains test cases for query params as well as paths, decreasing the chances of breaking it in the future 👍

@MrSnix
Copy link
Contributor Author

MrSnix commented Jun 8, 2021

Hello everyone, I want only to say that I did some research some time ago and it turned out that usually:

  • Dollar is expected to be encoded if it is a query parameter
  • Dollar is not expected to be encoded if it is a path sub delimiter

image
Source: RFC3986 - Reserved Characters

Anyway, I'm not an expert so everyone is welcome to tell me I'm wrong.

@develohpanda develohpanda merged commit b0919ef into Kong:develop Jun 11, 2021
@MrSnix MrSnix deleted the bug/url-dollar-escaped branch June 11, 2021 13:22
@night-fury-web
Copy link

When will it be released?

@reynolek
Copy link
Contributor

@SandGuardian It will come out with our next release. It is currently unscheduled due to a larger body of work that is happening atm, which requires us to do quite a bit of cherry picking and history re-writing to accomplish a release without the new feature (as the new feature isnt ready for release).

I wish I could be more specific, but hopefully not too long, we have a lot of great OSS contributions to release, including this one.

develohpanda added a commit that referenced this pull request Jun 22, 2021
Co-authored-by: Dimitri Mitropoulos <[email protected]>
Co-authored-by: Opender Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

URLs with a $ are not properly handled
6 participants