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

NCMP returns 500 error on searches endpoint when No DMi Handles registered

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • Jakarta Release
    • Kohn Release
    • NCMP
    • None

    Description

      Summary

      When you execute a query against the /ncmp/v1/ch/searches endpoint without any registered cmHandles, NCMP return a 500 error instead of empty response or not found code.

       

      Sample request body against /ncmp/v1/ch/searches:

      {
          "conditions": [
              {
                  "name": "hasAllModules",
                  "conditionParameters": [{
                      "moduleName": "enm-GNBDU"
                  }]
              }
          ]
      }

       

      Sample response:

      {
      "status": "500 INTERNAL_SERVER_ERROR",
      "message": "Yang resource not found",
      "details": "No yang resources found for [enm-GNBDU] in dataspace NFP-Operational."
      } 

       

      It could be any moduleName.

      The expectation on the client side would be HTTP 404 Not found code, or 200 OK response code with empty body.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kissand Andras Zoltan Kiss
              emolger Gergely Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: