mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #57971
[Bug 1871249] [NEW] Shared access with users produces a warning in 19.10 when search results count = 0
Public bug reported:
The code currently in 19.10 to share access with 'Users' will produce a
warning when the search count is 0, i.e a site that has no current
users. It's possible there are other ways to return a User search count
of 0 but this is the most reliable for testing purposes.
The warning message is:
[WAR] c4 (view/access.json.php:60) Invalid argument supplied for foreach()
To reproduce:
1. On a fresh install of Mahara 19.10 codebase with no users, create a page.
2. Navigate to "Share" and select to edit share access for the new page
3. Select "User" from dropdown box and scroll on the drop down to select a User (it will say No results found)
4. Refresh the page
Expected results:
Page displays no warnings
Actual results:
Page displays with a warning message
This is happening in 19.10 (possibly a fix needs to be applied to
earlier versions of the code). This issue didn't affect code after
19.10.
** Affects: mahara
Importance: High
Assignee: Lisa Seeto (lisaseeto)
Status: In Progress
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1871249
Title:
Shared access with users produces a warning in 19.10 when search
results count = 0
Status in Mahara:
In Progress
Bug description:
The code currently in 19.10 to share access with 'Users' will produce
a warning when the search count is 0, i.e a site that has no current
users. It's possible there are other ways to return a User search
count of 0 but this is the most reliable for testing purposes.
The warning message is:
[WAR] c4 (view/access.json.php:60) Invalid argument supplied for foreach()
To reproduce:
1. On a fresh install of Mahara 19.10 codebase with no users, create a page.
2. Navigate to "Share" and select to edit share access for the new page
3. Select "User" from dropdown box and scroll on the drop down to select a User (it will say No results found)
4. Refresh the page
Expected results:
Page displays no warnings
Actual results:
Page displays with a warning message
This is happening in 19.10 (possibly a fix needs to be applied to
earlier versions of the code). This issue didn't affect code after
19.10.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1871249/+subscriptions
Follow ups
-
[Bug 1871249] Re: Shared access with users produces a warning in 19.10 when search results count = 0
From: Doris Tam, 2023-07-11
-
[Bug 1871249] Re: Shared access with users produces a warning in 19.10 when search results count = 0
From: Lisa Seeto, 2020-04-29
-
[Bug 1871249] Re: Shared access with users produces a warning in 19.10 when search results count = 0
From: Robert Lyon, 2020-04-29
-
[Bug 1871249] A change has been merged
From: Mahara Bot, 2020-04-16
-
[Bug 1871249] A patch has been submitted for review
From: Mahara Bot, 2020-04-16
-
[Bug 1871249] A change has been merged
From: Mahara Bot, 2020-04-16
-
[Bug 1871249] Re: Shared access with users produces a warning in 19.10 when search results count = 0
From: Robert Lyon, 2020-04-16
-
[Bug 1871249] Re: Shared access with users produces a warning in 19.10 when search results count = 0
From: Lisa Seeto, 2020-04-08
-
[Bug 1871249] Re: Shared access with users produces a warning in 19.10 when search results count = 0
From: Robert Lyon, 2020-04-08
-
[Bug 1871249] A patch has been submitted for review
From: Mahara Bot, 2020-04-07