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

Only decode url encoded slashes in db/branch name after splitting path into parts #7352

Merged
merged 1 commit into from
May 21, 2024

Conversation

jaclarke
Copy link
Member

If the branch/db name contains / characters, they need to be url encoded in the url path for the http apis's. Currently the encoded slashes are decoded before the path is split into parts, so only the first part of the name before the first / is used as the branch name, and the rest just breaks further routing.

Since the branch name is the only part of the path that is user defined and can contain / characters, do the url decoding only on the branch part of the path after splitting.

Related issue: edgedb/edgedb-ui#352

Copy link
Contributor

@scotttrinh scotttrinh left a comment

Choose a reason for hiding this comment

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

Makes sense!

@jaclarke jaclarke merged commit 6ff43f8 into master May 21, 2024
23 checks passed
@jaclarke jaclarke deleted the fix-http-branch-handling branch May 21, 2024 15:44
vpetrovykh pushed a commit that referenced this pull request May 21, 2024
vpetrovykh pushed a commit that referenced this pull request May 22, 2024
vpetrovykh pushed a commit that referenced this pull request May 22, 2024
vpetrovykh pushed a commit that referenced this pull request May 22, 2024
vpetrovykh pushed a commit that referenced this pull request May 22, 2024
@vpetrovykh vpetrovykh added backported-5.x PRs that *have* been backported to 5.x (starting with 5.3) and removed to-backport-5.x labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported-5.x PRs that *have* been backported to 5.x (starting with 5.3)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants