-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Search requests need to correctly encode offset for date values #2056
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Comments
@kceiw this sounds like we should be either encoding here octokit.net/Octokit/Models/Request/SearchRepositoriesRequest.cs Lines 164 to 167 in e9409e0
Or more likely inside octokit.net/Octokit/Models/Request/SearchRepositoriesRequest.cs Lines 294 to 300 in fd6bca9
Marking this one as Up for Grabs because I think once we confirm the encoding change this is an easy fix to verify. |
shiftkey
changed the title
Http request doesn't escape all the characters
Search requests need to correctly encode offset for date values
Jan 19, 2020
2 tasks
nickfloyd
added
Type: Bug
Something isn't working as documented
Status: Up for grabs
Issues that are ready to be worked on by anyone
and removed
category: bug
labels
Oct 26, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Test version 0.36.0
The repro snippet
That is becoming to a http request using this url (from Fiddler)
https://api.github.com/search/repositories?page=1&per_page=100&order=desc&q=pushed:2012-11-20T16:00:00+08:00..2012-12-20T16:00:00+08:00
Note that "+" isn't escaped in this case and it only finds zero repositories.
Escaping "+" to "%2B" in a browser gets me total_count 98777
https://api.github.com/search/repositories?page=1&per_page=100&order=desc&q=pushed:2012-11-20T16:00:00%2B08:00..2012-12-20T16:00:00%2B08:00
I attach a .NET core project to demonstrate it.
OctokitRepro.zip
The text was updated successfully, but these errors were encountered: