I am using the Office 365 Connector module in conjunction with the Multi-domain Login module on my Drupal site. After attempting to log in using the Office 365 Connector module, I am encountering the following error:
LogicException: The controller result claims to be providing relevant cache metadata, but leaked metadata was detected. Please ensure you are not rendering content too early. Returned object class: Drupal\Core\Routing\TrustedRedirectResponse. in Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (line 154 of core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php).
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
I have tried clearing Drupal's cache, but the error persists. I suspect that there may be an issue with cache metadata handling in the Office 365 Connector module or the Multi-domain Login module.
Steps to reproduce:
- Install and enable the Office 365 Connector module (version 3.0.22) and the Multi-domain Login module (version 1.0.4).
- Attempt to log in using the Office 365 Connector module.
- Encounter the "LogicException" error as described above.
Expected result:
The login process should proceed without any errors.
Actual result:
Encountering the "LogicException" error with the message "The controller result claims to be providing relevant cache metadata, but leaked metadata was detected."
Additional information:
- Drupal version: 9.5.3
- Office 365 Connector module version: 3.0.22
- Multi-domain Login module version: 1.0.4
Any help in resolving this issue would be greatly appreciated. Thank you!