Uploaded image for project: 'JCR Tools'
  1. JCR Tools
  2. JCRTOOLS-21

Importer form (and uploaded file) is not cleared/reset after successful import

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0
    • 1.0
    • Kromeriz 35
    • 3

    Description

      When using the importer subapp the form (and in particular the uploaded file) is not "cleared" after successful import enabling the user to import the same file multiple times.

      The problem becomes more apparent when the uploaded was deleted in the meantime (but the form maintains its state) see:

      On a side note: when testing above behaviour we found that the import creates same-name-siblings – which in most cases should not work (here: category workspace).

      Suggested solution

      To be in-sync with the behaviour of all other form in the UI we should reset the form after successful import.

      Note to screenshot

      Triggering the import action three times (after upload) results in three imports of the same file:

      [INFO] [talledLocalContainer] 2016-01-27 09:31:08,975 INFO  info.magnolia.commands.impl.ImportCommand         : Import done
      [INFO] [talledLocalContainer] 2016-01-27 09:31:14,862 INFO  info.magnolia.commands.impl.ImportCommand         : Import done
      [INFO] [talledLocalContainer] 2016-01-27 09:31:20,355 INFO  info.magnolia.commands.impl.ImportCommand         : Import done
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              jsimak Jaroslav Simak
              pmundt Philip Mundt
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 0.25h
                    0.25h