Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-1910

File in "dummy" repository is added to user Inbox when access a process model

XMLWordPrintable

      Description of problem:

      If users open a process model, a new entry in his inbox/recentViewed XML file will be added referencing a "dummy" repository, that does not actually exist.

      This will break the Project Explorer, since I will not be able to open any process definition anymore.

      Version-Release number of selected component (if applicable):

      How reproducible:
      Always

      Steps to Reproduce:
      0. This issue was reproduced using BPM Suite 6.2.1
      1. Create a project that has a simple process and deploy it
      2. Go to process management and start a new instance
      3. Go to process instances and see the process model

      Actual results:

      An entry will be added to user inbox referencing a dummy repository and when trying to open a new process definition in process explorer, it will not be opened.

      Expected results:

      No dummy entry in inbox/recentViewed

      Additional info:

      The following video shows this issue:

      https://drive.google.com/a/redhat.com/file/d/0B3wF6UICl7kseDVMMnp2Y0ZsU3M/view?usp=sharing

      The problem seems that when we open the process model, an event of type ResourceOpenedEvent is being fired somewhere. You can configure debugging and add a break point in the following method from class InboxBackendImpl

      public void recordOpeningEvent( @Observes final ResourceOpenedEvent event )

      You will see that something will fire this event and add the dummy url of the process model to the list of recentViewed files.

      When you try to open a new process definition it also tries to load the recentViewed list to add the file you just opened to it, and then you have an exception(turn on errai debug to see the exception), since the Dummy process does not exist. The exception is threw at uberfire level, when checking the resource URL:

      Line 740 in class JGitFileSystemProvider:
      --------------
      public Path getPath( final URI uri )
      throws IllegalArgumentException, FileSystemNotFoundException, SecurityException {
      /// ....
      if ( fileSystem == null )

      { throw new FileSystemNotFoundException(); }

      // ....
      }
      --------------

            rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
            rhn-support-wsiqueir William Siqueira
            Zuzka Krejčová Zuzka Krejčová (Inactive)
            Zuzka Krejčová Zuzka Krejčová (Inactive)
            Alessandro Lazarotti, Hiroko Miura, Kris Verlaenen, Martin Weiler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: