Error when adding LTI connection: 'component' not available

Bug #1896352 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Lisa Seeto

Bug Description

Mahara master:

When I try to add 'LTI integration' to 'No institution', I get the following error message:

[WAR] 59 (webservice/admin/oauthv1sregister.php:772) Trying to get property 'component' of non-object
Call stack (most recent first):

    log_message("Trying to get property 'component' of non-object", 8, true, true, "/home/kristina/code/mahara/htdocs/webservice/admin...", 772) at /home/kristina/code/mahara/htdocs/lib/errors.php:521
    error(8, "Trying to get property 'component' of non-object", "/home/kristina/code/mahara/htdocs/webservice/admin...", 772, array(size 2)) at /home/kristina/code/mahara/htdocs/webservice/admin/oauthv1sregister.php:772
    get_module_from_serverid("2") at /home/kristina/code/mahara/htdocs/webservice/admin/oauthv1sregister.php:92
    webservices_add_application_submit(object(Pieform), array(size 6)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:568
    Pieform->__construct(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:168
    Pieform::process(array(size 8)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:5506
    pieform(array(size 8)) at /home/kristina/code/mahara/htdocs/webservice/admin/oauthv1sregister.php:642
    webservice_server_list_form(array(size 3), array(size 1)) at /home/kristina/code/mahara/htdocs/webservice/admin/oauthv1sregister.php:68

------------

It is not a problem when trying to add 'LTI integration' to an institution.

It is also not a problem when adding 'LTI integration' to 'No institution' when an institution exists.

To replicate:

1. Make sure you do not have any institutions on the site and only 'No institution'.
2. Go to Admin menu -> Web services -> External apps.
3. Create an 'LTI integration' connection for 'No institution'.
Expected result: The connection is created.
Actual result: The connection is created but with the error message above.

To test once fixed:

a) The above scenario
b) The scenario but with an institution
c) The scenario but with 'No institution' when an institution is available

Changed in mahara:
assignee: nobody → Lisa Seeto (lisaseeto)
Lisa Seeto (lisaseeto)
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11295

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

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

commit 9f83c8796a3e413ae600bf0881673faa74236dd0
Author: Lisa Seeto <email address hidden>
Date: Mon Sep 21 20:49:00 2020 +1200

Bug 1896352: Error when adding LTI connection: 'component' not available

Add check to see if consumer is true

behatnotneeded

Change-Id: I1dae492acb1c47c68e0a10428f742092776b588f
Signed-off-by: Lisa Seeto <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.