telefonicaid / iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
https://iotagent-node-lib.rtfd.io/
GNU Affero General Public License v3.0
60 stars 85 forks source link

Remove device should use id and apikey #1435

Closed AlvaroVega closed 12 months ago

AlvaroVega commented 1 year ago

IoT Agent Node Lib version the issue has been seen with

3.2.0 and previous

Bound or port used (API interaction)

Northbound (Provision API and NGSI Interactions)

NGSI version

NGSIv2

Are you running a container?

None

Image type

None

Expected behaviour you didn't see

Remove device should use id, apikey, serivce and subservice

Unexpected behaviour you saw

Remove device only uses id, service and subservice

Steps to reproduce the problem

No response

Configs

environment:
    - "IOTA_CB_HOST=orion"
    - "IOTA_CB_PORT=1026"
    - "IOTA_NORTH_PORT=4041"
    - "IOTA_REGISTRY_TYPE=mongodb"
    - "IOTA_MONGO_HOST=mongodb"
    - "IOTA_MONGO_PORT=27017"
    - "IOTA_MONGO_DB=iotagent-json"
    - "IOTA_HTTP_PORT=7896"
    - "IOTA_PROVIDER_URL=http://iot-agent:4041"

Log output

No response

AlvaroVega commented 1 year ago

For a case having two devices provisioined with the same id but different apikey (like this case https://github.com/telefonicaid/iotagent-node-lib/issues/1426 ) , then delete is done in a wrong way

fgalan commented 12 months ago

Fixed by PR https://github.com/telefonicaid/iotagent-node-lib/pull/1438