Warning when running interactive test client facility for web services

Bug #1585029 reported by Son Nguyen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Son Nguyen

Bug Description

Version master (16.10)

I got the following warning when test web service function.

[WAR] 70 (webservice/testclient.php:131) Undefined offset: 0
Call stack (most recent first):
log_message("Undefined offset: 0", 8, true, true, "/var/www/html/mahara/master/htdocs/webservice/test...", 131) at /var/www/html/mahara/master/htdocs/lib/errors.php:489
error(8, "Undefined offset: 0", "/var/www/html/mahara/master/htdocs/webservice/test...", 131, array(size 87)) at /var/www/html/mahara/master/htdocs/webservice/testclient.php:131

This is a regression caused by the patch
https://reviews.mahara.org/#/c/5682/

Tags: regression
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/6531

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

Reviewed: https://reviews.mahara.org/6531
Committed: https://git.mahara.org/mahara/mahara/commit/710108cfe82177e8b1433c4a5ed33df8aefdbfea
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 710108cfe82177e8b1433c4a5ed33df8aefdbfea
Author: Son Nguyen <email address hidden>
Date: Tue May 24 15:37:34 2016 +1200

Bug 1585029: Validate the array 'vars' before access it

behatnotneeded

Change-Id: Ib94c7a4ffffd1281c9bcc9b158ac38ab4d3b71ff

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
importance: Undecided → Low
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.