Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
7.1.1, Morpheus
-
5
Description
For every example that uses the Query Service Rest API to run a query, remove the semicolon ; from the end of the query statement, if present.
(Note that this is not necessary if the query is specified as a parameter in the request body using the application/json MIME type with the Content-Type header.)
For example, remove the semicolon from the end of the statement in the following example – between $name and &:
curl -v http://Administrator:password@localhost:8093/query/service -d 'statement=select $name;&$name="k0"'
|
I've attached a list of all locations in the docs-server component containing the text /query/service – see query_service.txt below. This should help you to find which files need to change. Note that there will be other examples that need changing in the cb-swagger component – I'll deal with these in DOC-10363.
In addition, we should probably add an example to error code 1040 in the Error Codes – something like: "For example, when using the Query Service REST API, if you are specifying request parameters as form data, the statement may not contain an unescaped semicolon ;." Rephrase as necessary.
Found by Kamini Jagtiani as part of pytpcc 7.1.1 runs.
"errors": [
|
{"code":1040,"msg":"Error processing request form - cause: unable to parse form"}
|
]
|
After upgrade go.1.18.1 it fails due to
https://github.com/golang/go/issues/25192#issuecomment-789799446
https://go-review.googlesource.com/c/go/+/325697