AnsweredAssumed Answered

Bug for in SectionGet.java

Question asked by qsdmv on Oct 30, 2014
In Java based webscript SectionGet.java, you will see partial query built if you look at the method called findDescendants:


String query = "+PATH:\"" + nodeService.getPath(siteId).toPrefixString(namespaceService) + "//*\" +TYPE:\"" + WebSiteModel.TYPE_SECTION + "\" +@ws\\:ancestorSections:\"" + rootSectionId + "\"";


partial query will be generated as (ignore the rest):


+PATH:"/{http://www.alfresco.org/model/application/1.0}company_home//*"


You will get error like:

   Search failed due to: org.alfresco.repo.search.SearcherException: Failed to parse query: +PATH:"/{http://www.alfresco.org/model/application/1.0}company_home


But it works +PATH: "/app:company_home//*"

You can simply paste the above queries and test from your node browser.

Any ideas?

Thanks in advance

Outcomes