Commit Graph

41164 Commits

Author SHA1 Message Date
Fabien Potencier 7b0ca3ab56
Merge pull request #34351 from fabpot/release-4.2.12
released v4.2.12
2019-11-13 09:51:57 +01:00
Fabien Potencier 8e625093ab updated VERSION for 4.2.12 2019-11-13 09:51:34 +01:00
Fabien Potencier 0e4183c895 updated CHANGELOG for 4.2.12 2019-11-13 09:51:25 +01:00
Nicolas Grekas 5ac0763331 security #cve-2019-18886 [Security\Core] throw AccessDeniedException when switch user fails (nicolas-grekas)
This PR was merged into the 4.2 branch.
2019-11-12 14:03:21 +01:00
Nicolas Grekas 7bd4a92fc9 [Security\Core] throw AccessDeniedException when switch user fails 2019-11-12 14:02:45 +01:00
Nicolas Grekas 5098b66336 security #cve-2019-18889 [Cache] forbid serializing AbstractAdapter and TagAwareAdapter instances (nicolas-grekas)
This PR was merged into the 4.2 branch.
2019-11-12 14:00:14 +01:00
Nicolas Grekas 9067fdc950 security #cve-2019-11325 [VarExporter] fix exporting some strings (nicolas-grekas)
This PR was merged into the 4.2 branch.
2019-11-12 13:59:01 +01:00
Nicolas Grekas 81fce3ecca security #cve-2019-18888 [HttpFoundation] fix guessing mime-types of files with leading dash (nicolas-grekas)
This PR was merged into the 4.2 branch.
2019-11-12 13:55:14 +01:00
Nicolas Grekas 9cbe360d68 security #cve-2019-18887 [HttpKernel] Use constant time comparison in UriSigner (stof)
This PR was merged into the 4.2 branch.
2019-11-12 13:54:13 +01:00
Nicolas Grekas 691486e43c [HttpFoundation] fix guessing mime-types of files with leading dash 2019-11-11 13:54:47 +01:00
Nicolas Grekas 8817d28fca [Cache] forbid serializing AbstractAdapter and TagAwareAdapter instances 2019-11-11 13:44:10 +01:00
Christophe Coevoet cccefe6a7f [HttpKernel] Use constant time comparison in UriSigner 2019-11-11 13:27:07 +01:00
Fabien Potencier 9fa32f4ba1 bumped Symfony version to 4.2.12 2019-07-28 09:08:12 +02:00
Fabien Potencier 2ba6f17744
Merge pull request #32787 from fabpot/release-4.2.11
released v4.2.11
2019-07-28 09:05:29 +02:00
Fabien Potencier 615707b6b6 updated VERSION for 4.2.11 2019-07-28 09:05:06 +02:00
Fabien Potencier 86079b873f updated CHANGELOG for 4.2.11 2019-07-28 09:04:59 +02:00
Fabien Potencier 826a66228b Merge branch '3.4' into 4.2
* 3.4:
  [VarDumper] cs fix
2019-07-27 08:42:33 +02:00
Fabien Potencier b00d9882e8 bug #32760 [HttpKernel] clarify error handler restoring process (xabbuh)
This PR was merged into the 4.2 branch.

Discussion
----------

[HttpKernel] clarify error handler restoring process

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

Commits
-------

c1349d1434 clarify error handler restoring process
2019-07-27 08:24:42 +02:00
Fabien Potencier 5acd99cb3f minor #32771 [DoctrineBridge] add parameter type declarations to private methods (xabbuh)
This PR was merged into the 4.2 branch.

Discussion
----------

[DoctrineBridge] add parameter type declarations to private methods

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

Commits
-------

8157db4522 add parameter type declarations to private methods
2019-07-27 08:17:37 +02:00
Christian Flothmann 8157db4522 add parameter type declarations to private methods 2019-07-27 08:08:43 +02:00
Christian Flothmann f7e8a96ffc add missing changelog entry 2019-07-27 07:24:50 +02:00
Christian Flothmann c1349d1434 clarify error handler restoring process 2019-07-26 15:02:58 +02:00
Nicolas Grekas 5dc8bc0520 [VarDumper] cs fix 2019-07-26 13:29:23 +02:00
Christian Flothmann 6085bf10c4 Merge branch '3.4' into 4.2
* 3.4:
  relax some assertions to make tests forward compatible
  fix typo
2019-07-24 21:56:58 +02:00
Christian Flothmann da6aca66f5 minor #32728 relax some assertions to make tests forward compatible (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

relax some assertions to make tests forward compatible

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

Commits
-------

c0eed67aa8 relax some assertions to make tests forward compatible
2019-07-24 21:56:41 +02:00
Christian Flothmann c0eed67aa8 relax some assertions to make tests forward compatible 2019-07-24 21:39:07 +02:00
Christian Flothmann 83e7b45b6d fix typo 2019-07-24 20:15:30 +02:00
Christian Flothmann 6181df9a2d Merge branch '3.4' into 4.2
* 3.4:
  make tests forward compatible with DI 4.4
  Fix multiSelect ChoiceQuestion when answers have spaces
2019-07-24 19:13:20 +02:00
Christian Flothmann b33389266a minor #32724 [FrameworkBundle] make tests forward compatible with DI 4.4 (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] make tests forward compatible with DI 4.4

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

Commits
-------

affede122b make tests forward compatible with DI 4.4
2019-07-24 19:12:37 +02:00
Christian Flothmann affede122b make tests forward compatible with DI 4.4 2019-07-24 18:59:53 +02:00
Robin Chalas 1ce527a0ea bug #32503 Fix multiSelect ChoiceQuestion when answers have spaces (IceMaD)
This PR was merged into the 3.4 branch.

Discussion
----------

Fix multiSelect ChoiceQuestion when answers have spaces

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

Probleme is explained in the issue

Commits
-------

9104ef1d74 Fix multiSelect ChoiceQuestion when answers have spaces
2019-07-24 17:12:34 +02:00
Nicolas Grekas f7d8f1b478 Merge branch '3.4' into 4.2
* 3.4:
  fix inline handling when dumping tagged values
  [PropertyAccess] Fix PropertyAccessorCollectionTest
  Typo in web profiler
  relax some date parser patterns
  Avoid getting right to left style
2019-07-24 16:47:26 +02:00
IceMaD 9104ef1d74 Fix multiSelect ChoiceQuestion when answers have spaces 2019-07-24 16:46:41 +02:00
Nicolas Grekas 639041cefd bug #32688 [Yaml] fix inline handling when dumping tagged values (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Yaml] fix inline handling when dumping tagged values

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

Commits
-------

07590aeb95 fix inline handling when dumping tagged values
2019-07-24 16:39:08 +02:00
Christian Flothmann 07590aeb95 fix inline handling when dumping tagged values 2019-07-24 15:01:31 +02:00
Fabien Potencier 3f652f161b bug #32644 [WebProfileBundle] Avoid getting right to left style (Arman-Hosseini)
This PR was merged into the 3.4 branch.

Discussion
----------

[WebProfileBundle] Avoid getting right to left style

| Q             | A
| ------------- | ---
| Branch?       | >= 3.4 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | N/A   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | N/A <!-- required for new features -->

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

Commits
-------

162819fef3 Avoid getting right to left style
2019-07-24 12:33:03 +02:00
Fabien Potencier e06b0f04a6 bug #32700 [Messenger] Flatten collection of stamps collected by the traceable middleware (ogizanagi)
This PR was merged into the 4.2 branch.

Discussion
----------

[Messenger] Flatten collection of stamps collected by the traceable middleware

| Q             | A
| ------------- | ---
| Branch?       | 4.2 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | N/A   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | N/A

### before
![Capture d’écran 2019-07-24 à 10 04 07](https://user-images.githubusercontent.com/2211145/61776018-65a12680-adfa-11e9-9efd-bd6682a0a296.png)

![Capture d’écran 2019-07-24 à 09 57 59](https://user-images.githubusercontent.com/2211145/61775695-b1070500-adf9-11e9-9bab-ac740f296684.png)

### after

![Capture d’écran 2019-07-24 à 09 57 37](https://user-images.githubusercontent.com/2211145/61775694-b1070500-adf9-11e9-95bf-14dc4d63c2ae.png)

Not sure how it qualifies, but I assume this wasn't entirely intentional when introducing the new `Envelope::all()` behavior in #29159.

Note it'll affect #32680 as well once merged.

Commits
-------

015fca7405 [Messenger] Flatten collection of stamps collected by the traceable middleware
2019-07-24 12:14:58 +02:00
Maxime Steinhausser 015fca7405 [Messenger] Flatten collection of stamps collected by the traceable middleware 2019-07-24 09:56:23 +02:00
Tobias Schultze 6a52744677 minor #32692 Typo in web profiler (GKFX)
This PR was merged into the 3.4 branch.

Discussion
----------

Typo in web profiler

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | no ticket
| License       | MIT
| Doc PR        | N/A

Fixes typo in web profiler. (NB: Despite the branch being created using the GitHub web editor, I have tested this on my machine with a real project.)

Commits
-------

84b3359adc Typo in web profiler
2019-07-24 07:54:48 +02:00
Tobias Schultze eab5d4fa0a minor #32690 [PropertyAccess] Fix PropertyAccessorCollectionTest (fancyweb)
This PR was merged into the 3.4 branch.

Discussion
----------

[PropertyAccess] Fix PropertyAccessorCollectionTest

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

In https://github.com/symfony/symfony/pull/32627, I (a script actually) removed 2 fixtures classes from this test class. They are actually used but by tests that don't fail without them 😁 (because they were mocked and it's possible to mock non existing classes).

This PR restores those 2 classes and remove the unneeded mocks so the tests use the real classes and are actually useful.

Commits
-------

a310bac624 [PropertyAccess] Fix PropertyAccessorCollectionTest
2019-07-24 07:54:16 +02:00
Thomas Calvet a310bac624 [PropertyAccess] Fix PropertyAccessorCollectionTest 2019-07-23 21:08:29 +02:00
George Bateman 84b3359adc
Typo in web profiler 2019-07-23 19:56:59 +01:00
Nicolas Grekas a2da86a622 bug #32679 [Intl] relax some date parser patterns (xabbuh)
This PR was merged into the 3.4 branch.

Discussion
----------

[Intl] relax some date parser patterns

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

While debugging the failures in #31374 I realised that the `IntlDateFormatter` from the Intl component parses dates more strictly than PHP's `IntlDateFormatter` class does.

Commits
-------

7d0793a944 relax some date parser patterns
2019-07-23 19:38:58 +02:00
Christian Flothmann 7d0793a944 relax some date parser patterns 2019-07-23 15:19:40 +02:00
Nicolas Grekas 6693104e5d minor #32677 [FrameworkBundle] ignore not existing translator service (xabbuh)
This PR was merged into the 4.2 branch.

Discussion
----------

[FrameworkBundle] ignore not existing translator service

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

Commits
-------

12bf0b07f8 ignore not existing translator service
2019-07-23 13:20:27 +02:00
Nicolas Grekas 9451217486 minor #32626 [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion (janvt)
This PR was squashed before being merged into the 4.2 branch (closes #32626).

Discussion
----------

[FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion

FrameworkBundle & SecurityBundle each had 2 classes called WebTestCase,
one of which is only meant for internal tests. To avoid confusion the internal
class has been renamed to AbstractWebTestCase and made abstract.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no (or, yes, but internal class)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32577
| License       | MIT

This PR is to ease integration, as not all test classes are present in all currently
maintained branches. This PR should patch relatively well onto 4.* branches.

See https://github.com/symfony/symfony/pull/32617

Commits
-------

01aaece8d8 [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion
2019-07-23 13:18:12 +02:00
Jan van Thoor 01aaece8d8 [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion 2019-07-23 13:18:00 +02:00
Christian Flothmann 12bf0b07f8 ignore not existing translator service 2019-07-23 13:15:07 +02:00
Nicolas Grekas 30a19863f9 Merge branch '3.4' into 4.2
* 3.4:
  [FrameworkBundle] [SecurityBundle] Rename internal WebTestCase to avoid confusion
  revert private properties handling
  [HttpFoundation] Fix URLs
  [VarDumper] finish PHP 7.4 support and add tests
  [VarDumper] Use \ReflectionReference for determining if a key is a reference (php >= 7.4)
  Ignore missing translation dependency in FrameworkBundle
  [Debug][ExceptionHandler] Add tests for custom handlers
2019-07-23 11:50:15 +02:00
Nicolas Grekas 789c33048e minor #32619 [Debug][ExceptionHandler] Add tests for custom handlers (fancyweb)
This PR was merged into the 3.4 branch.

Discussion
----------

[Debug][ExceptionHandler] Add tests for custom handlers

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

In https://github.com/symfony/symfony/pull/31694 I mixed many things but the whole PR was closed. I wrote some tests for custom handlers + the handle tests don't use mock anymore

I think they are useful even if the `ExceptionHandler` will disappear in the new component because it will still exists in 4.4 for the next 3 years.

Commits
-------

c53e25332a [Debug][ExceptionHandler] Add tests for custom handlers
2019-07-23 10:39:19 +02:00