-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
403 Forbidden Error when updating labels via REST API #32775
Comments
It seems that your token does not have write permission to this repo's issue or pull request unit. |
Hi @yp05327 My token indeed has write permissions to both issue and repository, which is the same as what I've tried with demo.gitea.com and gitea.com, and cloudron |
Does the user who created this token has write permission? |
You're right - the user isn't added as a collaborator with write access to the repository. Solved. Thanks! |
No need to close this issue, we will fix the internal server error, and it will be closed automatically. |
…on (go-gitea#32776) Fix go-gitea#32775 if permission denined, `prepareForReplaceOrAdd` will return nothing, and this case is not handled.
Description
As per title, I'm getting a 403 Forbidden Error when updating labels for issues via REST API. Tried with both the issue id and name. Seems to only happen to my instance (all repositories) running version 1.22.4 in Docker, as I've tested on the demo site (v1.23.0) and cloudron (1.22.4) without any issues.
Gitea Version
1.22.4
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/m4l0n/eb982cd419bd05cf4924e0e886672774
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Docker installation
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: