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-decoding bug from previous commit #1517

Merged
merged 5 commits into from
Sep 26, 2024

Conversation

joka921
Copy link
Member

@joka921 joka921 commented Sep 26, 2024

For URL-decoding, now use (the well documented) boost::urls::parse_origin_form instead of the (internal and poorly documented) boost::urls::parse_query because the latter turned out to not unescape + to space.

TODO for a separate PR: When the URL path is malformed, currently a Boost-internal error message is returned, like leftover [boost.url.grammar:4]. Instead an exception should be thrown and caught and a proper error message displayed.

Signed-off-by: Johannes Kalmbach <[email protected]>
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.08%. Comparing base (4c203e2) to head (4118da0).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1517      +/-   ##
==========================================
- Coverage   92.55%   88.08%   -4.48%     
==========================================
  Files         355      355              
  Lines       26631    26636       +5     
  Branches     3575     3576       +1     
==========================================
- Hits        24649    23463    -1186     
- Misses       1940     1947       +7     
- Partials       42     1226    +1184     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Johannes Kalmbach <[email protected]>
Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@hannahbast hannahbast changed the title Fix a recently introduced bug in the URL parser Fix URL-decoding bug from previous commit Sep 26, 2024
Signed-off-by: Johannes Kalmbach <[email protected]>
Copy link

@hannahbast hannahbast merged commit 785896b into ad-freiburg:master Sep 26, 2024
19 of 20 checks passed
@joka921 joka921 deleted the fix-url-parsing branch December 18, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants