webdav: Return other status codes than 500 #3065

Merged
konrad merged 2 commits from das_j/vikunja:main into main 2025-02-06 12:38:29 +00:00
Contributor

This allows WebDav clients to behave properly. In particular, DavX5 will
error out on syncing the collections list rather than removing deleted
projects from its local cache, as reported in
https://community.vikunja.io/t/deleting-a-project-breaks-caldav/3315/3

This allows WebDav clients to behave properly. In particular, DavX5 will error out on syncing the collections list rather than removing deleted projects from its local cache, as reported in https://community.vikunja.io/t/deleting-a-project-breaks-caldav/3315/3
das_j added 1 commit 2025-02-05 08:18:26 +00:00
webdav: Return other status codes than 500
Some checks failed
continuous-integration/drone/pr Build is failing
397a89fff8
This allows WebDav clients to behave properly. In particular, DavX5 will
error out on syncing the collections list rather than removing deleted
projects from its local cache, as reported in
https://community.vikunja.io/t/deleting-a-project-breaks-caldav/3315/3
konrad reviewed 2025-02-05 08:31:20 +00:00
@ -70,3 +74,3 @@
storage.task, err = caldav2.ParseTaskFromVTODO(vtodo)
if err != nil {
return echo.ErrInternalServerError.SetInternal(err)
return models.ErrInvalidData{Message: "Invalid task"}
Owner

Can you log the error?

Can you log the error?
das_j marked this conversation as resolved
das_j force-pushed main from 397a89fff8 to 12fa2e4651 2025-02-05 08:33:52 +00:00 Compare
konrad added 1 commit 2025-02-06 07:56:05 +00:00
Merge branch 'main' into main
All checks were successful
continuous-integration/drone/pr Build is passing
2831d06590
konrad approved these changes 2025-02-06 07:56:30 +00:00
konrad left a comment
Owner

Thanks! Merging when the CI passes.

Thanks! Merging when the CI passes.
konrad scheduled this pull request to auto merge when all checks succeed 2025-02-06 07:57:51 +00:00
Member

Hi das_j!

Thank you for creating a PR!

I've deployed the frontend changes of this PR on a preview environment under this URL: https://3065-main--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/.

This preview does not contain any changes made to the api, only the frontend.

Have a nice day!

Beep boop, I'm a bot.

Hi das_j! Thank you for creating a PR! I've deployed the frontend changes of this PR on a preview environment under this URL: https://3065-main--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/. This preview does not contain any changes made to the api, only the frontend. Have a nice day! > Beep boop, I'm a bot.
konrad merged commit 989a40ad42 into main 2025-02-06 12:38:29 +00:00
Sign in to join this conversation.
No Reviewers
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vikunja/vikunja#3065
No description provided.