camunda-modeler
camunda-modeler copied to clipboard
File Name Duplicated When File with Same Name Exists on Disc
Describe the Bug
When creating a new file the file name is diagram-1.bpmn
, diagram-2.bpmn
and so on. If a file with one of those names already exists on disc the file name can be duplicated.
Steps to Reproduce
- Create a new file
- Save new file on disc using default name
- Close modeler
- Open modeler
- Create new file
- New file also has name
diagram-1.bpmn
Expected Behavior
No name duplication.
Environment
- Camunda Modeler Version: 5.0.0
Is that a bug? I'd rather call this a simple enough, no magic behavior. And how crucial is that? Moving to spring cleaning. If it is easy to fix, why not, if not, lets close it again.
Like @nikku, I'd argue that this is expected default behavior. An application creates a new file with a default name (like "Untitled Document") and this name could already exist at the place where it will be stored. The system save dialog detects the conflict and handles the case.
It's a good hint to rename the file to the real name if the OS mentions that the diagram-1.bpmn
already exists.
It's a good hint to rename the file to the real name if the OS mentions that the
diagram-1.bpmn
already exists.
Can you explain what your expected behavior is, please?
The current behavior is the standard approach, I believe. See recording.
https://user-images.githubusercontent.com/938244/167113153-65dde0ab-77dc-4dff-8b33-e7307814e08e.mov