-
Bug
-
Resolution: Done
-
Critical
-
6.2.0
Description of problem:
When copying existing project, Designer tries to create new globals file in VFS. This fails with Error modal dialog "File "/DEF/global" already exists."
Version-Release number of selected component (if applicable):
BRMS ER5 / BPM Suite 6.2.0 ER5
How reproducible:
Always
Steps to Reproduce:
1. Go to project authoring and create new project "ABC"
2. In the project editor that is opened click 'rename' and select new name for the project "DEF"
Actual results:
Modal dialog "ERROR: File "/DEF/global" already exists."
Expected results:
No error when copying the project.
Additional info:
Comment from Michael Anstis:
Tiho will need to ensure Designer's org.jbpm.designer.repository.vfs.VFSRepository.createGlobalDirOnNewProject() method checks whether files already exist.
Please see the log. Looks like you'll need to check if files already exist in the "global" workspace before creating them.
------------------------------
11:03:42,504 ERROR [org.guvnor.common.services.backend.exceptions.ExceptionUtilities] (http-/127.0.0.1:8080-1) Exception thrown: null: org.uberfire.java.nio.file.FileAlreadyExistsException
at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.createDirectory(JGitFileSystemProvider.java:1012) [uberfire-nio2-jgit-0.7.4.Final-redhat-2.jar:0.7.4.Final-redhat-2]
at org.uberfire.java.nio.file.Files.createDirectory(Files.java:259) [uberfire-nio2-api-0.7.4.Final-redhat-2.jar:0.7.4.Final-redhat-2]
at org.uberfire.io.impl.IOServiceDotFileImpl.internalCreateDirectory(IOServiceDotFileImpl.java:327) [uberfire-io-0.7.4.Final-redhat-2.jar:0.7.4.Final-redhat-2]
at org.uberfire.io.impl.IOServiceDotFileImpl.createDirectory(IOServiceDotFileImpl.java:128) [uberfire-io-0.7.4.Final-redhat-2.jar:0.7.4.Final-redhat-2]
at org.jbpm.designer.repository.vfs.VFSRepository.createGlobalDirOnNewProject(VFSRepository.java:583) [jbpm-designer-backend-6.3.0.Final-redhat-3.jar:6.3.0.Final-redhat-3]
- blocks
-
RHBPMS-302 Creating Project, then copying it, then deleting it causes NoSuchFileException
- Verified