Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove whitespace values from content providers #108

Closed
rfc2822 opened this issue Aug 15, 2023 · 0 comments · Fixed by #109
Closed

Remove whitespace values from content providers #108

rfc2822 opened this issue Aug 15, 2023 · 0 comments · Fixed by #109
Assignees

Comments

@rfc2822
Copy link
Member

rfc2822 commented Aug 15, 2023

Actual problem: event.RDATE is sometimes filled with whitespace like \n when an .ics is directly imported with a calendar app. For instance, Zoom seems to sometimes generate such RDATEs.

Then DAVx⁵ uploads the event with an empty RDATE line like:

RDATE;TZID=Europe/Paris:

and servers reject that with 415.

So I suggest to:

  • extend MiscUtils.removeEmptyStrings so that it removes not only empty, but also blank (= only white-space, including newline) values + test
  • apply MiscUtils.removeEmptyStrings to populateTask() like it's done for populateEvent() ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants