Open surajitx-pal opened 2 years ago
Summary of the problem: 'Delete Rules' API not working for same rule if added multiple times.
Issue reproducible on below camera models:
Reproduce steps: Execute this command
curl -X PUT http://localhost:59882/api/v2/device/name/Bosch-DINION-IP-starlight-6000-HD-00075fd8-7c31-317c-d85f-0700075fd85f/DeleteRules \ --header 'Content-Type: application/json' \ --data-raw ' { "DeleteRules": { "ConfigurationToken": "1", "Rule": [ { "RuleName": "NEW object" }, { "RuleName": "Armed" } ] } }'
Then verify with GetRules command- curl -x GET GET http://localhost:59882/api/v2/device/name/Bosch-DINION-IP-starlight-6000-HD-00075fd8-7c31-317c-d85f-0700075fd85f/Rules
Actual result - Not deleting rule Executed - Should be deleted rule
Issue still exists with V3 code
Summary of the problem: 'Delete Rules' API not working for same rule if added multiple times.
Issue reproducible on below camera models:
Bosch DINION 6000HD
Reproduce steps: Execute this command
curl -X PUT http://localhost:59882/api/v2/device/name/Bosch-DINION-IP-starlight-6000-HD-00075fd8-7c31-317c-d85f-0700075fd85f/DeleteRules \ --header 'Content-Type: application/json' \ --data-raw ' { "DeleteRules": { "ConfigurationToken": "1", "Rule": [ { "RuleName": "NEW object" }, { "RuleName": "Armed" } ] } }'
Then verify with GetRules command- curl -x GET GET http://localhost:59882/api/v2/device/name/Bosch-DINION-IP-starlight-6000-HD-00075fd8-7c31-317c-d85f-0700075fd85f/Rules
Actual result - Not deleting rule Executed - Should be deleted rule