Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9105

Project with the same name as the previously deleted one shows wrong number of assets

XMLWordPrintable

    • NEW
    • NEW
    • Hide

      1. Create a project named MyProject.
      2. Add some assets into it and save them.
      3. Delete the project.
      4. Wait 10 seconds or so (until the MyProject.git is not in the .niogit/MySpace directory) and create again a project named MyProject.
      5. It should show that the number of assets in it is not zero.

      If you recreate the project immediately, MyProject-1 will be created showing zero assets.

      Expected behaviour:
      After I delete the MyProject project and recreate it with the same name, the project name should be MyProject again and the number of assets should be zero. It shouldn't have -1 appended to it if I manage to recreate it quickly or show wrong number of assets in case I recreated it after some time.

      Show
      1. Create a project named MyProject. 2. Add some assets into it and save them. 3. Delete the project. 4. Wait 10 seconds or so (until the MyProject.git is not in the .niogit/MySpace directory) and create again a project named MyProject. 5. It should show that the number of assets in it is not zero. If you recreate the project immediately, MyProject-1 will be created showing zero assets. Expected behaviour: After I delete the MyProject project and recreate it with the same name, the project name should be MyProject again and the number of assets should be zero. It shouldn't have -1 appended to it if I manage to recreate it quickly or show wrong number of assets in case I recreated it after some time.

      After the current project is deleted and a new one with the same name is created, it will show the number of assets from the previously deleted project. However, assets from the previous project are not even shown, i.e. you have an empty project containing 3 assets according to the Business Central.

      Also there is another issue. When I delete the MyProject project and quickly create a new one with the same name, it will create a project with -1 appended in its name, so MyProject-1. By looking into the .niogit directory it is because the old project (MyProject.git) is still there. So this time the name of the project is changed and because it is a completely new one, assets are at zero as they should.

      However, if I create a new project with the name MyProject after some time, i.e. 10 seconds, it will be properly created but with wrong number of assets as I said previously.

      I noticed that there is a warning logged with an exception, see the attachment.

      This issue persists even after restart.

              r_anand Rishiraj Anand
              mmacik@redhat.com Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: