[CONTTAGS-104] tagfn.getContentByTags returns all items tagged ignoring the provided search root Created: 17/Nov/20  Updated: 04/Jan/21  Resolved: 04/Jan/21

Status: Closed
Project: Content Tags
Component/s: None
Affects Version/s: 1.2.1
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Jeffrey van der Heide Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates CONTTAGS-58 TagManager can return wrong result se... 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 running 

tagfn.getContentByTags("website", newsRootContentMap.@path, "OR", tags)

The final query is: 

SELECT * FROM [nt:base] WHERE ISDESCENDANTNODE([/lloyds-2020/nieuws]) AND [mgnl:tags] = 'voorbeeld' OR [mgnl:tags] = 'test'

Where it should be: 

SELECT * FROM [nt:base] WHERE ISDESCENDANTNODE([/lloyds-2020/nieuws]) AND ([mgnl:tags] = 'voorbeeld' OR [mgnl:tags] = 'test')

Right now it results in all items tagged "test" regardless of search root.

 



 Comments   
Comment by Richard Gange [ 04/Jan/21 ]

Hello jvanderheide-

This issue is fixed in Magnolia 6.2.4. Please update to get the fix. See CONTTAGS-58.

Kind Regards
Rich

Generated at Mon Feb 12 00:25:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.