MNet user creation failing with timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned |
Bug Description
Mahara version 22.04, Linux, Mysql
The bug resolution in the following commit don't include cases where user is passed to the function create_user() as an instanceof User.
https:/
This is the case with an MNet authentication from moodle.
In this case the function is called from file auth/xmlrpc/lib.php and the object user is created beforehand.
The institution membership notification is fired and the user creation finish after the timeout which is way too long to be seen as a success by the user.
To correct this, you only need to change a line :
--- a/htdocs/
+++ b/htdocs/
@@ -2702,8 +2702,8 @@ function create_user($user, $profile=array(), $institution=null, $remoteauth=nul
}
$user->id = insert_
- $user->newuser = true;
}
+ $user->newuser = true;
if (isset(
Thanks in advance for the correction
Changed in mahara: | |
milestone: | none → 22.10.1 |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in mahara: | |
status: | Confirmed → In Progress |
Changed in mahara: | |
milestone: | 22.10.1 → 22.10.0 |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "main" branch: https:/ /reviews. mahara. org/c/mahara/ +/13234