Skip to content

Commit 0b48115

Browse files
committed
bug #39261 [Security] fix #39249, default entry_point compiler pass was returning too early (romaricdrigon)
This PR was merged into the 5.2 branch. Discussion ---------- [Security] fix #39249, default entry_point compiler pass was returning too early | Q | A | ------------- | --- | Branch? | 5.2 (bug introduced in 5.2.0, after RC2) | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #39249 | License | MIT | Doc PR | N/A A `return` instead of `continue` was making compiler pass return after the first firewall. Hence subsequents firewalls never had a default entrypoint set. This issue would occur with all firewalls, with any type of authenticator, though I saw it first with `http_basic` - because it is a bit more opaque and harder to debug. Commits ------- c377805 [Security] fix #39249, default entry_point compiler pass was returning too early
2 parents 0d9dd43 + c377805 commit 0b48115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/RegisterEntryPointPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function process(ContainerBuilder $container)
5050
}
5151

5252
if (!$entryPoints) {
53-
return;
53+
continue;
5454
}
5555

5656
$config = $container->getDefinition('security.firewall.map.config.'.$firewallName);

0 commit comments

Comments
 (0)