[MGNLUI-286] ListView shows all items even when the workbench root is set different than "/" Created: 30/Nov/12  Updated: 11/Feb/13  Resolved: 06/Dec/12

Status: Closed
Project: Magnolia UI
Component/s: content app
Affects Version/s: 5.0
Fix Version/s: 5.0

Type: Bug Priority: Major
Reporter: Jozef Chocholacek Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLUI-254 Search does not work in the Security App Closed
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   

When the workbench root is set to a different value than "/", the tree view shows properly just the desired sub-tree, but the ListView shows all items (i.e. as if the workbench root was set to "/").



 Comments   
Comment by Christopher Zimmermann [ 30/Nov/12 ]

Enhanced AbstractJcrContainer.contructJCRQuery() to select only nodes under the path specified in workbenchDefinition.
Created getWorkspacePathQueryClause() to provide the filtering clause which uses JCR Query construct:
WHERE ISDESCENDANTNODE('[path]')

Fixed in git commit cdaffc2809d02c6eff735a8c40fe8eaa6c54cc06

Comment by Daniel Lipp [ 04/Dec/12 ]

The issue is not fixed for SearchJcrContainers with workbench root other than "/".
To reproduce e.g. type '*' in search box of Security App.

Comment by Federico Grilli [ 05/Dec/12 ]

just realized that searching for "superuser" in the security-app under /admin returns the superuser item

Generated at Mon Feb 12 08:35:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.