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

bug: normalize id elements to remove potential wrap characters #748

Merged
merged 12 commits into from
Aug 4, 2020

Conversation

jrconlin
Copy link
Member

Description:

Remove potential "{}" wrapper from bsoids and collection ids. (See original issue for details)

Blocks on #747

Testing:

Test included.

Try sending in a sync request with a bso_id wrapped and URLencoded.

Issues:

Closes #680

Remove potential "{}" wrapper from bsoids and collection ids. (See original issue for details)

Test included.

Try sending in a sync request with a bso_id wrapped and URLencoded.

Closes #680
@AzureMarker
Copy link
Contributor

Do these changes depend on mozilla-rust-sdk? It looks like this branch could be rebased against master and merged before the other PR.

@jrconlin
Copy link
Member Author

This is probably just an aspect of my local build. Right now, I can't build or test this PR without #747 without doing a good deal of work to fish out the various interdependencies.

src/error.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
@jrconlin
Copy link
Member Author

So, reworked things to urldecode the bso_ids.

Granted, now part of me is wondering if we should filter on those to prevent potential exploits by including high values.

src/web/extractors.rs Outdated Show resolved Hide resolved
src/web/extractors.rs Outdated Show resolved Hide resolved
@jrconlin jrconlin merged commit 71ab9b3 into master Aug 4, 2020
@jrconlin jrconlin deleted the bug/680.1 branch August 4, 2020 21:48
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.

unquote params extracted from paths
3 participants