Skip to content

Backwards Compatiblety: API: Make pagination optional on GetUserMirrorRepositories #11808

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

Conversation

6543
Copy link
Member

@6543 6543 commented Jun 8, 2020

as title close #11800

@6543 6543 changed the base branch from master to release/v1.12 June 8, 2020 17:15
@6543 6543 changed the title API: Make pagination optional on GetUserMirrorRepositories Backwards Compatiblety: API: Make pagination optional on GetUserMirrorRepositories Jun 8, 2020
@6543 6543 force-pushed the bugfix_api_opt-pagg_user-repos_11800 branch from 4da2b80 to e6c4a20 Compare June 8, 2020 17:17
@techknowlogick
Copy link
Member

This is insecure, if users want to return all repos, then we should use @CirnoT's other PR and recommend that users who want to be insecure increase that value to size in response.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 8, 2020
@6543
Copy link
Member Author

6543 commented Jun 8, 2020

a user could DOS itself ... yes but it whold happen in v1.11 too

@6543 6543 closed this Jun 8, 2020
@6543 6543 deleted the bugfix_api_opt-pagg_user-repos_11800 branch June 8, 2020 17:35
@6543 6543 restored the bugfix_api_opt-pagg_user-repos_11800 branch June 8, 2020 22:48
@6543 6543 deleted the bugfix_api_opt-pagg_user-repos_11800 branch June 9, 2020 22:27
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [API] make pagination optional for GET /api/user/repos
3 participants