Spelling mistake in xmlrpc config form

Bug #1703676 reported by Robert Lyon
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon
17.04
Fix Released
High
Unassigned
17.10
Fix Released
High
Robert Lyon

Bug Description

A forum user reported:

"I experience an annoying failure with the XML-RPC authentication plugin:

[10-Jul-2017 17:08:09 Europe/Berlin] [WAR] cc (auth/xmlrpc/lib.php:952) Undefined index: active"

This is due to a spelling mistake in the field name - it is 'actve' instead of 'active'

Robert Lyon (robertl-9)
Changed in mahara:
status: New → 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/7869

Revision history for this message
Dominique-Alain JAN (dajan) wrote :
Revision history for this message
H. Lekin (hael) wrote :

This reproducible error occurs, after 'Parent authority' or 'We import content' in the XML-RPC configuration has been changed. Then, the plugin state switches from 'Active' Yes to No and the plugin can not be re-activated again.

The provided patch has not been tested yet.

It should be mention, that Mahara runs on PHP 7.1 here.

The missing lines:

[10-Jul-2017 17:08:09 Europe/Berlin] [WAR] cc (auth/xmlrpc/lib.php:952) Undefined index: active
[10-Jul-2017 17:08:09 Europe/Berlin] Call stack (most recent first):
[10-Jul-2017 17:08:09 Europe/Berlin] * log_message(string(size 23), integer, true, true, string(size 45), integer) at /usr/share/webapps/mahara/lib/errors.php:521
[10-Jul-2017 17:08:09 Europe/Berlin] * error(integer, string(size 23), string(size 45), integer, array(size 5)) at /usr/share/webapps/mahara/auth/xmlrpc/lib.php:952
[10-Jul-2017 17:08:09 Europe/Berlin] * PluginAuthXmlrpc::save_instance_config_options(array(size 23), object(Pieform)) at /usr/share/webapps/mahara/lib/mahara.php:1771
[10-Jul-2017 17:08:09 Europe/Berlin] * call_static_method(string(size 16), string(size 28), array(size 22), object(Pieform)) at /usr/share/webapps/mahara/admin/users/addauthority.php:110
[10-Jul-2017 17:08:09 Europe/Berlin] * auth_config_submit(object(Pieform), array(size 22)) at /usr/share/webapps/mahara/lib/pieforms/pieform.php:543
[10-Jul-2017 17:08:09 Europe/Berlin] * Pieform->__construct(array(size 5)) at /usr/share/webapps/mahara/lib/pieforms/pieform.php:164
[10-Jul-2017 17:08:09 Europe/Berlin] * Pieform::process(array(size 5)) at /usr/share/webapps/mahara/lib/mahara.php:4838
[10-Jul-2017 17:08:09 Europe/Berlin] * pieform(array(size 5)) at /usr/share/webapps/mahara/admin/users/addauthority.php:81

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

Reviewed: https://reviews.mahara.org/7869
Committed: https://git.mahara.org/mahara/mahara/commit/4e1fd1c7800db73a2a8c140ac83f883eb9a34269
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 4e1fd1c7800db73a2a8c140ac83f883eb9a34269
Author: Robert Lyon <email address hidden>
Date: Wed Jul 12 08:31:35 2017 +1200

Bug 1703676: Spelling mistake on 'active' field name

behatnotneeded

Change-Id: Id744f905a407772ff762589e8f1e99fbb96e9cf2
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "17.04_STABLE" branch: https://reviews.mahara.org/7894

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

Reviewed: https://reviews.mahara.org/7894
Committed: https://git.mahara.org/mahara/mahara/commit/db52cfd059a4a6fa5522dd100afd7a2dfb5b9f6f
Submitter: Robert Lyon (<email address hidden>)
Branch: 17.04_STABLE

commit db52cfd059a4a6fa5522dd100afd7a2dfb5b9f6f
Author: Robert Lyon <email address hidden>
Date: Wed Jul 12 08:31:35 2017 +1200

Bug 1703676: Spelling mistake on 'active' field name

behatnotneeded

Change-Id: Id744f905a407772ff762589e8f1e99fbb96e9cf2
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 4e1fd1c7800db73a2a8c140ac83f883eb9a34269)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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