Bug 781079 (SOA-3569)

Summary: PathNotFoundException when trying to retrieve version history for a node.
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Marek Baluch <mbaluch>
Component: EDSAssignee: Jorge Perez Bolano <jperezbo>
Status: VERIFIED --- QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.2.0.ER6CC: ldimaggi, rhauch, vhalbert
Target Milestone: ---   
Target Release: 5.3.0 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3569
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In previous versions, an exception would appear when users attempted to retrieve a node's version history. A "PathNotFoundException" message would appear. As a result, users could not view the requested information. This has been fixed in 5.3.
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Marek Baluch 2011-11-09 13:57:04 UTC
project_key: SOA

See linked issue.

Comment 1 Marek Baluch 2011-11-09 13:57:24 UTC
Link: Added: This issue depends MODE-1302


Comment 2 Van Halbert 2011-11-09 14:21:29 UTC
The problem is a save hasn't been issued after the node was changed.    When the node was changed, the version became 2, and therefore the path changed.   The new path was used in the isversionable call, but the path was not found because a save had not been issued yet for the changed node.

Resolution:  call save after the change and before isversionable is called.

Comment 3 Marek Baluch 2011-11-09 14:42:03 UTC
Link: Added: This issue relates to SOA-2863


Comment 4 Randall Hauch 2011-11-09 14:55:22 UTC
Van's description is not correct. The stack trace clearly shows that the PathNotFoundException occurs when attempting to locate the node that was created and persisted in an earlier save(). See MODE-1302 for details.

Comment 5 JBoss JIRA Server 2012-02-09 21:08:50 UTC
Randall Hauch <rhauch> made a comment on jira MODE-1302

The first thing to do is to create a test case that replicates this (not sure why there isn't one) and verify that we can replicate the problem. We've made quite a few fixes since the 2.5.2 version, so there's no guarantee this is even still a problem.

If it still is a problem, maybe one thing to look at is the {{Session.refresh(true)}} call. Perhaps we're losing some transient state somewhere. Marek mentioned the problem occurs with other mixins, which means the basic test case to try might be just adding a mixin and then getting the node by path.

Comment 6 JBoss JIRA Server 2012-02-14 13:58:15 UTC
Horia Chiorean <hchiorea> made a comment on jira MODE-1302

The bug was caused by a couple of faults in the session.refresh algorithm, which caused the nodes immediately under root to be added as SNS, in case those nodes had children which had been changed in the session.

The issues fixed are: 

* refresh phase 1 - determining which nodes should be left and which should be discarded
* LinkedListMultimap.clear method, which caused refresh phase 2 to incorrectly duplicate existing nodes under a parent, as SNS. 

This last point was the actual cause of the bug

Comment 7 JBoss JIRA Server 2012-02-14 14:38:03 UTC
Horia Chiorean <hchiorea> made a comment on jira MODE-1302

In 3.x, the fix to the LinkedListMultimap is already there, while the refresh algorithm isn't there anymore. Therefore, no work is needed in 3.x for this issue.

Comment 8 JBoss JIRA Server 2012-02-14 16:27:58 UTC
Randall Hauch <rhauch> made a comment on jira MODE-1302

Merged into the 'master' branch.

Comment 9 Horia Chiorean 2012-02-15 09:10:05 UTC
Issue has been fixed in 2.8.

Comment 10 Marek Baluch 2012-05-14 06:33:33 UTC
According to https://bugzilla.redhat.com/show_bug.cgi?id=781079#c9 this should be already fixed - moving to ON_QA

Comment 11 Marek Baluch 2012-05-14 06:33:57 UTC
Verified on ER2.

Comment 12 Suz 2012-06-28 23:37:20 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
In previous versions, an exception would appear when users attempted to retrieve a node's version history. A "PathNotFoundException" message would appear. As a result, users could not view the requested information. This has been fixed in 5.3.

Comment 13 JBoss JIRA Server 2013-10-24 09:20:05 UTC
Randall Hauch <rhauch> updated the status of jira MODE-1302 to Closed