Skip to content

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

Merged
jeffwidman merged 2 commits intodependabot:mainfrom
tomcain:patch-1
May 24, 2022
Merged

URL decode Nuget API v2 "next" link when paging version results#5174
jeffwidman merged 2 commits intodependabot:mainfrom
tomcain:patch-1

Conversation

@tomcain
Copy link
Copy Markdown
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
Copy Markdown
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