Search does not work in author mode
-----------------------------------
Key: MAGNOLIA-897
URL: http://jira.magnolia.info/browse/MAGNOLIA-897
Project: magnolia
Type: Bug
Components: core
Versions: 2.1.5
Environment: WinXP, jdk1.5.0_06, tomcat5.5, magnolia2.1.6
Reporter: Stojan Peshov
Assigned to: Boris Kraft
The problem is on the 2.1.6 only, and it's because of this lines from
QueryResultImpl:
boolean isAllowed = !SecureURI.isProtected(path);
if (this.accessManager != null) {
this.accessManager.isGranted(path, Permission.READ);
}
if (isAllowed) {
collection.add(new Content(node, this.accessManager));
this.dirtyHandles.put(node.getPath(), StringUtils.EMPTY);
}
when in author mode isAllowed is always false
this is the solution:
isAllowed = this.accessManager.isGranted(path,
Permission.READ);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------