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

Unhandled exception on setting file variable with null value

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Duplicate
    • L3 - Default
    • None
    • None
    • engine
    • None

    Description

      Steps to reproduce
      Perform a request to set a variable of type file with value null against an REST API endpoint of your choice. For instance POST /process-definition/$ID/start

      {"variables": {"fileVariable":{"value":null,"type":"File","valueInfo":{"filename":"aFileName.txt"}}}}
      

      Observed behavior
      The IllegalArgumentException is not catched and therefore propagated to the JAX-RS provider which leads to an html response body including a stacktrace

      Expected behavior
      The exception is handled properly

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                tassilo.weidner Tassilo Weidner
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce