Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4421

FIWARE.Question.Tech.Data.OrionContextBroker.InvalidCharactersForOrionCB

    Details

      Description

      Created question in FIWARE Q/A platform on 26-06-2015 at 09:06
      Please, ANSWER this question AT http://stackoverflow.com/questions/31067223/invalid-characters-for-orion-context-broker

      Question:
      Invalid characters for orion Context Broker

      Description:
      I make some calls to context broker to create elements, but sometimes I get the following error:

      {
      "errorCode":

      { "code": "400", "details": "Illegal value for JSON field", "reasonPhrase": "Bad Request" }

      }

      I have done some tests and I have discovered that there are some characters which you get that error.

      I found that with "(", ")", "'", ">" , "<",... characters in the value of an attribute return that error.

      This is an example of an entity creation that return the error :

      (curl localhost:1026/v1/updateContext s -S --header 'Content-Type: application/json' --header 'Accept: application/json' -d @ | python -mjson.tool) <<EOF
      {
      "contextElements": [
      {
      "type": "Room",
      "isPattern": "false",
      "id": "Room1",
      "attributes": [

      { "name": "temperature", "type": "float", "value": "23" }

      ,

      { "name": "pressure", "type": "integer", "value": "720" }

      ,

      { "name": "floor", "type": "string", "value": "3 (B)" }

      ]
      }
      ],
      "updateAction": "APPEND"
      }
      EOF

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-09-28 13:24|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-09-28 13:24|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-09-28 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-09-28 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-09-28 15:38|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-09-28 15:38|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-09-29 00:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-09-29 00:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: