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

Unhandled exception on setting file variable with null value

XMLWordPrintable

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

      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

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: