Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1179

Node API - GET method returns invalid response when identifier contains '/'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Kohn Release
    • Kohn Release
    • None
    • None

      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":[

      {"host":"localhost","port":8080}

      ]}}}

            puthuparambil.aditya puthuparambil.aditya
            ahilap ahilap
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: