CalDAV: Received "Description" Text is truncated #66

Closed
opened 2025-11-01 20:45:58 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @mtettke123 on GitHub (Jul 13, 2022).

When receiving descriptions via CalDAV, the text is truncated at 63 chars:

grafik

Funny: When editing in Vikunja, the complete text is transmitted via CalDAV. No truncation here.

Originally created by @mtettke123 on GitHub (Jul 13, 2022). When receiving descriptions via CalDAV, the text is truncated at 63 chars: ![grafik](https://user-images.githubusercontent.com/82048170/178788484-1d3e55cf-f45d-42c2-8ba5-4e1f81146a61.png) Funny: When editing in Vikunja, the complete text is transmitted via CalDAV. No truncation here.
GiteaMirror added the bug label 2025-11-01 20:45:58 -05:00
Author
Owner

@kolaente commented on GitHub (Jul 13, 2022):

Vikunja returns the whole description:

$ curl localhost:3456/dav/lists/10/8db762ef-3aa2-46a8-8915-cdb798e8b25f.ics -u test:test
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
X-PUBLISHED-TTL:PT4H
X-WR-CALNAME:
PRODID:-//Vikunja Todo App//EN
BEGIN:VTODO
UID:8db762ef-3aa2-46a8-8915-cdb798e8b25f
DTSTAMP:20220713T174428
SUMMARY:A task with a very long description
DESCRIPTION:Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
CREATED:20220713T174416
LAST-MODIFIED:20220713T174428
END:VTODO
END:VCALENDAR

image

This seems to be a problem with the CalDAV client you're using.

Funny: When editing in Vikunja, the complete text is transmitted via CalDAV. No truncation here.

The Vikunja frontend does not use CalDAV to update tasks. It uses the API for that.

@kolaente commented on GitHub (Jul 13, 2022): Vikunja returns the whole description: ``` $ curl localhost:3456/dav/lists/10/8db762ef-3aa2-46a8-8915-cdb798e8b25f.ics -u test:test BEGIN:VCALENDAR VERSION:2.0 METHOD:PUBLISH X-PUBLISHED-TTL:PT4H X-WR-CALNAME: PRODID:-//Vikunja Todo App//EN BEGIN:VTODO UID:8db762ef-3aa2-46a8-8915-cdb798e8b25f DTSTAMP:20220713T174428 SUMMARY:A task with a very long description DESCRIPTION:Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. CREATED:20220713T174416 LAST-MODIFIED:20220713T174428 END:VTODO END:VCALENDAR ``` ![image](https://user-images.githubusercontent.com/13721712/178797513-87cb61b5-2071-4ac7-8c4f-bdc2c0e1b830.png) This seems to be a problem with the CalDAV client you're using. > Funny: When editing in Vikunja, the complete text is transmitted via CalDAV. No truncation here. The Vikunja frontend does not use CalDAV to update tasks. It uses the API for that.
Author
Owner

@mtettke123 commented on GitHub (Jul 13, 2022):

Oh, sorry for being unclear. If I read my text again it's really easier to misunderstand than to understand what I meant.
The problem occurs when sending texts via CalDAV to the system. When querying via CalDAV the full text is submitted.
So: app sending data to api: text appears truncated in the frontend. Editing there to a longer text and querying: long text in the app.

Maybe also an app problem, can't tell in the moment.

@mtettke123 commented on GitHub (Jul 13, 2022): Oh, sorry for being unclear. If I read my text again it's really easier to misunderstand than to understand what I meant. The problem occurs when sending texts via CalDAV to the system. When querying via CalDAV the full text is submitted. So: app sending data to api: text appears truncated in the frontend. Editing there to a longer text and querying: long text in the app. Maybe also an app problem, can't tell in the moment.
Author
Owner

@kolaente commented on GitHub (Jul 13, 2022):

Should be fixed in ac92499b7d - please check with the latest unstable build in ~30 min or on try.

@kolaente commented on GitHub (Jul 13, 2022): Should be fixed in https://github.com/go-vikunja/api/commit/ac92499b7db0e8d5b4d01c31f996b5e06c91f3eb - please check with the latest unstable build in ~30 min or on try.
Author
Owner

@mtettke123 commented on GitHub (Jul 13, 2022):

Can confirm it's working now. Thank you so much!

Just a small design point: Do you think it is possible to display line breaks in vikunja frontend as they are in the app? Or are these line breaks not transmitted via CalDAV?

@mtettke123 commented on GitHub (Jul 13, 2022): Can confirm it's working now. Thank you so much! Just a small design point: Do you think it is possible to display line breaks in vikunja frontend as they are in the app? Or are these line breaks not transmitted via CalDAV?
Author
Owner

@kolaente commented on GitHub (Jul 14, 2022):

They are transmitted, just not really rendered in the frontend. Try adding two breaks, that should show up as a new paragraph.

@kolaente commented on GitHub (Jul 14, 2022): They are transmitted, just not really rendered in the frontend. Try adding two breaks, that should show up as a new paragraph.
Author
Owner

@mtettke123 commented on GitHub (Jul 14, 2022):

Works. good workaround. Thank you!

@mtettke123 commented on GitHub (Jul 14, 2022): Works. good workaround. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#66