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

Embedded form with file input cannot be completed after save & restore

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.16.0, 7.16.0-alpha4
    • 7.14.0, 7.15.3, 7.16.0-alpha3
    • None
    • None

      Environment (Required on creation):

      Camunda Platform 7.14.0 or newer.

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

      When selecting a file in an embedded form, save the form, close and reopen the view, the file input is declared as invalid which makes it impossible to submit the form.

      Steps to reproduce (Required on creation):

      1. Deploy an embedded form with a file input type and a process referencing the embedded form (see files attached)
      2. Go to Camunda Tasklist and start the process
      3. Select a file from your disk
      4. Save the form via the "Save" button
      5. Close and reopen the view

      Observed Behavior (Required on creation):

      The form cannot be completed since the "Complete" button is disabled. The file input type is marked as invalid by angularjs.

      Expected behavior (Required on creation):

      The User task can be completed after it was saved.

      Root Cause (Required on prioritization):

      Tasklist tries to store and restore the value of an input type file. While storing works, restoring is not possible browser-side due to security reasons [1]. This leads to an invalidation of the form when restoring.

      Solution Ideas (Optional):

      Skip storing the input value of type file.

      Hints (Optional):

      We already prevent restoring Bytes but don't have this check in place for File.

      [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#notes

        This is the controller panel for Smart Panels app

          1. individu-form.html
            2 kB
            Fatih Koca
          2. Test.bpmn
            2 kB
            Fatih Koca

              tassilo.weidner Tassilo Weidner
              fkoca Fatih Koca
              Tassilo Weidner Tassilo Weidner
              Martin Stamm Martin Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: