-
Sub-task
-
Resolution: Fixed
-
Blocker
-
2.4
-
MOODLE_24_STABLE
-
MOODLE_24_STABLE
-
MDL-36525-master -
When trying to import a calendar using a URL to an ICS file (not a script that generates an iCal data), the import process throws an error.
- Log in to Moodle as a student
- Go to Navigation > Site pages > Calendar.
- Click the button 'Manage subscriptions'.
- Try importing a calendar with the URL http://tinyurl.com/at55c97
Expected result: The file should be used as the basis of a calendar
Actual result: An error is shown, but the calendar entry is still created.
The given iCal URL is invalid.
|
|
More information about this error
|
Debug info:
|
Error code: errorinvalidicalurl
|
Stack trace:
|
|
line 2873 of /calendar/lib.php: moodle_exception thrown
|
line 2950 of /calendar/lib.php: call to calendar_get_icalendar()
|
line 78 of /calendar/managesubscriptions.php: call to calendar_update_subscription_events()
|
I suspect this has something to do with the call to $curl->get() failing at line 2871 of calendar/lib.php. This might be because the URL of the calendar above forces the user to download the file, rather than giving the content as a response. Trying the following URL works. Using the URLs directly in your browser highlights this distinction.
http://www.mozilla.org/projects/calendar/caldata/AustraliaHolidays.ics
- blocks
-
MDLQA-5207 CLONE - A user can import a calendar via URL
- Passed
- will be (partly) resolved by
-
MDL-36592 Ical import should consider all line endings while importing
-
- Closed
-