Hi had, I created my nodes in the AdminCentral website, and then exported them (as xml) from the path /itworks. I'm using this export to bootstrap my tests. When I run the SQL/XPath using the query, I dump the nodes I find : /jcr:root//* returns my nodes, and the toString of the content ends [mgnl:content]. Output from a test below. I have imported the dumped file (rather than bootstrapping it), and it all works as it should - the itworks node (and sub-nodes) all appear as expected. I've used the SQL "select * from nt:base where jcr:path = '/itworks'" - no luck. Changing the path to '/' gives me lots of nodes (including mine)! I've even specified nt:base when getting things from the query results to no avail! I can even see Lucene getting no results. Please don't get confused by the it-works/itworks changes - I'm not, I just renamed everything in case it was the '-' in the name!
Thanks for your efforts, but I'm sure I'm missing something ... I wandered through the Magnolia source code today, hoping to get some info from the QueryTag test, but that works the other way round, and mocks the result without using JCR. I suspect there is no actual standalone harness for what I'm doing, although I assumed that RepositoryTestCase would be used - but I can't find anything that calls either of the bootstrap methods at all! Puzzled and sad. tim 2011-05-25 17:15:50,030 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : HM name = website 2011-05-25 17:15:50,030 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : ContextPath = null 2011-05-25 17:15:50,030 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : HM workspace = website 2011-05-25 17:15:50,081 DEBUG fo.magnolia.objectfactory.DefaultComponentProvider: No instance for class info.magnolia.cms.core.search.SearchFactory yet, creating new one. 2011-05-25 17:15:50,082 DEBUG fo.magnolia.objectfactory.DefaultComponentProvider: New instance for class info.magnolia.cms.core.search.SearchFactory created: info.magnolia.cms.core.search.DefaultSearchFactory@5da631c2 2011-05-25 17:15:50,211 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Doing Query : /jcr:root//* 2011-05-25 17:15:50,434 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/404[mgnl:content] 2011-05-25 17:15:50,434 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,434 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/SERVICE-comparePageHandler[mgnl:content] 2011-05-25 17:15:50,434 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,434 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks[mgnl:content] 2011-05-25 17:15:50,434 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,434 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-1[mgnl:content] 2011-05-25 17:15:50,434 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-1/3rdlevel-1-1[mgnl:content] 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-1/3rdlevel-1-2[mgnl:content] 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-1/3rdlevel-1-3[mgnl:content] 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-2[mgnl:content] 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-2/3rdlevel-2-1[mgnl:content] 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,435 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-2/3rdlevel-2-2[mgnl:content] 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-2/3rdlevel-2-3[mgnl:content] 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-2/3rdlevel-2-4[mgnl:content] 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-3[mgnl:content] 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-4[mgnl:content] 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content 2011-05-25 17:15:50,436 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : website:/itworks/2ndlevel-4/3rdlevel-4-1[mgnl:content] 2011-05-25 17:15:50,437 DEBUG com.edsa.vlp.test.TestMagnoliaTestCase : Node type is mgnl:content -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=803af20d-bbd4-4890-8697-481935abfce3 ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
