Package: lightning
Version: 1:52.9.1-1~deb9u1
Severity: important

Dear Maintainer,

with the current stable thunderbird/lightning, it is impossible for me to 
modify events in any CalDAV calendar. Adding and deleting items works just fine.

How to reproduce: With thunderbird 52.9.1 (64-bit) and lightning 5.4.9.1, try 
to modify an existing event in any CalDAV calendar. Any modification triggers 
this error (label, time, attendee, description, ...).

The URL of the CalDAV account must follow a certain pattern, however, for this 
error to happen:
Everything works just fine for calendars like this: 
https://calendar.example.com/calendar/caldav.php/username/calendar
But not for calendars like this: https://calendar.example.com/username/calendar
Sounds weird, but I did confirm this serveral times with several different 
calendars.

What is expected: The item should be modified on the server and the 
modification should be displayed in lightning.

What actually happens: The modification is ignored. There is no error or info 
message; all changes are simply "reverted". (Note: This does also apply to 
dismissing reminders.)

Explanation:
The obvious reason for this issue is a malformed http request sent by lightning 
when events are modified (additions and deletions work just fine). In the 
Thunderbird Error Console, I can see the following:
> PUT 
> https://calendar.example.com/username/calendar/.php/username/calendar/778d0468-e6c3-456e-8bcc-ec92adffc15f.ics
>  [HTTP/1.1 405 Method Not Allowed 1904ms]

The correct URL should be: 
https://calendar.example.com/username/calendar/778d0468-e6c3-456e-8bcc-ec92adffc15f.ics

This behavior is 100% reproducible and happens to all my accounts (following 
the abovementioned calendar URL pattern). With the wrong URL, there is no way 
the modification can suceed, of course. It would be nice to see an informative 
error message here, but the main issu


Background:
There is a long-standing bug in lightning (upstream) that also affected me 
years ago:
[Updating an event results in a PUT to the wrong CalDav URL] 
https://bugzilla.mozilla.org/show_bug.cgi?id=605201

This issue is certainly related somehow, but it is not the same, since the 
abovementioned bug affects the function addTargetCalendarItem in 
calDavCalendar.js, but this function is not used for modifying events in my 
case. Instead, this is the call stack, as far as I can see:
> authSuccess file:///usr/lib/lightning/components/calDavCalendar.js:381:13
> calDavCalendar.prototype.sendHttpRequest 
> file:///usr/lib/lightning/components/calDavCalendar.js:398:13
> calDavCalendar.prototype.doModifyItem 
> file:///usr/lib/lightning/components/calDavCalendar.js:842:9
> calDavCalendar.prototype.modifyItem 
> file:///usr/lib/lightning/components/calDavCalendar.js:740:16
> calCachedCalendar.prototype.modifyItem/flagListener.onOperationComplete 
> file:///usr/lib/lightning/calendar-js/calCachedCalendar.js:719:21
> calStorageCalendar.prototype.getItemOfflineFlag/listener.handleCompletion 
> file:///usr/lib/lightning/components/calStorageCalendar.js:959:21


Please let me know if you need any additional information or want me to test a 
patch or another version of thunderbird/lightning.

Should I also report this bug upstream at bugzilla.mozilla.org ?


Kind regards,
Ferdninad Rau


-- System Information:
Debian Release: 9.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lightning depends on:
ii  thunderbird  1:52.9.1-1~deb9u1

lightning recommends no packages.

Versions of packages lightning suggests:
pn  calendar-google-provider  <none>
ii  fonts-lyx                 2.2.2-1

-- no debconf information

Reply via email to