Description of problem: See summary above and step below. Version-Release number of selected component (if applicable): BPMS 6.0 ER7 Steps to Reproduce: 1. In some package of a project, create a DRL file. Via GUI or Git, doesn't matter. 2. Append some content to the file and save it. 3. In GUI, create the same file in the same project and package. 4. Reopen the file in the GUI. Actual results: File was silently overwritten, you get "Item successfully created" notification. Expected results: Pop-up with a warning, that such file already exists. No overwriting. Additional info: This seems to be issue only for the DRL files, e.g. Test Scenarios and Enumerations work as expected. My guess is that the "feature" that automatically adds package declaration to each new DRL is somehow behind this.
The cause was simple; we didn't check if the file existed before writing the content (with GIT if you write to a file that already exists you simply add a new version - hence the apparent "overwrite").
Toni, can you please cherry-pick this into 6.0.x as soon as the flags are set?
Will do.
(In reply to Toni Rikkola from comment #4) > Will do. 6.0.x: https://github.com/droolsjbpm/drools-wb/commit/f2dcf0417