Bug 780045 (SOA-2408)

Summary: FileSystemConnector does not process rename node properly between commits
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Jiri Pechanec <jpechane>
Component: EDSAssignee: Van Halbert <vhalbert>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.ER2   
Target Milestone: ---   
Target Release: 5.1.0.ER4   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2408
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 12:02: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:

Description Jiri Pechanec 2010-10-12 10:02:06 UTC
project_key: SOA

If a new node is created on JcrSession (folder) and then moved to another name (rename) then after the commit the original name is still in place.

Code
		Node root = session.getRootNode();
		Node old = root.addNode("oldname", "nt:folder");
		System.out.println("Old present: " + session.nodeExists("/oldname"));
		session.move("/oldname", "/newname");
		System.out.println("Old present: " + session.nodeExists("/oldname"));
		System.out.println("New present: " + session.nodeExists("/newname"));
		
		session.save();
		System.out.println("Old present: " + session.nodeExists("/oldname"));
		System.out.println("New present: " + session.nodeExists("/newname"));

Gives
   [testng] Old present: true
   [testng] Old present: false
   [testng] New present: true
   [testng] Old present: true
   [testng] New present: false

And the file system contains oldname directory instead of newname

Comment 1 Van Halbert 2010-10-12 11:51:05 UTC
Link: Added: This issue depends MODE-944


Comment 2 Van Halbert 2010-10-21 19:28:51 UTC
ModeShape fix was checked into the 2.2.x product branch and should be in the ER4 build.

Comment 3 Jiri Pechanec 2010-11-10 11:57:07 UTC
Verified in ER4

Comment 4 Jiri Pechanec 2010-11-10 12:02:18 UTC
Link: Added: This issue related SOA-2562