Gridstack layout conversion error during new user creation
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mahara | ||||||
19.10 |
Invalid
|
High
|
Unassigned | |||
20.04 |
Invalid
|
High
|
Unassigned |
Bug Description
Mahara: 19.10.1 (2019093009)
OS: Linux 18.04
DB: Postgres
Browser: FF
If an institution has pages to be copied to users upon creation and those pages are of the old format, an error is generated when trying to copy the page to the new user:
Jan 10 14:12:34 prod: 2020/01/10 14:12:34 [error] 227
#227: *389810 FastCGI sent in stderr: "PHP message: [WAR] 3e (lib/gridstackl
#012PHP message: Call stack (most recent first):
#012PHP message: * log_message(
#012PHP message: * error(integer, string(size 22), string(size 37), integer, array(size 9)) at /var/www/
#012PHP message: * translate_
#012PHP message: * View->copy_
#012PHP message: * View::create_
#012PHP message: * Collection:
#012PHP message: * User->copy_
#012PHP message: * User->copy_
#012PHP message: * Institution-
#012PHP message: * create_
#012PHP message: * adduser_
#012PHP message: * Pieform-
#012PHP message: * Pieform:
#012PHP message: * pieform(array(size 8)) at /var/www/
#012PHP message:
#012PHP message: [WAR] 3e (lib/gridstackl
#012PHP message: Call stack (most recent first):
#012PHP message: * log_message(
The issue is:
(lib/gridstackl
summary: |
- Gridstack Layout Converstion Error During New User Creation + Gridstack layout conversion error during new user creation |
no longer affects: | mahara |
To replicate:
1. In a previous version of Mahara (18.10), create an institution named Inst1
2. Create an institution page to be copied for a user in Inst1.
3. Create the page with 3 rows and 3 columns.
4. Populate the page with artifacts in all rows and columns except for 1 column (i.e. the row 2 column 2 for example leave empty).
5. Upgrade Mahara to 19.10
6. Create a new user in the institution Inst1.
What happens:
- The above error will be generated
What should happen:
- The new user is created with the relevant Inst1 pages copied to their portfolio.