ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.28k stars 110 forks source link

qtorganizer-eds: Description field is altered #2157

Open spyphi opened 11 months ago

spyphi commented 11 months ago

Steps to reproduce

Create a new event in the Calendar app and enter a multiline comment with empty lines in the "Description" field, for example:

Line 1

Line 3
Line 4

Save and reopen the event and the empty line does not appear any more.

Finally if you synchronize the calendar with syncevolution, all the lines are removed except the last one "Line 4".

Expected behavior

The description field should not be altered.

Actual behavior

The description is completely removed except for the last line.

Logfiles and additional information

If I check in the calendar.ics file it actually contains several 'DESCRIPTION' fields and errors for the empty line after the event is saved:

SUMMARY:Test event^M
DESCRIPTION:Line 1^M
X-LIC-ERROR;X-LIC-ERRORTYPE=VALUE-PARSE-ERROR:No value for DESCRIPTION ^M
 property. Removing entire property:^M
DESCRIPTION:Line 3^M
DESCRIPTION:Line 4^M

As per RFC 5545 and RFC 7986 the DESCRIPTION field should be saved as one long string and should only be splitted if it is treated as multilingual

It should then normally be saved as one field only:

SUMMARY:Test event^M
DESCRIPTION:Line 1\n\nLine 3\nLine 4^M
lduboeuf commented 11 months ago

@spyphi Is it possible to file a bug directly in the component itself if you are sure it is there: https://gitlab.com/ubports/development/core/qtorganizer5-eds/-/issues

spyphi commented 11 months ago

@lduboeuf Ok, thanks, I did copy it there: https://gitlab.com/ubports/development/core/qtorganizer5-eds/-/issues/2

lduboeuf commented 11 months ago

now just pray someone will take care of that issue ^ ^