- Merge request !8Issue #3049395: Get same results on different request → (Open) created by phenaproxima
- Merge request !9Issue #3049395: Get same results on different request → (Merged) created by phenaproxima
- 🇮🇳India rajeshreeputra Pune
change_request_type-63049395-09.patch → patch was failing, hence created new subrequests-3049395-change-request-type-47.patch → patch, but not required as both seems identical hence removing.
- last update
over 1 year ago 8 pass, 1 fail - last update
over 1 year ago 8 pass, 2 fail - last update
over 1 year ago 8 pass, 1 fail - last update
over 1 year ago 8 pass, 1 fail - last update
over 1 year ago 8 pass, 2 fail - last update
over 1 year ago 8 pass, 1 fail - last update
over 1 year ago 8 pass, 1 fail - last update
over 1 year ago 8 pass, 1 fail - 🇰🇬Kyrgyzstan sahaj
I've upgraded to Drupal 10 and use the
Merge request !9
patch, but I'm then getting the following error:Warning: Undefined array key "sub-content-type" in Drupal\subrequests\Normalizer\MultiresponseJsonNormalizer->normalize() (line 19 of modules/contrib/subrequests/src/Normalizer/MultiresponseJsonNormalizer.php). Drupal\subrequests\Normalizer\MultiresponseJsonNormalizer->normalize(Array, 'json', Array) (Line: 159) Symfony\Component\Serializer\Serializer->normalize(Array, 'json', Array) (Line: 138) Symfony\Component\Serializer\Serializer->serialize(Array, 'json', Array) (Line: 142) Drupal\rest\Plugin\views\style\Serializer->render() (Line: 438) Drupal\rest\Plugin\views\display\RestExport->Drupal\rest\Plugin\views\display\{closure}() (Line: 592) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 439) Drupal\rest\Plugin\views\display\RestExport->render() (Line: 1548) Drupal\views\ViewExecutable->render() (Line: 429) Drupal\rest\Plugin\views\display\RestExport->execute() (Line: 1645) Drupal\views\ViewExecutable->executeDisplay('rest_export', Array) (Line: 81) Drupal\views\Element\View::preRenderViewElement(Array) call_user_func_array(Array, Array) (Line: 111) Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 797) Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 386) Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 204) Drupal\Core\Render\Renderer->render(Array, 1) (Line: 148) Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 592) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 149) Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 407) Drupal\rest\Plugin\views\display\RestExport::buildResponse('slider_groups', 'rest_export', Array) (Line: 56) Drupal\views\Routing\ViewPageController->handle('slider_groups', 'rest_export', Object) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 44) Drupal\redirect_after_login\RedirectMiddleware->handle(Object, 1, 1) (Line: 68) Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 53) Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704) Drupal\Core\DrupalKernel->handle(Object) (Line: 19) Warning: Undefined array key "sub-content-type" in Drupal\subrequests\Normalizer\MultiresponseJsonNormalizer->normalize() (line 19 of modules/contrib/subrequests/src/Normalizer/MultiresponseJsonNormalizer.php). Drupal\subrequests\Normalizer\MultiresponseJsonNormalizer->normalize(Array, 'json', Array) (Line: 159) Symfony\Component\Serializer\Serializer->normalize(Array, 'json', Array) (Line: 138) Symfony\Component\Serializer\Serializer->serialize(Array, 'json', Array) (Line: 142) Drupal\rest\Plugin\views\style\Serializer->render() (Line: 438) Drupal\rest\Plugin\views\display\RestExport->Drupal\rest\Plugin\views\display\{closure}() (Line: 592) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 439) Drupal\rest\Plugin\views\display\RestExport->render() (Line: 1548) Drupal\views\ViewExecutable->render() (Line: 429) Drupal\rest\Plugin\views\display\RestExport->execute() (Line: 1645) Drupal\views\ViewExecutable->executeDisplay('rest_export', Array) (Line: 81) Drupal\views\Element\View::preRenderViewElement(Array) call_user_func_array(Array, Array) (Line: 111) Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 797) Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 386) Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 204) Drupal\Core\Render\Renderer->render(Array, 1) (Line: 148) Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 592) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 149) Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 407) Drupal\rest\Plugin\views\display\RestExport::buildResponse('slider_groups', 'rest_export', Array) (Line: 56) Drupal\views\Routing\ViewPageController->handle('slider_groups', 'rest_export', Object) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 44) Drupal\redirect_after_login\RedirectMiddleware->handle(Object, 1, 1) (Line: 68) Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 53) Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
And I'm really getting lost into this thread. What is the status of this issue and how to fix it?
- Assigned to mglaman
- 🇺🇸United States mglaman WI, USA
Pinged @phenaproxima, he's not working on this. I'm going to take some time to go through the issue and MRs/patches.
- last update
about 1 year ago 9 pass - last update
about 1 year ago 8 pass, 2 fail - 🇺🇸United States mglaman WI, USA
Tests are passing, now. However I think the approach is wrong. We should be using SplObjectStorage to store cache IDs per-request object instead of the current approach. See \Drupal\Core\Path\CurrentPathStack for an example.
- last update
about 1 year ago 9 pass - last update
about 1 year ago 9 pass - Issue was unassigned.
- Status changed to Needs review
about 1 year ago 6:15pm 8 December 2023 - 🇺🇸United States mglaman WI, USA
Okay, the tests are fixed. I also updated the implementation to be something to be more resilient than relying on manipulating the request object.
- Status changed to RTBC
about 1 year ago 8:46am 17 December 2023 - e0ipso Can Picafort
This looks wonderful!
Thanks for the work, and the patience everyone!!
- last update
about 1 year ago 9 pass -
e0ipso →
committed bee4766b on 3.x authored by
phenaproxima →
Issue #3049395 by phenaproxima, voleger, mglaman, Rajeshreeputra, kensae...
-
e0ipso →
committed bee4766b on 3.x authored by
phenaproxima →
- Status changed to Fixed
about 1 year ago 8:48am 17 December 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- 🇺🇸United States kevinquillen
This issue is marked fixed, is the patch in 58 still needed?
- 🇺🇸United States mglaman WI, USA
This bug is fixed. The patch changes the type of request sent, which looks like a different issue.