Using token in filename causes caching error

Created on 3 October 2019, over 5 years ago
Updated 28 December 2024, about 1 month ago

The bug I ran into looks an awful lot like #2887562-8: Filename not applied when downloading cached export. however the patch from this previous issue has already been applied to 8.x-1.0-beta3 so I am opening a new issue.

Adding a token to the filename causes the following error to be thrown:

Uncaught PHP Exception 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\Cache\CacheableResponse." at web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php line 154

Removing the token from the filename cases the data export to work as expected.

🐛 Bug report
Status

Closed: cannot reproduce

Component

Code

Created by

🇨🇦Canada Beanjammin

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