[MGNLREST-757] @ancestor allows retrieving nodes regardless configured rootPath Created: 03/Oct/23 Updated: 20/Oct/23 Resolved: 18/Oct/23 |
|
| Status: | Closed |
| Project: | Magnolia REST Framework |
| Component/s: | None |
| Affects Version/s: | 2.2.22 |
| Fix Version/s: | 3.0.0, 2.2.23 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Jonathan Ayala | Assignee: | Anh Vu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Σ Remaining Estimate: | 0d | Remaining Estimate: | 0d |
| Σ Time Spent: | 6d 6.25h | Time Spent: | 6d 2.25h |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Attachments: |
|
|||||||||||||||||||||||||
| Issue Links: |
|
|||||||||||||||||||||||||
| Sub-Tasks: |
|
|||||||||||||||||||||||||
| Template: | ||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
|||||||||||||||||||||||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[X] 
Architecture Decision Record (ADR)
|
|||||||||||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
|||||||||||||||||||||||||
| Date of First Response: | ||||||||||||||||||||||||||
| Epic Link: | Support | |||||||||||||||||||||||||
| Sprint: | DevX 48 | |||||||||||||||||||||||||
| Story Points: | 2 | |||||||||||||||||||||||||
| Team: | ||||||||||||||||||||||||||
| Work Started: | ||||||||||||||||||||||||||
| Approved: |
Yes
|
|||||||||||||||||||||||||
| Description |
Steps to reproduceUse the attached endpoint which configures rootPath as /sportstation
Expected resultsNodes are returned according to the configured rootPath
Actual resultsNodes are returned regardless rootPath when ancestor is set as parameter
WorkaroundDevelopment notes |
| Comments |
| Comment by Anh Vu [ 12/Oct/23 ] |
|
Discovery output: But it seems that the query involving multiple ISDESCENDANTNODE conditions with AND operator are not supported, The simple solution for this is that we will check if the input path for @ancestor starts with the root path, if not, a fake condition is created to make sure no nodes will be returned, for example ISDESCENDANTNODE(t, [/dummyPath]) instead of ISDESCENDANTNODE(t, [/travel]). |