[JCRTOOLS-21] Importer form (and uploaded file) is not cleared/reset after successful import Created: 27/Jan/16  Updated: 29/Mar/22  Resolved: 15/Mar/16

Status: Closed
Project: JCR Tools
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.0

Type: Bug Priority: Major
Reporter: Philip Mundt Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: ux
Remaining Estimate: 0d
Time Spent: 0.25h
Original Estimate: Not Specified

Attachments: PNG File import_form_intact_after_import.png     PNG File import_of_file_which_doesnt_exist_anymore.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Kromeriz 35
Story Points: 3
Team: Nucleus

 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


 Comments   
Comment by Evzen Fochr [ 11/Mar/16 ]

import dont work on other workspaces than categories

Generated at Mon Feb 12 02:17:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.