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

URL decode Nuget API v2 "next" link when paging version results #5174

Merged
merged 2 commits into from
May 24, 2022

Conversation

tomcain
Copy link
Contributor

@tomcain tomcain commented May 20, 2022

Fixes #5166

Some Nuget repositories, such as JFrog's Artifactory, URL encode the "next" href link in the paged results. If the href is not URL decoded, the paging parameters are ignored and the first page is always returned. This change URL decodes the href before fetching the next page of version results.

Some Nuget repositories, such as JFrog's Artifactory, URL encode the "next" href link in the paged results. If the href is not URL decoded, the paging parameters are ignored and the first page is always returned. This change URL decodes the href before fetching the next page of version results.
@tomcain tomcain requested a review from a team as a code owner May 20, 2022 15:10
Copy link
Member

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

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

Thanks @tomcain!

This looks reasonable to me but I joined the team recently and still coming up to speed on Ruby so will get second pair of eyes from someone else on the team just to ensure I'm not missing something.

In the meantime, can you fix the CI failure here?
https://github.com/dependabot/dependabot-core/runs/6559358299?check_suite_focus=true

Ignore the other npm/yarn failure, it's unrelated.

@jeffwidman jeffwidman merged commit 357cbc8 into dependabot:main May 24, 2022
@mctofu mctofu mentioned this pull request May 31, 2022
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.

Nuget API v2 paging URL encoded links
3 participants