Error with cache metadata handling in Office 365 Connector module

Created on 13 April 2023, about 1 year ago
Updated 16 February 2024, 4 months ago

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:

  1. Install and enable the Office 365 Connector module (version 3.0.22) and the Multi-domain Login module (version 1.0.4).
  2. Attempt to log in using the Office 365 Connector module.
  3. 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:

  1. Drupal version: 9.5.3
  2. Office 365 Connector module version: 3.0.22
  3. Multi-domain Login module version: 1.0.4

Any help in resolving this issue would be greatly appreciated. Thank you!

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada Brownell Toronto, Ontario

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Needs work 11 months ago
  • πŸ‡§πŸ‡ͺBelgium Mschudders

    Pleas provide a patch.
    We have tested this module with O365 login as well and it's working for us. We are not using 0365 connector module though.

  • Status changed to Postponed: needs info 10 months ago
  • πŸ‡§πŸ‡ͺBelgium kriboogh

    This is difficult to reproduce since we don't know what might be causing the early content rendering. If you have any other watchdog entries prior to this exception then we might see what is causing it.
    As said, we have o365 login working using samlauth in combination with this module without problems.
    In the meantime I'm postponing this.

  • Status changed to Closed: cannot reproduce 4 months ago
  • πŸ‡§πŸ‡ͺBelgium kriboogh

    Closing this, since there is no response anymore. If needed you can reopen with more details on the produced error.

Production build 0.69.0 2024