-
Bug
-
Resolution: Done
-
Medium
-
Jakarta Release
-
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
- duplicates
-
CPS-1044 dmi-service-name is not stored in the database when the generated client sends it with dmiPlugin=null
- Closed