Bug 1317665

Summary: File in "dummy" repository is added to user Inbox when access a process model
Product: [Retired] JBoss BPMS Platform 6 Reporter: William Antônio <wsiqueir>
Component: Business CentralAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.2.0CC: alazarot, hmiura, kverlaen, mweiler
Target Milestone: ER2   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1317671 (view as bug list) Environment:
Last Closed: 2020-03-27 19:40:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1317671    

Description William Antônio 2016-03-14 19:42:44 UTC
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();
        }

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

Comment 3 Kris Verlaenen 2016-03-16 16:00:28 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1317671#c2
This should already be fixed by https://bugzilla.redhat.com/show_bug.cgi?id=1315981