Problem/Motivation
A JSON:API Menu Items query that applies filters will result in a 403 status code if no results are found.
Steps to reproduce
/jsonapi/menu_items/main?filter[parent]=fake
Proposed resolution
Don't result in a 403, it's not access denied, it's a valid, empty result.
Remaining tasks
Make the change.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork jsonapi_menu_items-3213317
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
decipheredComment #4
shadcn commentedWe came across this issue today.
This patch fixes it. Agreed on the 200 response.
Comment #5
decipheredDone, thanks for the review.
Comment #7
lauriiiWas the MR really merged? The MR is still open and I don't see commit for this in the commit log.
Comment #9
larowlanLooks like it was missed, I've rebased it and will commit if it passes
Comment #10
larowlanThis is showing as 301ddc3 in the HEAD of 1.2.x
Comment #11
lauriiiThank you @larowlan! Are you planning to make a new tagged release that would include this? This would be a great DX improvement to ship 🙏
Comment #12
larowlanSure, can do - 1.2.3 is packaging now