Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3362

Business-central REST API is allowing container creation with empty container id

    XMLWordPrintable

Details

    Description

      We should not be able to create container with empty containerID but actually if we use business-central REST API then container with empty id is created without any issue.
       
       
      Below REST endpoint is returning success response (201) even when container id is passed as empty in the request body.
       
       

      http://${HOST}:${PORT}/business-central/rest/controller/management/servers/default-kieserver/containers/test

       
       
      Request Body
       

      <container-spec-details>
          <container-id></container-id>
          <container-name>test</container-name>
          <release-id>
              <artifact-id>test</artifact-id>
              <group-id>com.test</group-id>
              <version>1.0.0-SNAPSHOT</version>
          </release-id>
          <configs>
              <entry>
                  <key>RULE</key>
                  <value xsi:type="ruleConfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                      <scannerStatus>STOPPED</scannerStatus>
                  </value>
              </entry>
              <entry>
                  <key>PROCESS</key>
                  <value xsi:type="processConfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                      <runtimeStrategy>SINGLETON</runtimeStrategy>
                      <kbase></kbase>
                      <ksession></ksession>
                      <mergeMode>MERGE_COLLECTIONS</mergeMode>
                  </value>
              </entry>
          </configs>
          <status>STARTED</status>
      </container-spec-details>

       

      Attachments

        Issue Links

          Activity

            People

              eignatow Eder Ignatowicz
              rhn-support-abhumbe Abhijit Humbe
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: