[IOTDM-65] Compliance - IoTDM is not able to perform "Retrieve/Delete" on the resource if "acpi" is set using "resourceId" of ACP Created: 01/Mar/17  Updated: 05/Apr/17  Resolved: 05/Apr/17

Status: Resolved
Project: iotdm
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Anil Pandey Assignee: Juraj Kosmel
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 7877
Priority: Normal

 Description   

1) Recreation steps -

A) create ACP ,
{
"m2m:acp" : {
"pv" : {
"acr" : [

{ "acop" : 63, "acor" : [ "admin:admin", "origin:origin", "Cadmin-ae" ] }

]
},
"pvs" : {
"acr" : [

{ "acop" : 63, "acor" : [ "admin:admin", "origin:origin", "Cadmin-ae" ] }

]
},
"rn" : "admin-acp"
}
}

following is the response when AE is created -
"m2m:acp" :

{ "ct" : "20170301T053723", "et" : "29991231T111111", "lt" : "20170301T053723", "pi" : "/InCSE/0-1-2-0", "ri" : "0-3-2-0", "ty" : 1 }

}

B) Create resource : AE with ACPI set to value of "resourceId"

{
"m2m:ae" :

{ "acpi" : [ "0-3-2-0" ], "api" : "myAppId", "rn" : "Cadmin-ae", "rr" : true }

}

C) Try deleting or retrieving the ae "Cadmin-ae" , seeing following error message -

"error": "CONTENT(pc) ACPID : 0-3-2-0 does not exist !! "

Note - operation works when we use the URI of the ACP resource for setting "acpi". We found this while doing compliance testing.

We have not other way to delete/retrieve this AE now. and entire datastore need to be cleanup to recover the AE.



 Comments   
Comment by Juraj Kosmel [ 05/Apr/17 ]

https://git.opendaylight.org/gerrit/#/c/54308/

Generated at Wed Feb 07 20:05:05 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.