Closed cat-haines closed 10 years ago
The device created was: 24bbe944-9b92-4cea-bd17-2361fb88ff50 The device deleted was: 79897b50-f277-11e3-ba2e-0b078550b2fe
If you try to create a new device and the UUID already exists, SkyNet auto-assigns the device a new UUID.
Sorry - posted wrong code to demonstrate.
The only real important curl command is the last one. You post (to the https endpoint) with a new uuid and a token or other properties), and the device is created without those properties.
Strange indeed! I'm puzzled at the moment because the HTTP and HTTPS requests flow through the same logic. It seems as though the HTTPS request may be loosing the post body data. We will need to do a little research on Restify's HTTPS handling...
Fix deployed to production today.
Steps to reproduce:
1) Create a new object using http endpoint:
Results in:
Device is created with the specified uuid and token (good)
2) Delete the device
2) Create a new object using https endpoint:
Results in:
Device is created a newly generated uuid and token.. this is bad :(