Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-13105

With OpenAPI generated clients, unable to deploy multiple resources in the same deployment

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Unresolved
    • L3 - Default
    • None
    • 7.13.0, 7.14.0
    • engine

    Description

      Environment (Required on creation):

      Camunda Platform Rest OpenAPI json and running engine >= 7.13.0

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      Incorrect OpenAPI schema definitions prevents usage of the documented create deployment endpoint.

      Steps to reproduce (Required on creation):

      1. Use the OpenAPI json to create a client
      2. Use the the client to create deployment with two or more deployment resources.

      Observed Behavior (Required on creation):

      Only the last one resource gets deployed

      Expected behavior (Required on creation):

      All of the deployment resources are deploy as part of the same deployment

      Root Cause (Required on prioritization):

      Incorrect definition of `MultiFormDeploymentDto` OpenAPI schema definition and `data` property, it's a single string property at the moment with predefined name.

      Solution Ideas (Optional):

      Hints (Optional):

      • Is it possible to document the endpoint with the current specification?
        • Ideally we need to define an array binary properties with undefined names
        • Other alternatives?
      • Adjust the REST API implementation to avoid unique keys for the resource array. (check comments)

      Workaround:

      • Modify the generated client code to correctly resolve the deployment resources.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                yana.vasileva Yana Vasileva
                Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Salesforce