Closed davidebriani closed 10 months ago
The device IDs you used in step 3 are somewhat outside of Astarte specification: they are "Extended device IDs" and, as stated in the Astarte Documentation:
Astarte accepts Device IDs longer than 128 bit, which are then truncated to 128 bit internally. This behaviour exists for compatibility reasons but it's not supported and will likely change in future releases - hence, refrain from using anything which is not a 128-bit Device ID.
This means that fVjW5ZscQI6u1P-eoDO1jgw
, fVjW5ZscQI6u1P-eoDO1jga
etc... do collide internally on the original fVjW5ZscQI6u1P-eoDO1jg
, i.e. all their data is stored on fVjW5ZscQI6u1P-eoDO1jg
, and similarly they are deleted as fVjW5ZscQI6u1P-eoDO1jg
. This is an intended behaviour to maintain compatibility, but in future releases they will not be allowed anymore.
Notice also that if you run astartectl utils device-id validate
, you will already get that extended IDs are not valid as an answer:
$ astartectl utils device-id validate fVjW5ZscQI6u1P-eoDO1jgw
fVjW5ZscQI6u1P-eoDO1jgw is not a valid Astarte Device ID
$ astartectl utils device-id validate fVjW5ZscQI6u1P-eoDO1jg
Valid
It seems that Realm Management accepts to start a deletion procedure on non-existent device IDs.
Steps to reproduce:
test
realm in it.fVjW5ZscQI6u1P-eoDO1jg
fVjW5ZscQI6u1P-eoDO1jgw
,fVjW5ZscQI6u1P-eoDO1jga
,fVjW5ZscQI6u1P-eoDO1jg11
.Here are some relevant logs from Realm Management: