Active
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2018 at 19:20 UTC
Updated:
3 Apr 2026 at 15:14 UTC
Jump to comment: Most recent
Berdir pointed out in https://www.drupal.org/project/drupal/issues/3020902#comment-12896882 that our dependency serialization protection stops on the backend_overridable layer.
Let's figure out why and provide a test coverage.
Comments
Comment #2
berdirMy guess is that it doesn't get the service property in that case, or that it doesn't get the right now.
Comment #3
berdir@alexpott found out that the problem is the fact that backend_overrideable services are marked as private, at least these are.
Which is interesting, because it means that they're not really private anyway, otherwise \Drupal\views\Plugin\views\query\Sql::create() wouldn't work, a regular private service isn't accessible through the container.
So the fix might be as easy as ensuring that the aliased service is *not* marked as private in \Drupal\Core\DependencyInjection\Compiler\BackendCompilerPass::process()? Not 100% convinced that's the only problem as the requested service id will also need to to match what it thinks it is, not sure how that works exactly with aliases.
Comment #14
smustgrave commentedThis came up as a daily BSI target
Summary is kinda bare wonder if we can update that before anything else.