mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #54678
[Bug 1826940] A change has been merged
Reviewed: https://reviews.mahara.org/10165
Committed: https://git.mahara.org/mahara/mahara/commit/9f004185b193559986919cdc1664ee8ebb1f31e3
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch: 19.04_STABLE
commit 9f004185b193559986919cdc1664ee8ebb1f31e3
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date: Tue Apr 30 09:48:12 2019 +1200
Bug 1826940: Allow saving to external services log a valid auth value
@TODO: Find out why it's trying to save the wstoken authentication token rather
than the value 'TOKEN'
behatnotneeded
Change-Id: Iecad50d41ef439b195ebf4ecd22e486092e4593e
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
(cherry picked from commit 31fbdf0b99896508ddab8b5e35821c31f056402b)
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1826940
Title:
Problem saving info to external_services_logs table
Status in Mahara:
Fix Committed
Status in Mahara 19.04 series:
Fix Committed
Status in Mahara 19.10 series:
Fix Committed
Bug description:
The 'auth' column is only 10 chars (as it expects one of OTHER, OAUTH,
TOKEN, TOKEN_USER, USER) and fails when it tries to save the wstoken
value string instead:
[DBG] bb (webservice/lib.php:1512) executing: mahara_user_external/update_users
[WAR] bb (lib/errors.php:858) Failed to get a recordset: postgres8 error: [-1: ERROR: value too long for type character varying(10)] in EXECUTE("INSERT INTO "external_services_logs" ("id", "timelogged", "userid", "externalserviceid", "institution", "protocol", "auth", "functionname", "timetaken", "uri", "info", "ip") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")Command was: INSERT INTO "external_services_logs" ("id", "timelogged", "userid", "externalserviceid", "institution", "protocol", "auth", "functionname", "timetaken", "uri", "info", "ip") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and values was (id:16877,timelogged:1556571027,userid:8,externalserviceid:3,institution:wdhb,protocol:REST,auth:1234a2fcc061b24432191a1295958600,functionname:mahara_user_update_users,timetaken:0.26598191261292,uri:/webservice/rest/server.php?wstoken=1234a2fcc061b24432191a1295958600,info:exception:WebserviceInvalidParameterExceptionmessage:Invalidparametervaluedetected;executioncannotcontinue.:update_users|in...
Call stack (most recent first):
* insert_record(string(size 22), object(stdClass), string(size 2), true) at /XXXX/webservice/lib.php:1441
* webservice_base_server->exception_handler(object(WebserviceInvalidParameterException)) at Unknown:
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1826940/+subscriptions
References