-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
DELETE time tracking fail with 500 error #11313
Labels
Comments
@6543 have we already fixed this in 1.12? |
I'll have a look at it asap |
While looking at the code I noticed this: #11319 |
but didn't looked at the delete jet |
can confirm - I'm on it |
ok this is a simple bug: DeleteTime like to create a CommentTypeDeleteTimeManual but Repo of the trackedtime related issue is not loaded ... pull income |
6543
added a commit
to 6543-forks/gitea
that referenced
this issue
May 9, 2020
guillep2k
pushed a commit
that referenced
this issue
May 9, 2020
* Fix nil exeption: #11313 * fix 500 * activate test 😆 * move logic
guillep2k
pushed a commit
to guillep2k/gitea
that referenced
this issue
May 9, 2020
* Fix nil exeption: go-gitea#11313 * fix 500 * activate test 😆 * move logic
zeripath
pushed a commit
that referenced
this issue
May 9, 2020
ydelafollye
pushed a commit
to ydelafollye/gitea
that referenced
this issue
Jul 31, 2020
* Fix nil exeption: go-gitea#11313 * fix 500 * activate test 😆 * move logic
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[x]
):Description
Hi,
I seems that a DELETE request to https://try.gitea.io/api/v1/repos/camdarley/api-test/issues/1/times/769 leads to a 500 error with this trace:
runtime error: invalid memory address or nil pointer dereference /usr/local/go/src/runtime/panic.go:199 (0x44c4db) /usr/local/go/src/runtime/signal_unix.go:394 (0x44c318) /go/src/code.gitea.io/gitea/models/issue_tracked_time.go:282 (0xee64b0) /go/src/code.gitea.io/gitea/routers/api/v1/repo/issue_tracked_time.go:302 (0x1725f60) ...
GET https://try.gitea.io/api/v1/repos/camdarley/api-test/issues/1/times list a time entry with ID 769, but when I send a DELETE to https://try.gitea.io/api/v1/repos/camdarley/api-test/issues/1/times/769 it fails with above error.
I tested first on my own Gitea instance, which is 1.11.4 with same issue.
Screenshots
The text was updated successfully, but these errors were encountered: