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 URL parsing w/ trailing slash & querystring #1538

Merged
merged 2 commits into from Dec 6, 2019

Conversation

scottinet
Copy link
Contributor

Description

Fix a bug where an URL containing both a trailing slash and a querystring would be incorrectly parsed.

How to reproduce

The following HTTP GET request works fine:

http://localhost:7512/_now?pretty

But not this one without this PR:

http://localhost:7512/_now/?pretty

Both requests are equivalent and should be regarded as identical.

@codecov
Copy link

codecov bot commented Dec 2, 2019

Codecov Report

Merging #1538 into 1-dev will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##            1-dev    #1538   +/-   ##
=======================================
  Coverage   94.37%   94.37%           
=======================================
  Files         106      106           
  Lines        7378     7378           
=======================================
  Hits         6963     6963           
  Misses        415      415
Impacted Files Coverage Δ
lib/api/core/httpRouter/routePart.js 100% <100%> (ø) ⬆️
lib/api/core/httpRouter/index.js 98.71% <100%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ceb67f...3472275. Read the comment docs.

@Aschen Aschen merged commit dcccbfc into 1-dev Dec 6, 2019
@Aschen Aschen deleted the fix-trailing-slash-in-url branch December 6, 2019 15:17
@Aschen Aschen mentioned this pull request Jun 5, 2020
Aschen added a commit that referenced this pull request Jun 8, 2020
# [1.11.1](https://github.com/kuzzleio/kuzzle/releases/tag/1.11.1) (2020-06-05)


#### Bug fixes

- [ [#1638](#1638) ] Allows external user sdk impersonation   ([Aschen](https://github.com/Aschen))
- [ [#1538](#1538) ] Fix URL parsing w/ trailing slash & querystring   ([scottinet](https://github.com/scottinet))
- [ [#1529](#1529) ] Fix shutdown process   ([scottinet](https://github.com/scottinet))
---
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.

None yet

3 participants