Missing directories in <sitedata>/sessions makes login fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Cecilia Vela Gurovic | ||
17.10 |
Fix Released
|
High
|
Unassigned | ||
18.04 |
Fix Released
|
High
|
Cecilia Vela Gurovic |
Bug Description
In <sitedata>/sessions there should be directories named 0,1,2,..9,a,b..,f
There should always be all of them present, if they are not there we create them.
When we check the sessions dir, we assume there could be only two possibilities: We have all of them or we have none. That's why we only check for the first one (0).
In the case where some of these directories are missing, but the 0 is present, we will see the following error when we try to login:
"Mahara: Site unavailable
Something in the way you're interacting with Mahara is causing an error.
Details if any, follow:
Logged out user can not be stored in usr_session"
Call stack (most recent first):
log_
error(4096, "session_
session_
Session-
LiveUser-
LiveUser-
login_
Pieform-
pieform_
auth_setup() at /home/ceciliavg
require(
[WAR] 46 (auth/session.
Call stack (most recent first):
log_
log_
Session-
LiveUser-
LiveUser-
login_
Pieform-
pieform_
auth_setup() at /home/ceciliavg
require(
Changed in mahara: | |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
Changed in mahara: | |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Patch for "master" branch: https:/ /reviews. mahara. org/8329