Description of problem: This worked correctly up to BPMS 6.0.1 ER1, but is now broken in ER2. The correct (and expected) behavior in ER1 was: when you try to create new form named X in some package, that already contains form with that name X, you got modal dialog with error: "Sorry, an item of that name already exists in the repository. Please choose another." Now in ER2 it does the following: it opens new, empty form, which overwrites all the data in the existing form. If you check the underlying git repository, you can see, that the existing form was overwritten by new, empty form with the same name. Version-Release number of selected component (if applicable): BPMS 6.0.1 ER2 How reproducible: Always Steps to Reproduce: 1. Create some form, make some edits and save it 2. Create new form with exactly the same name as you created in 1 Actual results: New form is created, overwriting all the content you had in the previous form Expected results: It should behave as it did in ER1 and prior versions (user should get a modal with warning and no new form should be created)
Additional info: the correct behavior which was in ER1 was implemented as a fix for previously reported bug 996425.
Checking if file exists before create. Commit (master): https://github.com/droolsjbpm/jbpm-form-modeler/commit/e0b631e240d4c179cc1dec1cdc69849c956896aa Commit (6.0.x): https://github.com/droolsjbpm/jbpm-form-modeler/commit/52edbc61a64b93f6d2baa331468cfa143f4fdc1d
Ticket cherry-picked into 6.0.1.CR1. Commits: 2763979ad5fffd6ab5a6d76c0ebdaff576a10f76
Ok, now it works correctly as it did in 6.0.1 ER1. Verified with BPMS 6.0.1 CR1