Bug 780045 (SOA-2408) - FileSystemConnector does not process rename node properly between commits
Summary: FileSystemConnector does not process rename node properly between commits
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-2408
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.1.0.ER2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.0.ER4
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-12 10:02 UTC by Jiri Pechanec
Modified: 2010-11-10 12:02 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-10 12:02:58 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 780186 0 high CLOSED FileSystemConnector does not process rename node properly after commit 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-2408 0 None None None Never

Internal Links: 780186

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



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