ServiceNotFoundException when logging out

Created on 27 February 2018, almost 7 years ago
Updated 21 February 2024, 10 months ago

Going to /user/logout on my cas site produces this exception:

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "url_generator.non_bubbling". in Drupal\Component\DependencyInjection\Container->get() (line 157 of /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php).

I think this is because the controller is using the url_generator.non_bubbling service as an argument and it's marked as a private service by core.

I realise that cache metadata bubbling was causing problems with CAS in some cases #2599416: Redirect to CAS login failing on D8 RC2 , so I'm hesitant to suggest the use of "url_generator" but I'm not sure of a more appropriate fix here.

This is with Drupal core 8.3.7

🐛 Bug report
Status

Needs review

Version

2.0

Component

CAS

Created by

🇦🇺Australia thtas

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

Merge Requests

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