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 SearchIssue id can be bigger than Integer.MAX #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vootelerotov
Copy link
Contributor

Represent it as Long instead of Integer.

For schema (where id is specified as 'int64') see:

https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28#search-issues-and-pull-requests

@vootelerotov
Copy link
Contributor Author

Ran into this in the wild.

@vootelerotov
Copy link
Contributor Author

Hmm, build is failing with Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65 -- not sure if this is related to my change-set?

@vootelerotov
Copy link
Contributor Author

It seems that a lot of PR-s now have ID-s that are bigger than Integer.MAX, quite easy to run into this in wild now.

@weidongxu-microsoft
Copy link

weidongxu-microsoft commented Jun 25, 2024

Comment ID could have the same integer overflow. e.g.
https://api.github.com/repos/Azure/azure-sdk-for-java/issues/comments/2188169837

It maybe safer to convert all ID of int type to long type.

@neeme-praks-sympower
Copy link

Also ran into this.

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.

3 participants