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

need to handle blank body response for MDSAL primary-config-data PUT capability

XMLWordPrintable

      When we use verb PUT with primary-config-data capability, the response code is (201 - Created) and the response body is Null. This causes exception due to the code below.

      if (responseStatusCode in 200..299 && !responseBody.isBlank())

      { populateResource(resourceAssignment, sourceProperties, responseBody, path) }

      else

      { val errMsg = "Failed to get $dSource result for dictionary name ($dName) using urlPath ($urlPath) response_code: ($responseStatusCode)" logger.warn(errMsg) throw BluePrintProcessorException(errMsg) }

      I propose new code to handle the response body = Null, by skipping populateResource method if we have outputKeyMappings = Null.

            abdelseaudi abdelseaudi
            abdelseaudi abdelseaudi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: