edgexfoundry / device-onvif-camera

Owner: Device WG
Apache License 2.0
29 stars 37 forks source link

Bosch camera- Configuration Analytics profile-Remove Configuration not removeing newly added configuration. #33

Open surajitx-pal opened 2 years ago

surajitx-pal commented 2 years ago

Summary of the problem: 'Remove Configuration' API not working.

Issue reproducible on below camera models:

Bosch DINION 6000HD

Reproduce steps:

Execute this command to set Set metadata configuration

command -add configuration -

Step #1:

curl -X PUT http://localhost:59882/api/v2/device/name/Bosch-DINION-IP-starlight-6000-HD-00075fd8-7c31-317c-d85f-0700075fd85f/AddConfiguration \ --header 'Content-Type: application/json' \ --data-raw ' { "AddConfiguration":{ "ProfileToken":"0", "Name":"Analytics #3", "Configurations":[ { "Type":"tt:Viproc", "Token":"1" } ] } }'

Step #2 Verify with getProfiles command - new configuraiton added sccess fully. curl -X GET http://localhost:59882/api/v2/device/name/Bosch-DINION-IP-starlight-6000-HD-00075fd8-7c31-317c-d85f-0700075fd85f/Media2Profiles

Step #3 Command to remove the newly added configuration -

curl -X PUT http://localhost:59882/api/v2/device/name/Bosch-DINION-IP-starlight-6000-HD-00075fd8-7c31-317c-d85f-0700075fd85f/RemoveConfiguration\ --header 'Content-Type: application/json' \ --data-raw ' { "RemoveConfiguration": { "ProfileToken": "0", "Configurations": [ { "Type": "tt:Viproc", "Token": "1" } ] } }'

Executed successfully - but not removed properly verify with GetProfiles command-

vyshali-chitikeshi commented 1 year ago

On Hikvision-DS-2DE2A404IW-DE3 camera also, it gives status code 200 with remove configuration but its not actually removing configuration from media profile.

vyshali-chitikeshi commented 1 year ago

Issue still exists with V3 code