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

OpenAPI client [C#]: Exception on fetch and lock

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.13.0, 7.13.0-alpha4
    • None
    • None

      Scenario:

      • generated a C# client of the OpenAPI documentation
      • perform fetch and lock operation

      Expectation:
      Successful operation

      Observed:
      An exception is thrown

      Further details from CAM-11749:

      When i do a FetchAndLock, i get an exception Deserializing.

      I debugged and the reason is the DTO LockedExternalTaskDto . This class consists of strings which by default can be null or empty string.

      However, there is a retries property which the schema says, its an integer. And since the retry is by default null in camunda if not configured,

      the deserializer give an exception casting a null json value to an integer. Either the retries needs to also be changed to string or the schema needs to define that its nullable or optional or something to that the generated code will make a nullable integer.

        This is the controller panel for Smart Panels app

              nikola.koevski Nikola Koevski
              yana.vasileva Yana Vasileva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: