-
-
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
Update failed if the website
field is carried, when requesting /user/settings
interface.
#30518
Comments
Website should be |
@lunny I hava tryied, but got the same error, even with https://www.xxx.com: |
I cannot reproduce this and I create a test PR in #30539. Maybe you can upgrade to 1.21.11 and try again? |
@lunny I upgraded to 1.21.11 and tried again, but it's still the same error. |
Please input |
@lunny Like this? Seems to be the same result: |
Can you get the information about this request/response from Gitea's log? |
@lunny The log only like this:
|
It is a bug of Main branch doesn't have such bug because its dependency has been upgraded. On 1.21 branch, run |
Fixed by #30742 |
Description
The request is:
curl -X 'PATCH' \ 'https://172.16.161.221:8080/api/v1/user/settings' \ -H 'accept: application/json' \ -H 'authorization: Basic cm9vdDp6ZHd3QDIwMjQ=' \ -H 'Content-Type: application/json' \ -d '{ "description": "", "location": "", "language": "zh-CN", "theme": "auto", "full_name": "root", "diff_view_style": "", "hide_email": true, "hide_activity": false, "website": "gitea.com" }'
The result is:
Is the parameter value wrong or Is it a bug?
Gitea Version
1.21.7
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
None
The text was updated successfully, but these errors were encountered: