Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Done
-
Kohn Release
-
None
-
None
Description
Node API - GET Method is returning imprompt response, if the node identifier has '/'. Root node in the response returns wrong module name and the node identifier shown as 11015296']
Example Node id with / in the request payload:
idNRCellDU: "/110/15296",
Parent node in the response:
{"ietf-inet-types:11015296']" --> expected is ran-network:NRCELLDU
APIs Used:
$ curl -k -H "Content-Type: application/json" -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST http://localhost:8883/cps/api/v1/dataspaces?dataspace-name='E2EDEMO'
$ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/schema-sets' --form 'file=@"ran-network.zip"' --form 'schema-set-name="ran-network"'
$ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors?schema-set-name='ran-network'&anchor-name='11''
$ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors/11/nodes' --header 'Content-Type: application/json' -d @ran-network-initial-data.json -i
GET API:
---------
$ curl -u cpsuser:cpsr0cks! -X 'GET' 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors/11/node?xpath=%2Fran-network%2FNearRTRIC%5B%40idNearRTRIC%3D%2711%27%5D%2FGNBDUFunction%5B%40idGNBDUFunction%3D%27/11/110%27%5D%2FNRCellDU%5B%40idNRCellDU%3D%27/11/11015289%27%5D&include-descendants=true' -H 'accept: application/json'
Response:
{"ietf-inet-types:11015289']":{"idNRCellDU":"/11/11015289","attributes":{"nRPCI":11,"nRTAC":14777,"arfcnDL":1,"arfcnUL":2,"arfcnSUL":3,"ssbOffset":9,"userLabel":"user","cellLocalId":15289,"ssbDuration":4,"nRCellDU-url":"/110/10.165.160.15:8083","ssbFrequency":7,"bSChannelBwDL":4,"bSChannelBwUL":5,"bSChannelBwSUL":6,"nRSectorCarrierRef":["OU=Sales"],"ssbSubCarrierSpacing":15,"sAP":[
]}}}
Attachments
Issue Links
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
130258,2 | Get Node API fix | master | cps | Status: MERGED | +2 | +1 |
130739,4 | Get Node API fix for attribute values with '/' | master | cps | Status: MERGED | +2 | +1 |
131045,3 | Updated release notes with limitation related to cps path | master | cps | Status: MERGED | +2 | +1 |