Skip to content

Fix: Escape URL before converting to URI; catch Addressable::URI::InvalidURIError #100

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

Merged
merged 2 commits into from
Feb 2, 2021

Conversation

nudded
Copy link
Contributor

@nudded nudded commented Feb 1, 2021

This allows urls with spaces in, as they were previously re-escaped (in v3.5.0)

We now also catch the Addressable::URI::InvalidURIError, as that might be raised while escaping if URI is invalid

Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

@nudded Thank you so much for taking the time to improve Wasabi!

I made minor detail test-related comments, you can react to them, and then we can probably get this merged. If you don't have strong feelings either way, we can merge it and move from there.

❤️

@nudded
Copy link
Contributor Author

nudded commented Feb 1, 2021

@olleolleolle thanks for the quick reply! I've applied your suggestions, I agree with your comments 👍

@coveralls
Copy link

Coverage Status

Coverage decreased (-36.7%) to 61.697% when pulling 2e26c5e on nudded:fix-parser-with-escaped-urls into a62be31 on savonrb:master.

@coveralls
Copy link

coveralls commented Feb 1, 2021

Coverage Status

Coverage increased (+0.03%) to 98.413% when pulling 4e6a4c0 on nudded:fix-parser-with-escaped-urls into a62be31 on savonrb:master.

@nudded nudded force-pushed the fix-parser-with-escaped-urls branch from 2e26c5e to ed5ac2b Compare February 2, 2021 08:27
@nudded
Copy link
Contributor Author

nudded commented Feb 2, 2021

@olleolleolle I rebased and fixed the specs, hopefully, that will allow for a quick release 🤞

Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Thanks for all the care & effort to improve this.

@olleolleolle
Copy link
Contributor

olleolleolle commented Feb 2, 2021

@nudded I came up with one more hurdle! It's a good one - add a CHANGELOG line in this change. (You need to rebase on master first, since I added a section there, for "Unreleased".)

If you don't get around to it, I'll make a change myself later.

@olleolleolle olleolleolle changed the title Escape url before converting to URI Fix: Escape URL before converting to URI; catch Addressable::URI::InvalidURIError Feb 2, 2021
@nudded nudded force-pushed the fix-parser-with-escaped-urls branch from 4e6a4c0 to 7d59f83 Compare February 2, 2021 13:25
This allows urls with spaces in, as they were previously re-escaped (in v3.5.0)
We now also catch the Addressable::URI::InvalidURIError, as that might be raised while escaping if URI is invalid
@nudded nudded force-pushed the fix-parser-with-escaped-urls branch from 7d59f83 to d07b1d3 Compare February 2, 2021 13:26
@nudded
Copy link
Contributor Author

nudded commented Feb 2, 2021

@nudded I came up with one more hurdle! It's a good one - add a CHANGELOG line in this change. (You need to rebase on master first, since I added a section there, for "Unreleased".)

If you don't get around to it, I'll make a change myself later.

Done 🎉

@olleolleolle olleolleolle merged commit 665e78d into savonrb:master Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants