[
https://issues.jboss.org/browse/JBIDE-14406?page=com.atlassian.jira.plugi...
]
Randall Hauch commented on JBIDE-14406:
---------------------------------------
As for the original problem, you need to provide some Java code that shows what you're
doing. For example, in the above pseudo-code, you don't say that you're saving
your session. This is very important, because JCR queries _never_ see the unsaved
transient content/changes in your session, and _only_ see what has been saved/persisted.
Sql2 query ISCHILDNODE / ISDESCENDANTNODE after session.move
------------------------------------------------------------
Key: JBIDE-14406
URL:
https://issues.jboss.org/browse/JBIDE-14406
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: integration-platform, modeshape
Affects Versions: 3.2.0.Final
Environment: OSX 10.8.3 - JVM 1.7 - eclipse helios - Modeshape 3.2.0.Final
Reporter: noah totti
Assignee: Dan Florian
Don't know if is a bug or I miss something, I use default configuration for in memory
repo, this is the behavior:
Create a tree of 3 node: '/a/b/c'
Create a node 'tmp' under the root
Query with SQL2 to get all ISCHILDNODE under path '/a/b' return node 'c'
Move node 'b' under '/tmp'
Call getNodes() on node '/tmp/b' return node 'c'
Query with SQL2 to get all ISCHILDNODE under path '/tmp/b' return no node
Query with SQL2 to get all ISCHILDNODE under path '/a/b' still return node
'c'
Same behavior with ISDESCENDANTNODE.
To return children with ISCHILDNODE or ISDESCENDANTNODE query, you have to update the
children
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira