I have create one job which is creating folder structure with inheritance permission false.
Now if i am searching with lucene query from other user who do not have permission on folder, lucene return result with all node even if do not have permission.
I am using Java to search node where loggein user has permission.
Description File:
<webscript>
<shortname>Metadata</shortname>
<description>Metadata</description>
<url>/metadata</url>
<authentication>user</authentication>
<format default="json"></format>
</webscript>
Java :
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
String query = "PATH:\"//app:company_home/app:dictionary/cm:" + Constants.FOLDER_COUNTRY+ "/cm:"+ Constants.FOLDER_CITY + "/*\" AND TYPE:\"cm:folder\"";
ResultSet rs = searchService.query(storeRef, SearchService.LANGUAGE_LUCENE, query);
It's Resolved.Issue with SearchService.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.