Error message when clicking "Cancel" in web services test client

Bug #1545374 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Unassigned

Bug Description

Mahara 15.10+

When you are on the web services test client's last page and see the "wstoken" and you click "Cancel", you get the following error message instead of getting back to the start page for the test client:

Mahara: Invalid Parameter
A required parameter is missing or malformed

The 'wstoken' parameter is not alphanumeric only

Steps to reproduce:

1. Choose a protocol.
2. Choose an auth type.
3. Click the *Next* button.
4. Choose the service group that you want to test.
5. Click the *Next* button.
6. Select the function that you want to include in your test.
7. Click the *Next* button.
8. Instead of "Execute", click "Cancel".

Expected result: Be taken to the beginning of the web services test.
Actual result: Above error message.

Tags: webservices
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/6062

Robert Lyon (robertl-9)
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/6062
Committed: https://git.mahara.org/mahara/mahara/commit/346ccd5a9a87567934859b9eb6f47cfcf74637f4
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 346ccd5a9a87567934859b9eb6f47cfcf74637f4
Author: Robert Lyon <email address hidden>
Date: Mon Feb 15 16:22:01 2016 +1300

Bug 1545374: Form to ignore 'wstoken' value when cancelling

When we click cancel on the form when testing 'token' auth
we don't care if 'wstoken' is set or not so we will ignore trying to
get it via param_alphanum()

Also fixing for wsusername and wspassword when testing 'user' auth

behatnotneeded

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

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