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 path encoding #70

Merged
merged 3 commits into from
May 19, 2020
Merged

Fix URL path encoding #70

merged 3 commits into from
May 19, 2020

Conversation

nkoenig
Copy link
Contributor

@nkoenig nkoenig commented May 12, 2020

The "Drag Me" feature on Fuel is broken for models with spaces in the name. The root problem is that we are encoding URLs that were already encoded.

This change first decodes a URL, replacing "%XX" characters with their ASCII equivalent. This allows encoding to proceed correctly.

We are preventing resources from containing percent signs in:

  1. https://gitlab.com/ignitionrobotics/web/fuelserver/-/merge_requests/15
  2. https://gitlab.com/ignitionrobotics/web/app/-/merge_requests/17

Signed-off-by: Nate Koenig [email protected]

Signed-off-by: Nate Koenig <[email protected]>
@github-actions github-actions bot added the 📜 blueprint Ignition Blueprint label May 12, 2020
@codecov
Copy link

codecov bot commented May 12, 2020

Codecov Report

Merging #70 into ign-fuel-tools3 will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           ign-fuel-tools3      #70      +/-   ##
===================================================
+ Coverage            85.21%   85.22%   +0.01%     
===================================================
  Files                   16       16              
  Lines                 2015     2017       +2     
===================================================
+ Hits                  1717     1719       +2     
  Misses                 298      298              
Impacted Files Coverage Δ
src/RestClient.cc 64.91% <100.00%> (+0.62%) ⬆️

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 c616ee2...aacd0dd. Read the comment docs.

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Nice, works for me! I'm assuming you'll trigger a release as soon as this is merged?

Changelog.md Outdated Show resolved Hide resolved
Changelog.md Outdated Show resolved Hide resolved
nkoenig and others added 2 commits May 18, 2020 17:12
Co-authored-by: Louise Poubel <[email protected]>
Co-authored-by: Louise Poubel <[email protected]>
@nkoenig nkoenig merged commit 9359dde into ign-fuel-tools3 May 19, 2020
@nkoenig nkoenig deleted the fix_url_encoding branch May 19, 2020 00:31
This was referenced May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📜 blueprint Ignition Blueprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants