Steps to reproduce the issue:
1. Add an external repository (Alfresco)
2. Browse inside the repository
3. Go inside an empty folder
4. Search for a document that it's outside that folder.
Search will return the document although it shouldn't because it's outside the folder.
This is CMIS query:
00:17:24,446 DEBUG [CMISRepository:1521] CMIS search query: SELECT cmis:objectId, SCORE() AS HITS FROM cmis:document WHERE ((cmis:name LIKE 'b%') OR (cmis:createdBy LIKE 'b%')) ORDER BY HITS DESC
There is no reference to the folder in the CMIS query.