dmfs / opentasks

A task app for Android
Apache License 2.0
939 stars 248 forks source link

Task description line feeds get destroyed when added with firefox or webinterface in windows. #227

Closed quantumtechnology closed 8 years ago

quantumtechnology commented 8 years ago

If task descriptions are added by firefox or webinterface under windows, then the line feeds are getting replaced by "\N" such that the folling: abcdef gijklm nopq

gets replaced by abcdef\Ngijklm\Nnopq

I guess this is an issue with the different line feeds in windows and linux environment.

dmfs commented 8 years ago

It would be interesting to see the original iCalendar data. Can you get that from your server? In any case this doesn't look like an OpenTasks issue.

I suspect that the sync app doesn't recognize \N as valid new line sequence. According to RFC 5545, section 3.3.11 it actually is a valid new line escape sequence (just like \n). I've just checked CalDAV-Sync and I'm pretty sure we handle this correctly.

Another option would be that either the web UI or the server apply some invalid double escaping (i.e. \\N instead of \N), but I can't tell without having seen the original data.

quantumtechnology commented 8 years ago

I realized that it is an issue of the Caldav provider. On other systems this does not occur.