-
Bug
-
Resolution: Fixed
-
Major
-
2.4.1
-
MOODLE_24_STABLE
-
MOODLE_25_STABLE
-
wip-mdl-38344
-
I was testing the calendar subscription system using the following URL.
https://www.google.com/calendar/ical/gsummerofcode%40gmail.com/public/basic.ics
When the subscription form was submitted the following error was shown.
Error writing to database
|
|
More information about this error
|
|
Debug info:
|
Error code: dmlwriteexception
|
Stack trace:
|
line 476 of \lib\setuplib.php: moodle_exception thrown
|
line 83 of \calendar\managesubscriptions.php: call to print_error()
|
Replication steps:
- Log in as any user
- Navigate to the calendar (Course > Upcoming events block > Go to calendar..."
- Click Manage subscriptions
- Add a calendar name and the URL above
It may be that the @ in the URL is being filtered at some point, which is preventing the fetching of calendar events. It looks like the subscription is being added but no events are being added for it.
- caused a regression
-
MDL-42768 Course restore failure on calendar events
-
- Closed
-
- Discovered while testing
-
MDL-38883 Fix missing calls to setType in calendar
-
- Closed
-
- has a non-specific relationship to
-
MDL-38838 Backport MDL-38344: Manage subscription throw error, if length of event name is more than 255
-
- Closed
-