Check during installation / upgrade that root user exists

Bug #1636286 reported by Kristina Hoeppner on 2016-10-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Sometimes, the root user (user with id 0) is deleted from the database by users. That can cause a bunch of issues as the user is needed by Mahara, e.g. see bug #1632717.

Robert suggested to implement a check during installation / upgrade to look for that user and print a warning with steps to get it back if it's not present.

Robert Lyon (robertl-9) on 2016-10-24
Changed in mahara:
status: Confirmed → In Progress

Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 031b9dcf4654ac4344f422ad375c4d9c06ca17c3
Author: Robert Lyon <email address hidden>
Date: Tue Oct 25 09:44:26 2016 +1300

Bug 1636286: Testing if root user exists in upgrade sanity

The root user needs to exists for Mahara to function correctly

It is used (at least) to hold some default layout options


Change-Id: I8a25a2d60a0f2be55b4abb6d86c470d0f7f08786
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9) on 2017-02-08
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9) on 2017-04-27
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers