-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cygnus includes extra quotes when posting to CKAN #1902
Comments
for a event like:
a log obtained is
|
The requests cygnus is making: POST /api/3/action/datastore_upsert HTTP/1.1
|
Reproduced in cygnus 2.3.0 |
Solved by PR #1919 ? Should the issue be closed? |
Still not close this issue due to #1919 (comment) |
After PR #1923 maybe this issue is now closeable. |
We have detected that Cygnus includes a double quote three times when the Context Broker data is of type Text (and therefore has a double quote) and it persists this data in CKAN.
When an attribute is in Context Broker and is of type Text, it is displayed in Context Broker with a double quote. Quad is of type Number, Context Broker shows it without double quote. Example:
kpi_product_1,"KeyPerformanceIndicator","daily","[""quantitative""]","2020-01-03T12:19:53.448Z","2020-05-14T07:07:38.795Z",0,"product statistics","{""name"":""Restaurante X""}","Pasta con tomate y orégano",
When this data is published in CKAN, the Text type attributes are exported (in CSV format) as """XXX"""
For example, the above example would display as:
The result when viewing and downloading the resources in CKAN is an entity like this:
121,2020-06-22T09:14:08,"""/envAirQualityRESPIRA3""","""RESPIRA""","""RESPIRA:RESPIRA_240AC4A3EBF8""",2020-06-22T09:07:44,"[{""type"": ""DateTime"", ""name"": ""dateCreated"", ""value"": ""2019-11-16T00:10:13.00Z""}, {""type"": ""DateTime"", ""name"": ""dateModified"", ""value"": ""2020-06-22T09:07:44.00Z""}]","""0""","[{""type"": ""DateTime"", ""name"": ""dateCreated"", ""value"": ""2019-11-16T00:10:13.00Z""}, {""type"": ""DateTime"", ""name"": ""dateModified"", ""value"": ""2020-06-22T09:07:44.00Z""}]","""5.25""","[{""type"": ""DateTime"", ""name"": ""dateCreated"", ""value"": ""2019-11-16T00:10:13.00Z""}, {""type"": ""DateTime"", ""name"": ""dateModified"", ""value"": ""2020-06-22T09:07:44.00Z""}]","""4.94""","[{""type"": ""DateTime"", ""name"": ""dateCreated"", ""value"": ""2019-11-16T00:10:13.00Z""}, {""type"": ""DateTime"", ""name"": ""dateModified"", ""value"": ""2020-06-22T09:07:44.00Z""}]","""5.25""","[{""type"": ""DateTime"", ""name"": ""dateCreated"", ""value"": ""2019-11-16T00:10:13.00Z""}, {""type"": ""DateTime"", ""name"": ""dateModified"", ""value"": ""2020-06-22T09:07:44.00Z""}]","""5.25""","[{""type"": ""DateTime"", ""name"": ""dateCreated"", ""value"": ""2019-11-16T00:10:13.00Z""}, {""type"": ""DateTime"", ""name"": ""dateModified"", ""value"": ""2020-06-22T09:07:44.00Z""}]","""44.64""","[{""type"": ""DateTime"", ""name"": ""dateCreated"", ""value"": ""2019-11-16T00:10:13.00Z""}, {""type"": ""DateTime"", ""name"": ""dateModified"", ""value"": ""2020-06-22T09:07:44.00Z""}]","""27.06""","[{""type"": ""DateTime"", ""name"": ""dateCreated"", ""value"": ""2019-11-16T00:10:13.00Z""}, {""type"": ""DateTime"", ""name"": ""dateModified"", ""value"": ""2020-06-22T09:07:44.00Z""}]","""0.55""","[{""type"": ""DateTime"", ""name"": ""dateCreated"", ""value"": ""2019-11-30T13:38:12.00Z""}, {""type"": ""DateTime"", ""name"": ""dateModified"", ""value"": ""2020-06-22T09:07:44.00Z""}]"
We request that the publication in CKAN be the same as that shown in Context Broker, without triple double quotes.
The text was updated successfully, but these errors were encountered: