Commit Graph

28340 Commits

Author SHA1 Message Date
Fabien Potencier
34b9fd681e bug #20602 [HttpKernel] Revert BC breaking change of Request::isMethodSafe() (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

[HttpKernel] Revert BC breaking change of Request::isMethodSafe()

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | yes (reverting a previous BC break)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #20562
| License       | MIT
| Doc PR        | -

As spotted in #20562, we should not have broken a minor version. Instead, we should have deprecated the bad behavior. This is done in #20603.

Commits
-------

0c3b7d7 [HttpKernel] Revert BC breaking change of Request::isMethodSafe()
2016-11-23 16:42:12 -08:00
Fabien Potencier
78d713ce36 minor #20614 [DI] minor FileLoaders tests update (ogizanagi)
This PR was merged into the 2.7 branch.

Discussion
----------

[DI] minor FileLoaders tests update

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

Strictly speaking not a bug fix but can be merged to 2.7 safely.

I don't know what was the idea behind this or if it simply was a mistake, but right now it seems weird 😅

Commits
-------

412fbe6 [DI] minor FileLoaders tests update
2016-11-23 16:35:20 -08:00
Fabien Potencier
59e8f2fddd minor #20613 [Filesystem] Remove extra argv from dumpFile() calls in tests (chalasr)
This PR was submitted for the master branch but it was merged into the 3.1 branch instead (closes #20613).

Discussion
----------

[Filesystem] Remove extra argv from dumpFile() calls in tests

| Q             | A
| ------------- | ---
| Branch?       | master
| Tests pass?   | yes
| License       | MIT

Commits
-------

1b298e5 [Filesystem] Remove extra argv in dumpFile() tests
2016-11-23 16:33:23 -08:00
Robin Chalas
1b298e5622 [Filesystem] Remove extra argv in dumpFile() tests 2016-11-23 16:33:22 -08:00
Fabien Potencier
cabc225d74 bug #20610 [FrameworkBundle] Add framework.cache.prefix_seed for predictible cache key prefixes (nicolas-grekas)
This PR was merged into the 3.2 branch.

Discussion
----------

[FrameworkBundle] Add framework.cache.prefix_seed for predictible cache key prefixes

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

That's a design issue: using root_dir as discriminant doesn't work with blue/green deployment strategies, and doesn't prevent collision when different apps are deployed in the same path while sharing the same cache backend.

Commits
-------

82952bd [FrameworkBundle] Add framework.cache.prefix_seed for predictible cache key prefixes
2016-11-23 16:28:31 -08:00
Fabien Potencier
808cc22c05 bug #20595 [WebProfilerBundle] Fix deprecated uses of profiler_dump (nicolas-grekas)
This PR was merged into the 3.2 branch.

Discussion
----------

[WebProfilerBundle] Fix deprecated uses of profiler_dump

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Replaces #20571 that made me realize that we completely missed updating the "Request / Response" panel that is current triggering a bunch of deprecation notices about profiler_dump. Yet, these notices triggered by the profiler are not displayed anywhere (what, we don't have a profiler for the profiler? :) ). And we missed them.

Commits
-------

b4c327d [WebProfilerBundle] Fix deprecated uses of profiler_dump
2016-11-23 16:17:45 -08:00
Fabien Potencier
6f138b8612 bug #20589 [SecurityBundle] Fix FirewallConfig nullable arguments (ogizanagi)
This PR was squashed before being merged into the 3.2 branch (closes #20589).

Discussion
----------

[SecurityBundle] Fix FirewallConfig nullable arguments

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no, but removes one
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

Nullable arguments were replaced by empty strings by the DIC config if values weren't replaced in the extension.

Another solution (looking safer to me) is to apply the following changes in the DIC configuration:

```diff
diff --git a/src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml b/src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml
index 54e5734..499dd5e 100644
--- a/src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml
+++ b/src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml
@@ -116,15 +116,15 @@

         <service id="security.firewall.config" class="Symfony\Bundle\SecurityBundle\Security\FirewallConfig" abstract="true" public="false">
             <argument />                   <!-- name -->
-            <argument />                   <!-- user_checker -->
-            <argument />                   <!-- request_matcher -->
-            <argument />                   <!-- security enabled -->
-            <argument />                   <!-- stateless -->
-            <argument />                   <!-- provider -->
-            <argument />                   <!-- context -->
-            <argument />                   <!-- entry_point -->
-            <argument />                   <!-- access_denied_handler -->
-            <argument />                   <!-- access_denied_url -->
+            <argument>null</argument>      <!-- user_checker -->
+            <argument>null</argument>      <!-- request_matcher -->
+            <argument>true</argument>      <!-- security enabled -->
+            <argument>false</argument>     <!-- stateless -->
+            <argument>null</argument>      <!-- provider -->
+            <argument>null</argument>      <!-- context -->
+            <argument>null</argument>      <!-- entry_point -->
+            <argument>null</argument>      <!-- access_denied_handler -->
+            <argument>null</argument>      <!-- access_denied_url -->
             <argument type="collection" /> <!-- listeners -->
         </service>
```

But it doesn't seem to be the way we deal with arguments meant to be replaced by extensions in the Symfony core.

cc @chalasr

This PR also removes the FirewallContext mandatory `FirewallConfig` argument deprecation for reasons expressed in https://github.com/symfony/symfony/pull/20591#issuecomment-262525029

Commits
-------

79ef474 [SecurityBundle] Remove FirewallContext mandatory FirewallConfig argument deprecation
f09ccf4 [SecurityBundle] Fix FirewallConfig nullable arguments
2016-11-23 16:13:01 -08:00
Maxime Steinhausser
412fbe613f [DI] minor FileLoaders tests update 2016-11-23 22:37:45 +01:00
Nicolas Grekas
82952bd43f [FrameworkBundle] Add framework.cache.prefix_seed for predictible cache key prefixes 2016-11-23 19:16:07 +01:00
Jérôme Parmentier
01b2f66a65 Switch to NoRFCWarningsValidation 2016-11-23 18:18:18 +01:00
Nicolas Grekas
34e7b956dd [HttpKernel] Deprecate checking for cacheable HTTP methods in Request::isMethodSafe() 2016-11-23 16:20:13 +01:00
Maxime STEINHAUSSER
79ef474fdf [SecurityBundle] Remove FirewallContext mandatory FirewallConfig argument deprecation 2016-11-23 15:35:00 +01:00
Nicolas Grekas
0c3b7d7b8d [HttpKernel] Revert BC breaking change of Request::isMethodSafe() 2016-11-23 14:53:57 +01:00
Nicolas Grekas
3c1361cd6d bug #20590 [DI] Allow null as default env value (sroze)
This PR was squashed before being merged into the 3.2 branch (closes #20590).

Discussion
----------

[DI] Allow null as default env value

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ø
| License       | MIT
| Doc PR        | ø

This PR allows the environment variable default value to be null. The way, we can allow optional environment variables, such as in this example:

```yaml
parameters:
    # Default values
    env(DATABASE_HOST): database
    env(DATABASE_PORT): ~
    env(DATABASE_NAME): symfony
    env(DATABASE_USERNAME): root
    env(DATABASE_PASSWORD): ~

    # Database configuration
    database_host:     "%env(DATABASE_HOST)%"
    database_port:     "%env(DATABASE_PORT)%"
    database_name:     "%env(DATABASE_NAME)%"
    database_user:     "%env(DATABASE_USERNAME)%"
    database_password: "%env(DATABASE_PASSWORD)%"
```

Commits
-------

519a471 [DI] Allow null as default env value
2016-11-23 14:12:27 +01:00
Samuel ROZE
519a47179a [DI] Allow null as default env value 2016-11-23 14:12:24 +01:00
Robin Chalas
10992cd3bf [Process] Fix kill process on reached timeout using getIterator() 2016-11-23 09:58:31 +01:00
Nicolas Grekas
b4c327d89b [WebProfilerBundle] Fix deprecated uses of profiler_dump 2016-11-22 20:22:01 +01:00
Nicolas Grekas
7752308c96 [DI] Aliases should preserve the aliased invalid behavior 2016-11-22 19:19:49 +01:00
Maxime STEINHAUSSER
f09ccf49d1 [SecurityBundle] Fix FirewallConfig nullable arguments
Nullable arguments were replaced by empty string by the DIC config if values weren't replaced in the extension.
2016-11-22 11:07:22 +01:00
Fabien Potencier
30d161c0ae bug #20499 [Doctrine][Form] support large integers (xabbuh)
This PR was merged into the 2.7 branch.

Discussion
----------

[Doctrine][Form] support large integers

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15642
| License       | MIT
| Doc PR        | n/a

Commits
-------

6954a07 [Doctrine][Form] support large integers
2016-11-21 16:16:03 -08:00
Fabien Potencier
59f99493f8 bug #20559 [FrameworkBundle] Avoid warming up the validator cache for non-existent class (Seldaek)
This PR was submitted for the master branch but it was merged into the 3.2 branch instead (closes #20559).

Discussion
----------

[FrameworkBundle] Avoid warming up the validator cache for non-existent class

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? |no
| Tests pass?   | yes
| License       | MIT

This relates to https://github.com/FriendsOfSymfony/FOSUserBundle/issues/2224 - where basically the cache warmer triggers autoloading of a class that is broken, and it then blows up.

This doesn't fix the problem in itself, loading broken classes will still fail, but it allows us at least to work around it by doing:

```
        "exclude-from-classmap": [
            "vendor/friendsofsymfony/user-bundle/Propel/"
        ]
```

And then `composer dump-autoload -a` to get an authoritative classmap. That way the hasMetadataFor will return false because class_exist() won't try to load the class at all. Without the hasMetadataFor fix though, it calls getMetadataFor which throws an exception in the case the class doesn't exist. I am not sure if that's by design.. that the cache warmer would force you to have classes existing for all your validation definitions.

Commits
-------

cb12f22 [FrameworkBundle] Avoid warming up the validator cache for non-existent classes
2016-11-21 16:13:33 -08:00
Jordi Boggiano
cb12f2200d [FrameworkBundle] Avoid warming up the validator cache for non-existent classes 2016-11-21 16:13:32 -08:00
Fabien Potencier
9c82a9bd92 minor #20505 [DOMCrawler] Bug fixed (Imangazaliev)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #20505).

Discussion
----------

[DOMCrawler] Bug fixed

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT
| Doc PR        | reference to the documentation PR, if any

Commits
-------

6c3150d [DOMCrawler] Bug fixed
2016-11-21 16:09:36 -08:00
Imangazaliev
6c3150df63 [DOMCrawler] Bug fixed 2016-11-21 16:09:36 -08:00
Fabien Potencier
adaa8ec50f minor #20561 Fix annotation type for $context (KmeCnin)
This PR was merged into the 2.8 branch.

Discussion
----------

Fix annotation type for $context

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Previous type ExecutionContextInterface was referring to a non declared namespace. Replacing it by ExecutionContextInterface2Dot5 fixes autocomplete.

Commits
-------

55e134c Fix annotation type for $context
2016-11-21 16:03:35 -08:00
Fabien Potencier
7047e4d31f bug #20576 [Process] Do feat test before enabling TTY mode (nicolas-grekas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Process] Do feat test before enabling TTY mode

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #20565
| License       | MIT
| Doc PR        | -

Commits
-------

69bfbbf [Process] Do feat test before enabling TTY mode
2016-11-21 15:59:43 -08:00
Fabien Potencier
bd34b67f31 bug #20577 [FrameworkBundle] Mark cache.default_*_provider services private (nicolas-grekas)
This PR was merged into the 3.1 branch.

Discussion
----------

[FrameworkBundle] Mark cache.default_*_provider services private

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #20563
| License       | MIT
| Doc PR        | -

I know making a service private has a potential for breaking BC. Yet, these services should not be used directly in controllers/userland code, and I really doubt anyone did. Let's make it private now and fix linked issue (even if it's a false positive from SymfonyServiceDefinitionValidator, it shows we have this service that really isn't meant to be public).

Commits
-------

09adfda [FrameworkBundle] Mark cache.default_*_provider services private
2016-11-21 15:54:59 -08:00
Julien Falque
b25c1d30f6
Fix complete config tests 2016-11-21 23:48:35 +01:00
Nicolas Grekas
09adfda57e [FrameworkBundle] Mark cache.default_*_provider services private 2016-11-21 11:06:34 +01:00
Nicolas Grekas
69bfbbf8c2 [Process] Do feat test before enabling TTY mode 2016-11-21 10:47:03 +01:00
Fabien Potencier
f09b933564 bumped Symfony version to 3.1.8 2016-11-20 19:12:53 -08:00
Fabien Potencier
db1c32c723 Merge pull request #20575 from fabpot/release-3.1.7
released v3.1.7
2016-11-20 18:44:44 -08:00
Fabien Potencier
386fd29f67 updated VERSION for 3.1.7 2016-11-20 18:44:20 -08:00
Fabien Potencier
ba6420bf88 updated CHANGELOG for 3.1.7 2016-11-20 18:44:16 -08:00
Fabien Potencier
d94a631f4d bumped Symfony version to 2.8.15 2016-11-20 18:42:55 -08:00
Fabien Potencier
6ceca5b415 Merge pull request #20574 from fabpot/release-2.8.14
released v2.8.14
2016-11-20 18:24:51 -08:00
Fabien Potencier
8af226fe39 updated VERSION for 2.8.14 2016-11-20 18:24:42 -08:00
Fabien Potencier
38118a324b updated CHANGELOG for 2.8.14 2016-11-20 18:24:38 -08:00
Fabien Potencier
2af58be68f bumped Symfony version to 2.7.22 2016-11-20 18:19:38 -08:00
Fabien Potencier
cdc25e2d47 Merge pull request #20573 from fabpot/release-2.7.21
released v2.7.21
2016-11-20 17:13:05 -08:00
Fabien Potencier
dec83adc4b updated VERSION for 2.7.21 2016-11-20 17:12:54 -08:00
Fabien Potencier
4367d0c853 update CONTRIBUTORS for 2.7.21 2016-11-20 17:12:28 -08:00
Fabien Potencier
aefd0489a9 updated CHANGELOG for 2.7.21 2016-11-20 17:12:23 -08:00
Fabien Potencier
a4edafbd7d updated version to 3.3 2016-11-19 12:35:20 -08:00
Nicolas Grekas
2094715152 [Serializer] Fix test assuming UTC default TZ 2016-11-18 16:58:27 -05:00
Nicolas Grekas
39c830997e Merge branch '3.1'
* 3.1:
  [YAML] Fix processing timestamp with timezone
  [ci] Testing with UTC hides bugs
  [DI] Fix error when trying to resolve a DefinitionDecorator
  [DoctrineBridge] Fix deprecation message/documentation of implementing UserProviderInterface using the entity provider
  Fix time-sensitive tests that use data providers
  [Validator] improve and added more Indonesian translation.
2016-11-18 16:17:59 -05:00
Nicolas Grekas
c01a1a9149 bug #20550 [YAML] Fix processing timestamp strings with timezone (myesain)
This PR was merged into the 3.1 branch.

Discussion
----------

[YAML] Fix processing timestamp strings with timezone

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #20399
| License       | MIT
| Doc PR        | -

Parse date strings containing timezone data correctly
Default date strings not containing timezone data to UTC

Commits
-------

cdb11a7 [YAML] Fix processing timestamp with timezone
2016-11-18 16:16:50 -05:00
Nicolas Grekas
2e6618b144 Merge branch '2.8' into 3.1
* 2.8:
  [ci] Testing with UTC hides bugs
  [DI] Fix error when trying to resolve a DefinitionDecorator
  [DoctrineBridge] Fix deprecation message/documentation of implementing UserProviderInterface using the entity provider
  [Validator] improve and added more Indonesian translation.
2016-11-18 16:15:08 -05:00
Nicolas Grekas
546ec682bf Merge branch '2.7' into 2.8
* 2.7:
  [ci] Testing with UTC hides bugs
  [DI] Fix error when trying to resolve a DefinitionDecorator
  [Validator] improve and added more Indonesian translation.
2016-11-18 16:10:01 -05:00
Noah Heck
cdb11a7ec9 [YAML] Fix processing timestamp with timezone
Parse date strings containing timezone data correctly
Default date strings not containing timezone data to UTC
2016-11-18 16:05:29 -05:00