Delete account when user has locked page blocks not working

Bug #1817783 reported by Steven on 2019-02-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
High
Unassigned
18.10
High
Unassigned
19.04
High
Unassigned
19.10
High
Rebecca Blundell

Bug Description

TITLE: Delete account when user has locked page blocks not working

BUG SUMMARY: When a user has blocks locked on a portfolio page, an admin cannot delete an account - they will get a site unavailable error
==============================================

Environment tested: Master & 18.10.0
Browser tested: Chrome

PRECONDITIONS:
------------------------
1) A regular user exists
2) regular user has a portfolio page with the following settings
a) Lock blocks = Yes (found under the advanced tab when creating a page)
3) regular user has blocks on the portfolio page

TEST STEPS:
------------------------
1) Log in as Site admin
2) delete the account of a regular user with the preconditions mentioned above

Expected result: The account is deleted

Actual result: an error message is displayed as follows:
       "Mahara: Site unavailable - A nonrecoverable error occurred. This probably means you have encountered a bug in the system"

Changed in mahara:
status: New → Confirmed
importance: Undecided → High
Steven (stevens-q) wrote :

TITLE: Delete account when user has locked page blocks not working

BUG SUMMARY: When a user has blocks locked on a portfolio page, an admin cannot delete an account - they will get a site unavailable error

==============================================

Commit hash: d73d68fce0750e791c5e83ad8402122e2f8cd584
Environment tested: 18.10.0
Browser tested: Chrome
Theme used: Raw

PRECONDITIONS:
------------------------
1) A regular user exists
2) regular user has a portfolio page with the following settings
a) Lock blocks = Yes (found under the advanced tab when creating a page)
3) regular user has blocks on the portfolio page

TEST STEPS:
------------------------
1) Log in as Site admin
2) delete the account of a regular user with the preconditions mentioned above

Expected result: The account is deleted

Actual result: As expected - The account is deleted

Catalyst QA Approved ✔

Reviewed: https://reviews.mahara.org/9850
Committed: https://git.mahara.org/mahara/mahara/commit/d73d68fce0750e791c5e83ad8402122e2f8cd584
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit d73d68fce0750e791c5e83ad8402122e2f8cd584
Author: Rebecca Blundell <email address hidden>
Date: Wed Apr 24 17:16:10 2019 +1200

Bug 1817783: Lockblocks prevent a user from being deleted

Add code to remove lockblocks from a page
so that the page can successfully be deleted by the site admin
or the page owner.

behatnotneeded

Change-Id: I247bac245d3f9447c701b8db48dad9be15c15070

Mahara Bot (dev-mahara) wrote :

Patch for "18.10_STABLE" branch: https://reviews.mahara.org/9963

Reviewed: https://reviews.mahara.org/9962
Committed: https://git.mahara.org/mahara/mahara/commit/a449bca8b24516c26f228ee189451cf505a8d689
Submitter: Robert Lyon (<email address hidden>)
Branch: 19.04_STABLE

commit a449bca8b24516c26f228ee189451cf505a8d689
Author: Rebecca Blundell <email address hidden>
Date: Wed Apr 24 17:16:10 2019 +1200

Bug 1817783: Lockblocks prevent a user from being deleted

Add code to remove lockblocks from a page
so that the page can successfully be deleted by the site admin
or the page owner.

behatnotneeded

Change-Id: I247bac245d3f9447c701b8db48dad9be15c15070
(cherry picked from commit d73d68fce0750e791c5e83ad8402122e2f8cd584)

Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/9963
Committed: https://git.mahara.org/mahara/mahara/commit/0f765fc4faf2920cf1f41ea9dd7b5ae0438a92ff
Submitter: Robert Lyon (<email address hidden>)
Branch: 18.10_STABLE

commit 0f765fc4faf2920cf1f41ea9dd7b5ae0438a92ff
Author: Rebecca Blundell <email address hidden>
Date: Wed Apr 24 17:16:10 2019 +1200

Bug 1817783: Lockblocks prevent a user from being deleted

Add code to remove lockblocks from a page
so that the page can successfully be deleted by the site admin
or the page owner.

behatnotneeded

Change-Id: I247bac245d3f9447c701b8db48dad9be15c15070
(cherry picked from commit d73d68fce0750e791c5e83ad8402122e2f8cd584)

Steven (stevens-q) wrote :

Commit hash: d73d68fce0750e791c5e83ad8402122e2f8cd584
ENVIRONMENT TESTED: : 18.10.0 & Master
Browser tested: Chrome
Theme used: Raw

PRECONDITIONS:
------------------------
1) A regular user exists
2) regular user has a portfolio page with the following settings
a) Lock blocks = Yes (found under the advanced tab when creating a page)
3) regular user has blocks on the portfolio page

TEST STEPS:
------------------------
1) Log in as Site admin
2) delete the account of a regular user with the preconditions mentioned above

Expected result: The account is deleted

Actual result: As expected - The account is deleted

Catalyst QA Approved ✔ TESTED ON BOTH 18.01 and Master

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers