Requests to /api/v1 may return html #2110
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#2110
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Up to release 0.23.0 calling
GET /api/v1/tasks/999999
resulted in a 404 response with a body like{"code":4002,"message":"This task does not exist"}
When performing the same call to the recent 0.23.0 version it returns 200 OK with an HTML content. This happens even when setting the HTTP Header
Accept=application/json
.This breaks expectations of CLI tools like vja or curl based scripts. There seems to be a global 404 handling which might be too global?
Vikunja Version
0.23.0
Browser and version
cli
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
No response
Should be fixed in
641fec1215
- please check with the next unstable build (ready in ~45min) or on try.