-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.7
-
MOODLE_311_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-74866-master -
-
1
-
Team Hedgehog 4.1 sprint 0.1, Team Hedgehog 4.1 sprint 0.2
Steps to replicate
- Login as admin.
- Open the user profile menu.
- Click on Calendar.
- Click on the Import or export calendars link.
- Click on the Import calendar button.
- Set the Calendar name to: Test ICS.
- Set the Import from to: Calendar file.
- Select the Timetable-Lecture.ics file.
- Press the Import calendar button.
- Open the user profile menu.
- Click on Calendar.
- Navigate to May 2022.
- Click on the 27th of May 2022 to view that day's detail.
- Verify that you will see 2 events: Concurrency and Introduction to Formal Proof.
- Observe the description of both events.
Expected result:
- Description of Concurrency event is: Concurrency, A lecturer http://some.alternative.representation/
- Description of Introduction to Formal Proof event is: Introduction to Formal Proof, A lecturer http://some.alternative.representation/
Actual result:
- The Concurrency event does not have a description.
If an iCalendar .ics has a DESCRIPTION property and that has an ALTREP parameter, the description may not import and is not shown in the calendar/view.php
https://datatracker.ietf.org/doc/html/rfc5545#section-3.2.1
e.g. this imports:
DESCRIPTION:Introduction to Formal Proof\, A lecturer
this does not:
DESCRIPTION;ALTREP="http://some.alternative.representation/":Concurrency\, A lecturer
Looking at the regex in https://gitit.nmu.edu/clewis/moodle/-/blob/v2.8.0/lib/bennu/iCalendar_components.php#L246 and putting that into https://regex101.com/
it parses.
The expected behaviour is that both descriptions show.