Closed cdupont closed 3 years ago
I would not change the behavior of the Cloud as it seems correct. POSTing a sensor is actually modifying a device, so if you don't have update access on that device, it should return 403. Probably the gateway should be updated to tolerate this.
When I POST a sensor which is already existing, it returns 403. it should be 422. This is the logs from GW version 1:
This gateway was handed over from one owner to another. It tries to create a sensor on a device that was already created by the previous owner. It fails because it gets a 403 permission error (it was expecting 422 already exists).