iotagent-ul icon indicating copy to clipboard operation
iotagent-ul copied to clipboard

Message with wrong Fiware-Service is accepted

Open gobaldia opened this issue 7 years ago • 2 comments

I have the following important issue. I have two Services created as follows:

Host: localhost:4061
Content-Type: application/json
X-Auth-Token: [TOKEN]
Fiware-Service: A
Fiware-ServicePath: /auto
Cache-Control: no-cache
{
      "services": [
        {
          "apikey":      "apikeyA",
          "cbroker":     "http://localhost:1026",
          "entity_type": "A",
          "resource":    "/iot/d"
        }
      ]
    }

and

Host: localhost:4061
Content-Type: application/json
X-Auth-Token: [TOKEN]
Fiware-Service: B
Fiware-ServicePath: /auto
Cache-Control: no-cache
{
      "services": [
        {
          "apikey":      "apikeyB",
          "cbroker":     "http://localhost:1026",
          "entity_type": "B",
          "resource":    "/iot/d"
        }
      ]
    }

Then I have two devices: deviceA (in the service A, with Fiware-Service A) and deviceB (in the service B, with Fiware-Service B).

Then, if I try to send a measure to deviceA with APIKEY=apikeyA and Fiware-Service=B the measure is accepted and processed normally, and viceversa. It seems to header Fiware-Service is ignored. That's a big issue. It caused us a lot of inconveniences.

gobaldia avatar Apr 21 '17 16:04 gobaldia