HTTP 500 Error on WebDAV Endpoint /projects/ #1608
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#1608
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
Good day, I am using my browser (Chrome, Firefox, both in normal and private modes) to request the WebDAV endpoints to download the .ics files. This is a troubleshooting step I was doing because I thought the issue was with the integration in another solution I am working on. I am only looking at getting a basic list of projects without anything else.
I can download the file using the
/dav/projects/1/
endpoint. The tasks display in the integration as well. The/dav/projects/
gives a HTTP 500 Error. I can reproduce the same behavior on try as well.Using my mobile and accessing for the first time my instance, I logged on using the right credentials. I could read and edit my projects. Then I modified the URL in the address bar and I got prompt for my credentials again, but this time in a browser pop up dialog. Using the same credentials I got another HTTP 500 Error.
I tried to modify the header using curl as discussed in #753 but the brackets are added in the logs even when not sent as part of the header.
It seems that the authentication is not consistent from one WebDAV endpoint to another.
vikunja-frontend:0.21.0
vikunja-api:0.21.0
Cheers!
Vikunja Frontend Version
0.21.0
Vikunja API Version
0.21.0
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
No response
What should it do on
/projects/
? It fails because there's no project ID in the url so this is kind of expected.Thank you for the reply. It is my understanding as per the docs that
/projects/
is a valid WebDAV endpoint where the list of projects is returned, similarly to/projects/[ID]
returns the tasks of a given project ID.The docs may be wrong or GET is not the correct http method to access it. IIRC the correct approach to get a list with all is using the
/dav/principals/<username>
endpoint.I might be doing something wrong here, but the ics file from
/dav/principals/<username>
downloads, but it is empty. I tried it on try.vikunja.io/dav/principals/demo and it is empty as well.That's kind of by design. To get a list of all projects, you need to do a
PROPFIND
request specifying what you want to get back, not just aGET
request (which is what you're doing in the browser.You can try it with curl:
and it will give you a list with all projects back: