mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #65626
[Bug 1943792] Re: Remote (MNet) collection submissions fail to release
The MNet plugin has been replaced in favour of the webservices one in
Moodle. The fix does not resolve the issue, and the project team focuses
on LTI instead of MNet since Moodle is deprecating that more, and the
PHP XML-RPC plugin will not be included per default any more with PHP 8.
If the fix works locally for you, keep it there. :-)
** No longer affects: mahara/22.04
** No longer affects: mahara/21.10
** No longer affects: mahara/21.04
** No longer affects: mahara/20.10
** Changed in: mahara
Milestone: 21.10.1 => None
** Changed in: mahara
Status: In Progress => Won't Fix
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1943792
Title:
Remote (MNet) collection submissions fail to release
Status in Mahara:
Won't Fix
Bug description:
Mahara 21.04.1
Totara 12.?
Mahara assignment submission 2017101601
Set up MNet Connection from a Moodle/ Totara to Mahara allowing users from Moodle to log in to Mahara
Install Mahara assignment submissions plugin to the Moodle site.
Set up an assignment allowing Mahara submissions
- lock submitted pages after grading
Create a collection as a learner
Log in to Moodle
Submit a Mahara collection to the assignment
Log out
Log in to Moodle as a teacher who does not have an account on Mahara
Grade the submitted assignment and allow a new attempt
Expected
The collection and pages are released and a new attempt is available
Actual
Error is returned: optional_userobj no userid and no logged in user
----
Diagnosis
In /lib/collection.php relase()
$releaseuser = optional_userobj($releaseuser);
$releaseuser does not exist.
Called in xmlrpc/lib.php release_submitted_view()
find_remote_user($teacherusername, $REMOTEWWWROOT)
returns no user.
This was introduced in 87f0664d3bae37184581425a995a6a534dc16c39 Bug
1908837: Setting $releaseuser correctly
Suggested fix
In /lib/collection.php relase()
wrap $releaseuser = optional_userobj($releaseuser); in an if statement
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1943792/+subscriptions
References