-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
[Routing] #23109
Comments
#21090 should be reverted for the Route class as it breaks BC. Being able to change the compilation by overwriting the compiler class is a supported use-case. But the new check prevents that. |
@Gribnif Can you submit a pull request? |
There is a second place where it was added but should not. I commented on the PR |
…e it breaks BC. Refers to symfony#21090 and symfony#23109
I have created a PR for the Routing portion of the issue. I feel that the FormError.php portion should be done by someone else in a separate PR, since reverting it can have different effects. |
which different effect ? Removing the allowed_class will give us back the 3.2 behavior: allowing any object there, which is something we need |
…outing/Route.php (Dan Wilga) This PR was submitted for the master branch but it was merged into the 3.3 branch instead (closes #23121). Discussion ---------- [Routing] Revert the change in [#b42018] with respect to Routing/Route.php | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21090 #23109 | License | MIT | Doc PR | ...because it breaks BC with third-party code which, for instance, might use a subclass of CompiledRoute within the options portion of the Route. Refers to #21090 and #23109 Commits ------- f09893b [Routing] Revert the change in [#b42018] with respect to Routing/Route.php
#1c5a24 introduced a strict check on unserialize() within Route.php, which is good for security. However, it causes a failure if the compiled route's class is anything other than CompiledRoute. This is the case in Drupal, where the serialized object of a route requires \Drupal\Core\Routing\CompiledRoute.
Might I suggest adding the ability to set the list of allowed classes somehow?
The text was updated successfully, but these errors were encountered: