Check during installation / upgrade that root user exists

Bug #1636286 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Unassigned

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.

Tags: admin
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/7207

Robert Lyon (robertl-9)
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/7207
Committed: https://git.mahara.org/mahara/mahara/commit/031b9dcf4654ac4344f422ad375c4d9c06ca17c3
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

behatnotneeded

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

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.