Kozea / Radicale

A simple CalDAV (calendar) and CardDAV (contact) server.
https://radicale.org
GNU General Public License v3.0
3.27k stars 427 forks source link

Writes and serves RFC-non-comformant iCalendar data #714

Open madduck opened 6 years ago

madduck commented 6 years ago

In RFC 5545, "3.1. Content Lines" it's written:

Content lines are delimited by a line break, which is a CRLF sequence (CR character followed by LF character).

However, Radicale writes its files using Unix line endings, and also serves such data:

% GET -C 'user:password' https://caldav.example.org/username/calendar.ics/ | xxd | head -2
00000000: 4245 4749 4e3a 5643 414c 454e 4441 520a  BEGIN:VCALENDAR.
00000010: 5052 4f44 4944 3a2d 2f2f 5261 6469 6361  PRODID:-//Radica

Note the 0x0a without the 0x0d at the end of the first line.

As a consequence, the iCalendar.org validator reports an error when passed the data served by Radicale (0.9-1+deb8u1)

calerror
Tntdruid commented 6 years ago

You are using a very old version

madduck commented 6 years ago

So this is fixed in a later version? I looked but couldn't identify a changeset. Any hints?

Tntdruid commented 6 years ago

Test pass when i upload a .ics file.