Active
Project:
Drupal core
Version:
main
Component:
jsonapi.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2026 at 15:10 UTC
Updated:
16 Oct 2026 at 08:37 UTC
Jump to comment: Most recent
We have restful endpoints that use jsonapi subrequests to get the data, based on the method described in this issue:
https://www.drupal.org/project/jsonapi/issues/3031445
This was working fine up to 11.3.12, but we just upgraded to 11.4.7 and now it works on the first call, but subsequent calls return the jsonapi response instead of our massaged restful response.
We are using redis for caching. If we disable redis the problem goes away.
Enable caching (redis specifically? not sure)
Perform a sub request in a restful endpoint as described in the above issue, and return massaged data
The first call to the endpoint returns correct results
The second call returns the original jsonapi response
Comments
Comment #2
lambic commentedNoting that it looks like changing 'http_kernel.basic' to 'http_kernel' fixes the issue, although in the original issue it says using 'http_kernel' can cause problems.
Comment #3
quietone commentedHi, Issues for Drupal core should be targeted to the 'main' branch, our primary development branch. Changes are made on the main branch first, and are then back ported as needed according to the Core change policies. The version the problem was discovered on should be stated in the issue summary Problem/Motivation section. Thanks.