mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #63332
[Bug 1945537] [NEW] Problem with saving webservice log message event when float is in another language
Public bug reported:
So for example we try to save number as 1,2345 instead of 1.2345
We probably need to cast it via flotval somehow
Error looks like this
PHP Fatal error: Uncaught SQLException: Failed to get a recordset: postgres8 error: [-1: ERROR: invalid input syntax for type numeric: "0,12291693687439"] in EXECUTE("INSERT INTO "external_services_logs" ("id", "timelogged", "userid", "externalserviceid", "protocol", "auth", "functionname", "timetaken", "uri", "info", "ip") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")Command was: INSERT INTO "external_services_logs" ("id", "timelogged", "userid", "externalserviceid", "protocol", "auth", "functionname", "timetaken", "uri", "info", "ip") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and values was (id:109,timelogged:1632941361,userid:23,externalserviceid:3,protocol:REST,auth:OTHER,functionname:module_mobileapi_upload_blog_post,timetaken:0,12291693687439,uri:/webservice/rest/server.php?alt=json,info:exception:SQLExceptionmessage:Failedtogetarecordset:postgres8error:[-1:ERROR:invalidinputsyntaxfortypenumeric:"0,11438679695129"]inEXECUTE("INSERTINTO"external_services_logs"("id","timelogged","userid","externalserviceid","protocol","auth"
The problem looks to be related to:
The variable "time_taken" in file:
htdocs/webservice/lib.php
$time_taken = $time_end - $WEBSERVICE_START;
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1945537
Title:
Problem with saving webservice log message event when float is in
another language
Status in Mahara:
New
Bug description:
So for example we try to save number as 1,2345 instead of 1.2345
We probably need to cast it via flotval somehow
Error looks like this
PHP Fatal error: Uncaught SQLException: Failed to get a recordset: postgres8 error: [-1: ERROR: invalid input syntax for type numeric: "0,12291693687439"] in EXECUTE("INSERT INTO "external_services_logs" ("id", "timelogged", "userid", "externalserviceid", "protocol", "auth", "functionname", "timetaken", "uri", "info", "ip") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)")Command was: INSERT INTO "external_services_logs" ("id", "timelogged", "userid", "externalserviceid", "protocol", "auth", "functionname", "timetaken", "uri", "info", "ip") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and values was (id:109,timelogged:1632941361,userid:23,externalserviceid:3,protocol:REST,auth:OTHER,functionname:module_mobileapi_upload_blog_post,timetaken:0,12291693687439,uri:/webservice/rest/server.php?alt=json,info:exception:SQLExceptionmessage:Failedtogetarecordset:postgres8error:[-1:ERROR:invalidinputsyntaxfortypenumeric:"0,11438679695129"]inEXECUTE("INSERTINTO"external_services_logs"("id","timelogged","userid","externalserviceid","protocol","auth"
The problem looks to be related to:
The variable "time_taken" in file:
htdocs/webservice/lib.php
$time_taken = $time_end - $WEBSERVICE_START;
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1945537/+subscriptions
Follow ups
-
[Bug 1945537] Re: Problem with saving web service log message event when float is in another language
From: Robert Lyon, 2023-04-30
-
[Bug 1945537] A change has been merged
From: Mahara Bot, 2023-02-27
-
[Bug 1945537] Re: Problem with saving web service log message event when float is in another language
From: Robert Lyon, 2023-02-27
-
[Bug 1945537] Re: Problem with saving web service log message event when float is in another language
From: Gold, 2023-02-01
-
[Bug 1945537] Re: Problem with saving web service log message event when float is in another language
From: Kristina Hoeppner, 2022-10-13
-
[Bug 1945537] Re: Problem with saving web service log message event when float is in another language
From: Kristina Hoeppner, 2022-04-21
-
[Bug 1945537] Re: Problem with saving web service log message event when float is in another language
From: Doris Tam, 2022-03-28
-
[Bug 1945537] A patch has been submitted for review
From: Mahara Bot, 2022-03-07
-
[Bug 1945537] Re: Problem with saving web service log message event when float is in another language
From: Nikolas Libert, 2021-12-25
-
[Bug 1945537] Re: Problem with saving webservice log message event when float is in another language
From: Kristina Hoeppner, 2021-10-18
-
[Bug 1945537] Re: Problem with saving webservice log message event when float is in another language
From: Kristina Hoeppner, 2021-10-05