Code leaked cacheability metadata

Created on 12 September 2021, over 3 years ago
Updated 4 February 2025, about 1 month ago

Problem/Motivation

Whenever I authenticate using the plugin, a warning concerning leaking cacheability metadata is written to the log:

While processing SAML authentication response, code leaked cacheability metadata. This indicates a bug somewhere (but it is hard to pinpoint where): if the same code is called in other scenarios too, it may cause fatal crashes, or bloat the render cache unnecessarily. Please investigate. Metadata: i:6;:O:37:"Drupal\Core\Render\BubbleableMetadata":4:{s:16:"*cacheContexts";a:0:{}s:12:"*cacheTags";a:0:{}s:14:"*cacheMaxAge";i:-1;s:14:"*attachments";a:0:{}}

Steps to reproduce

Use the SAML login to authenticate.

Proposed resolution

Fix metadata leak.

πŸ› Bug report
Status

Active

Version

3.3

Component

Code

Created by

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.

Production build 0.71.5 2024