AnsweredAssumed Answered

Search API vs Explorer search

Question asked by systec on Feb 19, 2010
Hi,

i have two Alfresco Share sites, with USERA registered with SITEA and USERB registered with SITEB. As administrator I have used Alfresco Explorer to give USERA permission to a file on SITEB. As USERA I execute a search in Explorer, specifying the 'Sites' space, and the file in SITEB is returned in the search results. However when i execute a similar lucene search using the Search API i get the following error -

01190033 Access Denied.  You do not have the appropriate permissions to perform this operation.

The lucene query i am executing is as follows -

var luceneQuery = "+PATH:\"/app:company_home/st:sites//*\" +@cm\\:title:\"some.pdf\"";          
var nodes = search.luceneSearch(luceneQuery);

Is there any reason why i am able to find the file using Explorer's search engine but not via the Search API. Am i correct in thinking that a folder's security permissions and a document's permissions are mutually exclusive i.e. while i may not be able to view a folder i may still have access to a document within that folder?

Any help or insight would be appreciated. Cheers.

Outcomes