Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

qtorganizer-eds: Description field is altered #2157

@spyphi

Description

@spyphi
  • Device: krillin, frieza (16.04) & yggdrasil (20.04)
  • Channel: stable
  • Build: OTA-25 (16.04) OTA-2 (20.04)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions