Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DAViCal: General

"Load From File" Bug



DAViCal general RSS feed   Index | Next | Previous | View Threaded

rindfuss at wzb

Oct 10, 2011, 1:11 AM

Post #1 of 1 (396 views)
"Load From File" Bug


I recently tried to import an .ics file using the web interface "Load
From File" option. The import crashed (reproducibly) at some point and
only a completetely empty page was returned. Davical version is

Stepping thru the code I found that the problem occurs at line 338 of
inc/caldav-PUT-functions.php in function do_scheduling_request, which in
turn is called at line 599 in function import_collection.

The code in do_scheduling_request reads

if ( $email == $request->principal->email() ) {

but $request is not set at this point.

The statement is not always executed, only if there are attendees for a
particular import event, so the bug might have gone unnoticed so far. I
replaced it by

if ( isset($request) && ($email == $request->principal->email()) ) {

and now it works for me. But it might be wiser to set $request somewhere.

Cheers, Peter

All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
Davical-general mailing list
Davical-general [at] lists

DAViCal general RSS feed   Index | Next | Previous | View Threaded

Interested in having your list archived? Contact Gossamer Threads
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.