[Backlogmanager] [FIWARE-JIRA] (HELP-8677) [fiware-stackoverflow] Problems with v1/queryContext needed for SpagoBI integration

Fermín Galán (JIRA) jira-help-desk at jira.fiware.org
Wed May 10 13:07:00 CEST 2017


     [ https://jira.fiware.org/browse/HELP-8677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fermín Galán resolved HELP-8677.
--------------------------------
    Resolution: Done

> [fiware-stackoverflow] Problems with v1/queryContext needed for SpagoBI integration
> -----------------------------------------------------------------------------------
>
>                 Key: HELP-8677
>                 URL: https://jira.fiware.org/browse/HELP-8677
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Fermín Galán
>              Labels: fiware, fiware-orion, spagobi
>
> Created question in FIWARE Q/A platform on 09-05-2017 at 18:05
> {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/43875326/problems-with-v1-querycontext-needed-for-spagobi-integration
> +Question:+
> Problems with v1/queryContext needed for SpagoBI integration
> +Description:+
> In version 1.7.0 of Orion CB running the docker version in Docker for Windows, 
> if I create a simple object doing POST http://localhost:1026/v1/updateContext
> with the body:
> {
>     "contextElements": [
>         {
>             "type": "Car",
>             "id": "myNewCar",
>             "attributes": [
>                 {
>                     "name": "maxSpeed",
>                     "type": "integer",
>                     "value": "220"
>                 }
>             ]
>         }
>     ],
>     "updateAction": "APPEND"
> }
> I get the answer:
> {
>   "contextResponses": [
>     {
>       "contextElement": {
>         "type": "Car",
>         "isPattern": "false",
>         "id": "myNewCar",
>         "attributes": [
>           {
>             "name": "maxSpeed",
>             "type": "integer",
>             "value": ""
>           }
>         ]
>       },
>       "statusCode": {
>         "code": "200",
>         "reasonPhrase": "OK"
>       }
>     }
>   ]
> }
> Then, if I do POST http://localhost:1026/v1/queryContext with the same headers and the same components with the body
> {
>     "entities": [
>         {
>             "type": "Car",
>             "isPattern": "false",
>             "id": "myNewCar"
>         }
>     ]
> }
> I get the following:
> {
>   "errorCode": {
>     "code": "404",
>     "reasonPhrase": "No context element found"
>   }
> }
> Which shouldn't be problematic (I can query the entities with v2 API, for instance) if it wasn't needed for integration with data representation tools such as SpagoBI as documented in http://spagobi.readthedocs.io/en/latest/user/NGSI/README/
> What can I do? I am doing something wrong with the context provision?
> Thanks!



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy