Bug 1317665 - File in "dummy" repository is added to user Inbox when access a process model
Summary: File in "dummy" repository is added to user Inbox when access a process model
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ER2
: 6.3.0
Assignee: Tihomir Surdilovic
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 1317671
TreeView+ depends on / blocked
 
Reported: 2016-03-14 19:42 UTC by William Antônio
Modified: 2020-03-27 19:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1317671 (view as bug list)
Environment:
Last Closed: 2020-03-27 19:40:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.