Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-3942

SDNR UI config app indicates 400 error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Montreal Release
    • Montreal Release
    • features
    • None

      Open config app:

      https://sdnc-web-0.sdnr-int-1.t3.lab.osn-lab.com/odlux/index.html#/configuration/oai/_3gpp-common-managed-element:ManagedElement[MANAGEDELEMENT=3584]

       

       

      https://sdnc-web-0.sdnr-int-1.t3.lab.osn-lab.com/rests/data/network-topology:network-topology/topology=topology-netconf/node=oai/yang-ext:mount/_3gpp-common-managed-element:ManagedElement=MANAGEDELEMENT=3584/_3gpp-nr-nrm-gnbdufunction:GNBDUFunction=MANAGEDELEMENT%3D3584,GNBDUFUNCTION%3D0response code 400 Bad request{ "errors": { "error": [
      { "error-tag": "unknown-attribute", "error-message": "Schema for (urn:3gpp:sa5:_3gpp-nr-nrm-gnbdufunction?revision=2023-04-26)GNBDUFunction requires 1 key values, 2 supplied", "error-type": "protocol" }
      ] }}
       
      

       

      Analysis result: 

      • Problem relates to fix in https://jira.onap.org/browse/CCSDK-3799
      • source location: deviceActions.ts:236
      • The "," to unicode replacement parameters are in wrong order. Source is containing the ASCII parameter and destination the Unicode character.
      • comma in "GNBDUFunction=MANAGEDELEMENT%3D3584,GNBDUFUNCTION%3D0" makes the problem.

      Original:

       

            } else {
              // normal case & replaces unicode %2C if present
              dataPath += `/${property}${key ? `=${key.replace('%2C', /,/ig).replace(/\//ig, '%2F')}` : ''}`;
      
      

      Fix:

            } else {
              // normal case & replaces unicode %2C if present
              dataPath += `/${property}${key ? `=${key.replace(/,/ig, '%2C').replace(/\//ig, '%2F')}` : ''}`;

       

            sai-neetha Sai Neetha Phulmali
            highstreetherbert Herbert Eiselt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: