** Also affects: mahara/19.04 Importance: Undecided Status: New ** Also affects: mahara/19.10 Importance: Medium Assignee: Robert Lyon (robertl-9) Status: In Progress
** Changed in: mahara/19.10 Milestone: 19.04.1 => 19.10.0 ** Changed in: mahara/19.04 Milestone: None => 19.04.1 ** Changed in: mahara/19.04 Importance: Undecided => Medium ** Changed in: mahara/19.10 Status: In Progress => Fix Committed ** Changed in: mahara/19.04 Status: New => Fix Committed -- 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 _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp