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

URI is not absolute exception when dmi-service-name is not set in the database

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Jakarta Release
    • Jakarta Release
    • NCMP
    • None

      If dmi-service-name is not set in the database but dmi-data-service-name is set, CPS still tries to use dmi-service-name even if it has null value, when we try to send a CRUD operation through NCMP.

      DB entry
      40906    /dmi-registry/cm-handles[@id='5CB8D844981161B97E5968727DEA225B']    {"id": "5CB8D844981161B97E5968727DEA225B", "dmi-data-service-name": "http://eric-eo-enm-adapter:80", "dmi-model-service-name": "http://eric-oss-enm-model-adapter:8080"}    2    144    2

      GET operation sent to NCMP
      GET https://gas.volt.hahn191.rnd.gic.ericsson.se/ncmp/v1/ch/5CB8D844981161B97E5968727DEA225B/data/ds/ncmp-datastore:passthrough-running?resourceIdentifier=/

      If I print out the used url where NCMP tries to send the dmi-plugin request, the URL is the following:
      null/dmi/v1/ch/5CB8D844981161B97E5968727DEA225B/data/ds/ncmp-datastore:passthrough-running?resourceIdentifier=/

      Result
      500 error with "URI is not absolute" message

      Proposal: dmi-service-name should not be used if it is not set at all.
      Note: in requests sent to the DMI Plugin using the dmi-model-service-name, there is no problem
      Note: If dmi-service-name is an empty string, then it is handled correctly and it uses dmi-data-service-name instead. Only the null case is not handled correctly

            dylanb95est dylanb95est
            csaba.eder csaba Eder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: