1

当我发送此请求时(updateContext/APPEND)

 { "updateAction":"APPEND",
   "contextElements":[
      { "id":"AssetPerformanceCEP759",
        "isPattern":"false",
        "attributes":[
             { "name":"TimeInstant",
               "type":"urn:x-ogc:def:trs:IDAS:1.0:ISO8601",
               "value":"2014-04-29T13:18:05Z" },
             { "value":"12,10",
               "name":"location",
               "type":"Location",
               "metadatas":[
                    { "name":"location",
                      "type":"string",
                      "value":"WSG84" },
                    { "name":"phenomenon",
                      "type":"string",
                      "value":"urn:x-ogc:def:phenomenon:IDAS:1.0:location" },
                    { "name":"TimeInstant",
                      "type":"urn:x-ogc:def:trs:IDAS:1.0:ISO8601",
                      "value":"2014-04-29T13:18:05Z"}
                     ]}
      ],
   "type":"ModelPerformanceCEP"}
 ]}

两次,我得到以下回复:

"statusCode" : {
    "code" : "472",
    "reasonPhrase" : "request parameter is invalid/not allowed",
    "details" : "action: APPEND - entity: (AssetPerformanceCEP759, ModelPerformanceCEP) - offending attribute: location - attemp to define a location attribute (location) when another one has been previously defined (location)"
  }

属性是一("name": "location")。如果属性被更新(位置属性不是另一个定义)猎户座可以更新它(就像猎户座对其他人所做的那样)

4

1 回答 1

1

Orion 0.12.0 或之前的版本不允许包含已定义位置的属性的位置元数据。

版本 0.13.0 将解决这个问题,检查是否存在重新定义位置属性的实际尝试,并仅在这种情况下引发错误。

已在 github.com 上创建了一个问题来处理此问题:https ://github.com/telefonicaid/fiware-orion/issues/351

于 2014-05-07T13:45:07.763 回答