[MAGNOLIA-897] Search does not work in author mode Created: 20/May/06  Updated: 23/Jan/13  Resolved: 07/Aug/08

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 2.1.5
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Stojan Peshov Assignee: Philipp Bärfuss
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

WinXP, jdk1.5.0_06, tomcat5.5, magnolia2.1.6


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

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



 Comments   
Comment by Jan Haderka [ 07/Aug/08 ]

2.x versions are not supported anymore.

Generated at Mon Feb 12 03:21:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.