Commit Graph

52012 Commits

Author SHA1 Message Date
Alexander M. Turek
0302332238 Merge branch '5.1' into 5.2
* 5.1:
  do not depend on the actual time to fix a transient test
  Run Redis Sentinel tests in GithubAction
  Minor : Removed typo (extra "the" term)
  Check if method inheritEnvironmentVariables exists
  [PhpUnitBridge] Fix test fixture file name
2020-11-18 10:58:20 +01:00
Alexander M. Turek
3e90720bc1 Merge branch '4.4' into 5.1
* 4.4:
  do not depend on the actual time to fix a transient test
  Run Redis Sentinel tests in GithubAction
  Minor : Removed typo (extra "the" term)
  Check if method inheritEnvironmentVariables exists
  [PhpUnitBridge] Fix test fixture file name
2020-11-18 10:42:36 +01:00
Alexander M. Turek
1f0a27a732 Merge branch '3.4' into 4.4
* 3.4:
  Minor : Removed typo (extra "the" term)
  [PhpUnitBridge] Fix test fixture file name
2020-11-17 20:45:34 +01:00
Alexander M. Turek
218269e1e7 minor #39101 [HttpKernel] do not depend on the actual time to fix a transient test (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] do not depend on the actual time to fix a transient test

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Commits
-------

b7e5c7d67d do not depend on the actual time to fix a transient test
2020-11-17 19:38:25 +01:00
Christian Flothmann
b7e5c7d67d do not depend on the actual time to fix a transient test 2020-11-17 19:23:54 +01:00
Fabien Potencier
3eec466502 bug #39083 [Dotenv] Check if method inheritEnvironmentVariables exists (Chi-teck)
This PR was merged into the 4.4 branch.

Discussion
----------

[Dotenv] Check if method inheritEnvironmentVariables exists

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #38201
| License       | MIT
| Doc PR        | -

Commits
-------

bd72a56505 Check if method inheritEnvironmentVariables exists
2020-11-17 06:58:42 +01:00
Fabien Potencier
728574d94f minor #39095 [Cache] Run Redis Sentinel tests in GithubAction (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Run Redis Sentinel tests in GithubAction

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Add support for Sentinel tests in GHA

Commits
-------

bd84394dc5 Run Redis Sentinel tests in GithubAction
2020-11-17 06:55:49 +01:00
Fabien Potencier
6564e0044d minor #39077 [PhpUnitBridge] Fix test fixture filename (fancyweb)
This PR was merged into the 3.4 branch.

Discussion
----------

[PhpUnitBridge] Fix test fixture filename

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | no
| License       | MIT
| Doc PR        | -

Fixes PHPUnit warning `Test case class not matching filename is deprecated`. I checked that the filename being different than the class name is not "required" for the test.

Commits
-------

c5a107e4cc [PhpUnitBridge] Fix test fixture file name
2020-11-17 06:50:42 +01:00
Alexander M. Turek
fb52afaf53 Merge branch '5.1' into 5.2
* 5.1:
  [Ldap] Fix undefined variable $con.
  Use GithubAction to run ldap tests
  Adds LDAP Adapter test in integration group
  Fix critical extension when reseting paged control
  Reinitialize globBrace after unserialization
2020-11-16 19:02:40 +01:00
Fabien Potencier
e3cce5102a minor #39093 [Finder] Minor : Removed typo (extra "the" term) in hasResults() method documentation (Levure)
This PR was merged into the 3.4 branch.

Discussion
----------

[Finder] Minor : Removed typo (extra "the" term) in hasResults() method documentation

| Q             | A
| ------------- | ---
| Branch?       | 3.4 (as recommended by https://symfony.com/doc/current/contributing/code/pull_requests.html#choose-the-right-branch)
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | no
| License       | MIT
| Doc PR        | no

Commits
-------

160cc6144c Minor : Removed typo (extra "the" term)
2020-11-16 18:38:26 +01:00
Alexander M. Turek
e05dc00d99 Merge branch '4.4' into 5.1
* 4.4:
  [Ldap] Fix undefined variable $con.
2020-11-16 18:33:12 +01:00
Alexander M. Turek
d6f27fa670 bug #39094 [Ldap] Fix undefined variable $con (derrabus)
This PR was merged into the 4.4 branch.

Discussion
----------

[Ldap] Fix undefined variable $con

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/pull/39030#issuecomment-728156901
| License       | MIT
| Doc PR        | N/A

This PR extracts the connection resource into a variable. This will fix an undefined variable error on 5.1.

Commits
-------

15da31686a [Ldap] Fix undefined variable $con.
2020-11-16 18:30:45 +01:00
Jérémy Derussé
bd84394dc5
Run Redis Sentinel tests in GithubAction 2020-11-16 18:15:10 +01:00
Alexander M. Turek
15da31686a [Ldap] Fix undefined variable $con. 2020-11-16 18:05:55 +01:00
Bruno Baguette
160cc6144c
Minor : Removed typo (extra "the" term) 2020-11-16 18:02:08 +01:00
Alexander M. Turek
3372b3ef96 Merge branch '4.4' into 5.1
* 4.4:
  Use GithubAction to run ldap tests
  Adds LDAP Adapter test in integration group
  Fix critical extension when reseting paged control
  Reinitialize globBrace after unserialization
2020-11-16 16:58:32 +01:00
Alexander M. Turek
55707fbcba minor #39030 [LDAP] Add ldap tests to github CI (lucasaba, jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[LDAP] Add ldap tests to github CI

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39028
| License       | MIT
| Doc PR        |

Adds LDAP test on github actions pipeline and corrects sum bugs in the LDAP Component test

It also adds a bug resolution from @Nek- made in #38875

Commits
-------

ea78f728b1 Use GithubAction to run ldap tests
af9562b12c Adds LDAP Adapter test in integration group
2020-11-16 16:51:33 +01:00
Jérémy Derussé
ea78f728b1
Use GithubAction to run ldap tests 2020-11-16 16:15:08 +01:00
Alexander M. Turek
cf70d3a180 bug #39091 [Config] Recheck glob brace support after GlobResource was serialized (wouterj)
This PR was merged into the 4.4 branch.

Discussion
----------

[Config] Recheck glob brace support after GlobResource was serialized

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

cc @bastnic

This bug was reported on Symfony Slack: `$this->globBrace` is set to `null` after unserialization from the `.meta` file.

Instead of serializing this property, I decided to reinitialize the property after unserialization. I think that's a safer option (e.g. it works when the cache is build on a different server with different globBrace support than the one running the application).

Commits
-------

d9534779cf Reinitialize globBrace after unserialization
2020-11-16 15:38:21 +01:00
Luca Saba
af9562b12c
Adds LDAP Adapter test in integration group
Adds ext-ldap on github-actions
2020-11-16 15:17:13 +01:00
Robin Chalas
beeafb1cb7 bug #39092 Fix critical extension when reseting paged control (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

Fix critical extension when reseting paged control

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

The issue has been introduced here in #38392 and prevent performing an operation after fetched a paginated result => ldap throws an `Could not XXX: Critical extension is unavailable`

At this line: https://github.com/symfony/symfony/pull/38392/files#diff-24b79f3ac1a99938f5acb158a450e38d30c1984a5d333b5b20f2c38a73d10e31L183, the previous code called `ldap_control_paged_result($con, 0);` using the default value (`false`) for the `$critical` argument.
The replaced version always use `true`.

This PR restore the previous behavior by using `false` when reseting the pagination.

Commits
-------

a2b74762a6 Fix critical extension when reseting paged control
2020-11-16 14:02:21 +01:00
Jérémy Derussé
a2b74762a6
Fix critical extension when reseting paged control 2020-11-16 12:50:58 +01:00
Wouter de Jong
d9534779cf Reinitialize globBrace after unserialization 2020-11-16 12:15:53 +01:00
Alexander M. Turek
5a9a7be6e5 Merge branch '5.1' into 5.2
* 5.1:
  remove unreachable code
  Update ExceptionEvent.php
  fix firebase transport factory DI tag type
  [HttpFoundation] Fix for virtualhosts based on URL path
2020-11-16 00:02:13 +01:00
Alexander M. Turek
a71bce881a Merge branch '4.4' into 5.1 2020-11-15 23:55:04 +01:00
Alexander M. Turek
091265bbbb bug #38614 [HttpFoundation] Fix for virtualhosts based on URL path (mvorisek)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Fix for virtualhosts based on URL path

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34866
| License       | MIT
| Doc PR        | no

This PR fixes base URL detection when:
- virtualhost is based on URL path
- AND local path does not match that URL virtual host path prefix

fix covered with tests

Commits
-------

75ff86811f [HttpFoundation] Fix for virtualhosts based on URL path
2020-11-15 23:42:48 +01:00
Chi-teck
bd72a56505 Check if method inheritEnvironmentVariables exists 2020-11-14 17:10:20 +00:00
Fabien Potencier
1f4625053c minor #39080 [Yaml] remove unreachable code (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] remove unreachable code

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

mistakenly added in #33658

Commits
-------

5907444e81 remove unreachable code
2020-11-14 16:22:22 +01:00
Fabien Potencier
3d5b877962 minor #39060 [BrowserKit] [Browserkit] Add changelog entry for request parameters string cast (chalasr)
This PR was merged into the 5.2 branch.

Discussion
----------

[BrowserKit] [Browserkit] Add changelog entry for request parameters string cast

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fixes #38651, Fixes #38591
| License       | MIT
| Doc PR        | -

Commits
-------

ec80507468 [Browserkit] Add changelog entry for request parameters string cast
2020-11-14 16:21:17 +01:00
Christian Flothmann
5907444e81 remove unreachable code 2020-11-14 15:49:24 +01:00
Robin Chalas
ec80507468 [Browserkit] Add changelog entry for request parameters string cast 2020-11-14 12:04:29 +01:00
Fabien Potencier
01a865f38d bug #39072 [FrameworkBundle] [Notifier] fix firebase transport factory DI tag type (xabbuh)
This PR was merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] [Notifier] fix firebase transport factory DI tag type

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39062
| License       | MIT
| Doc PR        |

Commits
-------

38145232ab fix firebase transport factory DI tag type
2020-11-14 08:26:21 +01:00
Alexander M. Turek
13abe4822d bug #39070 [Validator] Remove IsinValidator's validator dependency (derrabus)
This PR was merged into the 5.2 branch.

Discussion
----------

[Validator] Remove IsinValidator's validator dependency

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39069
| License       | MIT
| Doc PR        | N/A

Commits
-------

4cb7dec347 [Validator] Resolve IsinValidator's dependency on the validator.
2020-11-13 23:00:16 +01:00
Thomas Calvet
c5a107e4cc [PhpUnitBridge] Fix test fixture file name 2020-11-13 17:28:59 +01:00
Alexander M. Turek
7fba1e55c4 minor #39073 [HttpKernel] Update doc block on ExceptionEvent (noniagriconomie)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] Update doc block on ExceptionEvent

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | Doc Fix
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Related to the code https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/HttpKernel/Event/GetResponseForExceptionEvent.php#L63

Commits
-------

4e45d2da3b Update ExceptionEvent.php
2020-11-13 14:02:52 +01:00
Antoine Makdessi
4e45d2da3b
Update ExceptionEvent.php 2020-11-13 13:20:22 +01:00
Christian Flothmann
38145232ab fix firebase transport factory DI tag type 2020-11-13 12:10:43 +01:00
Christian Flothmann
cc130e1d9c Merge branch '5.1' into 5.2
* 5.1:
  prevent hash collisions caused by reused object hashes
  autoconfigure behavior describing tags on decorators
  [Validator][RecursiveContextualValidator] Prevent validated hash collisions
2020-11-13 10:44:33 +01:00
Christian Flothmann
355f18d34d Merge branch '4.4' into 5.1
* 4.4:
  prevent hash collisions caused by reused object hashes
  autoconfigure behavior describing tags on decorators
  [Validator][RecursiveContextualValidator] Prevent validated hash collisions
2020-11-13 10:37:26 +01:00
Christian Flothmann
c72f85333a bug #38387 [Validator] prevent hash collisions caused by reused object hashes (fancyweb, xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] prevent hash collisions caused by reused object hashes

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #36415
| License       | MIT
| Doc PR        |

Commits
-------

8dd1a6e545 prevent hash collisions caused by reused object hashes
9645fa39ec [Validator][RecursiveContextualValidator] Prevent validated hash collisions
2020-11-13 10:30:24 +01:00
Christian Flothmann
3834d76e11 bug #38999 [DependencyInjection] autoconfigure behavior describing tags on decorators (xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] autoconfigure behavior describing tags on decorators

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Commits
-------

73a3b838b7 autoconfigure behavior describing tags on decorators
2020-11-13 10:27:22 +01:00
Christian Flothmann
8dd1a6e545 prevent hash collisions caused by reused object hashes 2020-11-13 10:14:12 +01:00
Christian Flothmann
73a3b838b7 autoconfigure behavior describing tags on decorators 2020-11-13 10:09:04 +01:00
Alexander M. Turek
4cb7dec347 [Validator] Resolve IsinValidator's dependency on the validator. 2020-11-13 00:06:46 +01:00
Alexander M. Turek
873b0b4f53 Merge branch '5.1' into 5.2
* 5.1:
  Add tests on CacheDataCollector
  [ProxyManagerBridge] fix tests
  [ProxyManagerBridge] relax fixture in tests
  Fix circular detection with multiple paths
2020-11-12 23:35:35 +01:00
Alexander M. Turek
b8afc7cba3 Merge branch '4.4' into 5.1
* 4.4:
  Add tests on CacheDataCollector
  [ProxyManagerBridge] fix tests
  [ProxyManagerBridge] relax fixture in tests
  Fix circular detection with multiple paths
2020-11-12 23:25:33 +01:00
Alexander M. Turek
038497cb80 minor #38898 [Cache] Add tests on CacheDataCollector (ScullWM)
This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] Add tests on CacheDataCollector

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| License       | MIT
<!--
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/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - 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 5.x.
-->

The `calculateStatistics()` method of `Symfony\Component\Cache\DataCollector\CacheDataCollector` contain a lot of logic and manipulate multi-dimensional array that could be refactor with VO.

But before doing this, I would add test on this part.

Commits
-------

7b4310f045 Add tests on CacheDataCollector
2020-11-12 17:05:23 +01:00
Thomas P
7b4310f045 Add tests on CacheDataCollector 2020-11-12 16:25:20 +01:00
Nicolas Grekas
ecf9859609 [ProxyManagerBridge] fix tests 2020-11-12 14:19:35 +01:00
Nicolas Grekas
47041370c0 [ProxyManagerBridge] relax fixture in tests 2020-11-12 13:55:13 +01:00