-
-
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
Enabling branch protection rules disables api requests without authorization token #10738
Comments
Could you please check your error log? There should be some error entries ( |
Will try to find the logs too. Checked this PR and it (#9031) looks related: |
Is this enough?
|
Could you please provide the exact Gitea version this log comes from, so I can match with the sources? 1.13.8 is the version of Go used to build Gitea, not Gitea's version. I can tell that the code around those lines is the culprit, but Note: I've tried with your link to |
I've updated the version, and think I added you as admin for: https://try.gitea.io/mattiasbpersson/test |
[x]
):Description
When enabling "Branch Protection for Branch" you are no longer able to request the api for:
https://try.gitea.io/api/v1/repos/mattiasbpersson/test/branches
Example code run in script console in Jenkins:
If branch protection is disabled master branch is returned. If it is enabled you get:
java.io.IOException: Server returned HTTP response code: 500 for URL: https://try.gitea.io/api/v1/repos/mattiasbpersson/test/branches
...
The text was updated successfully, but these errors were encountered: