-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
raw file API broken after updating from 1.22.6 to 1.23.0 #33164
Comments
Maybe related to #32413, will take a look (strange, there are tests covering this case ....) OK, I see the problem: |
-> Fix raw file API ref handling #33172 (the old tests are not complete and there are some buggy edge cases ....) |
Fix go-gitea#33164 and add more tests
Backport #33172 by wxiaoguang Fix #33164 and add more tests Co-authored-by: wxiaoguang <[email protected]>
1.23 nightly (will be 1.23.1 soon) is ready, it also contains some other fixes to have. |
Thank you very much for the fast Bugfix! We wait, till the new Minor Release 1.23.1 will be released 👍 we have no urge to use the nighlty build. |
Description
We updated from Gitea 1.22.6 to 1.23.0. When we try to get a raw file from the repository with ref Parameter , we are getting a 404 response.
You can reproduce it on demo site with following commands.
doesnt work:
works:
?ref=main had to be removed, and is instead added as part of the filepath path parameter
the swagger page still lists the ref parameter, which seems to have been replaced by the ref within the filepath parameter
https://demo.gitea.com/api/swagger#/repository/repoGetRawFile
Gitea Version
1.23.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
docker
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: