Skip to content
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

Deleting Oauth application via api with nonexistent id causes internal server error #15356

Closed
2 of 6 tasks
matusf opened this issue Apr 8, 2021 · 0 comments · Fixed by #15384
Closed
2 of 6 tasks

Deleting Oauth application via api with nonexistent id causes internal server error #15356

matusf opened this issue Apr 8, 2021 · 0 comments · Fixed by #15384
Labels
modifies/api This PR adds API routes or modifies them type/bug
Milestone

Comments

@matusf
Copy link

matusf commented Apr 8, 2021

  • Gitea version (or commit ref): Gitea version 1.13.7 built with GNU Make 4.1, go1.15.11 : bindata, sqlite, sqlite_unlock_notify
  • Git version: git version 2.17.
  • Operating system: Ubuntu 18.04
  • Downloaded gitea from downloads page
  • Running as a command-line program
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:
Completed DELETE /api/v1/user/applications/oauth2/x 500 Internal Server Error in 35.488257ms

Description

Make a DELETE request on /user/applications/oauth2/{id} endpoint with supplied authorization token and invalid id in path. Then 500 response is returned with following response body:

curl -X DELETE 'http://localhost:2999/api/v1/user/applications/oauth2/x' -H "Authorization: token $TOKEN"
{"message":"","url":"http://localhost:3000/api/swagger"}

The url in the body has a different port too.

@lunny lunny added the type/bug label Apr 10, 2021
@lunny lunny added this to the 1.13.8 milestone Apr 10, 2021
@6543 6543 added the modifies/api This PR adds API routes or modifies them label Apr 10, 2021
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants