-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[SecurityBundle] something is broken after recent commits #21809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Little findings: on working version there line in container build logs: but in not working version there is line ``Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.user.provider.concrete.carrierUser" to "security.firewall.map.context.default".``` Previous version automatically lowercased every provider name, but new version looks like not converting to lower cases. Maybe this is a case. |
Which commit exactly did you use when experiencing this issue? |
today latest i think, just checked out from teamcity work dir: |
But I don't know exactly which commit fails. |
Can you check if the issue still persists when you only use lowercase letters for the user provider name? |
If only the case sensitivity is the problem AFAIR this was done on purpose. And it should be in Changelog/Upgrade document. |
Yes, works then lowercasered. If it's by purpose then should throw exception about saying what is wrong exactly during configuration validation I think. |
…ntains upper cases then container didn't compile
found a problem, it was during inconsistent getUserProviderId() usage, sometimes it was called like: Fixed by putting strtolower() inside getUserProviderId |
@antanas-arvasevicius That commit was reverted later on. That's why I wonder if you still experience the issue when using the latest |
Never mind, I see that f6637dd wasn't merged up to master yet. |
…ntains upper cases then container didn't compile
…ntains upper cases then container didn't compile
… (xabbuh) This PR was merged into the 3.3-dev branch. Discussion ---------- Revert "[SecurityBundle] only pass relevant user provider" | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21809, #21810 | License | MIT | Doc PR | This reverts commit d97e07f (applies #21798 on `master`). There is no merge commit that could be reverted. Commits ------- 5b016ce Revert "[SecurityBundle] only pass relevant user provider"
…upper cases then container didn't compile
…e contains upper cases then container didn't compile (Antanas Arvasevicius) This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #21810). Discussion ---------- #21809 [SecurityBundle] bugfix: if security provider's name contains upper cases then container didn't compile | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? no | Tests pass? | yes | Fixed tickets | #21809 | License | MIT then security.yml providers was with upper case, on container compile error was thrown: ```` [04:39:32][Ant output] [exec] [exec] > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache [04:39:32][Ant output] [exec] [exec] [04:39:32][Ant output] [exec] [exec] [04:39:32][Ant output] [exec] [exec] [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException] [04:39:32][Ant output] [exec] [exec] The service "security.authentication.provider.simple_form.default" has a de [04:39:32][Ant output] [exec] [exec] pendency on a non-existent service "security.user.provider.concrete.carrier [04:39:32][Ant output] [exec] [exec] User". ````` Problem has occurred with this commit line: fbd9f88#diff-2be909961a57bf75fbb600c1f5fc46e3R320 Issue fixes with this PR. Commits ------- 6d23c8c #21809 [SecurityBundle] bugfix: if security provider's name contains upper cases then container didn't compile
* 2.7: removed test that does not test anything fixed tests #21809 [SecurityBundle] bugfix: if security provider's name contains upper cases then container didn't compile [Validator] fix URL validator to detect non supported chars according to RFC 3986 [Security] Fixed roles serialization on token from user object
* 2.8: removed test that does not test anything fixed tests #21809 [SecurityBundle] bugfix: if security provider's name contains upper cases then container didn't compile [WebProfilerBundle] Fix for CSS attribute at Profiler Translation Page Set Date header in Response constructor already [Validator] fix URL validator to detect non supported chars according to RFC 3986 [Security] Fixed roles serialization on token from user object
* 3.2: [Bridge\Doctrine] Fix change breaking doctrine-bundle test suite [WebProfilerBundle] Include badge status in translation tabs [FrameworkBundle] Cache pool clear command requires at least 1 pool [HttpFoundation][bugfix] should always be initialized MockArraySessionStorage: updated phpdoc for $bags so that IDE autocompletion would work normalize paths before making them relative removed test that does not test anything fixed tests #21809 [SecurityBundle] bugfix: if security provider's name contains upper cases then container didn't compile [WebProfilerBundle] Fix for CSS attribute at Profiler Translation Page Set Date header in Response constructor already [Validator] fix URL validator to detect non supported chars according to RFC 3986 [Security] Fixed roles serialization on token from user object
* 2.8: removed test that does not test anything fixed tests symfony#21809 [SecurityBundle] bugfix: if security provider's name contains upper cases then container didn't compile [WebProfilerBundle] Fix for CSS attribute at Profiler Translation Page Set Date header in Response constructor already [Validator] fix URL validator to detect non supported chars according to RFC 3986 [Security] Fixed roles serialization on token from user object
* 3.2: [Bridge\Doctrine] Fix change breaking doctrine-bundle test suite [WebProfilerBundle] Include badge status in translation tabs [FrameworkBundle] Cache pool clear command requires at least 1 pool [HttpFoundation][bugfix] should always be initialized MockArraySessionStorage: updated phpdoc for $bags so that IDE autocompletion would work normalize paths before making them relative removed test that does not test anything fixed tests symfony#21809 [SecurityBundle] bugfix: if security provider's name contains upper cases then container didn't compile [WebProfilerBundle] Fix for CSS attribute at Profiler Translation Page Set Date header in Response constructor already [Validator] fix URL validator to detect non supported chars according to RFC 3986 [Security] Fixed roles serialization on token from user object
Today we've got build error in our system:
Restored to last worked version on 'd69bb304001e57e00678b86e8e499067889db538'
Hope this info will help to spot a problem.
Our security.yml:
The text was updated successfully, but these errors were encountered: