[ http://jira.magnolia.info/browse/MAGNOLIA-897?page=all ]

Boris Kraft reassigned MAGNOLIA-897:
------------------------------------

    Assign To: Philipp Bracher  (was: Boris Kraft)

> 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
>     Assignee: Philipp Bracher

>
>
> 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
----------------------------------------------------------------

Reply via email to