Commit Graph

52262 Commits

Author SHA1 Message Date
Alexander M. Turek
f9e93342df bug #39241 [Yaml] fix lexing inline sequences/mappings with trailing whitespaces (Nyholm, xabbuh)
This PR was merged into the 4.4 branch.

Discussion
----------

[Yaml] fix lexing inline sequences/mappings with trailing whitespaces

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

Commits
-------

66bc898f61 fix lexing inline sequences/mappings with trailing whitespaces
b562a54e53 Added test for issue 39229
2020-11-30 17:34:03 +01:00
Alexander M. Turek
264b7fe58d bug #39243 [Filesystem] File existence check before calling unlink method (gechetspr)
This PR was merged into the 4.4 branch.

Discussion
----------

[Filesystem] File existence check before calling unlink method

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/issues/39235
| License       | MIT
| Doc PR        | symfony/symfony-docs#...

Added additional file existence check on temporary file cleanup for `Filesystem::dumpFile()` method.

Commits
-------

520a10c221 Added additional file existence check on temporary file cleanup for dumpFile method
2020-11-30 14:49:51 +01:00
gechetspr
520a10c221 Added additional file existence check on temporary file cleanup for dumpFile method 2020-11-30 15:04:35 +02:00
Christian Flothmann
66bc898f61 fix lexing inline sequences/mappings with trailing whitespaces 2020-11-30 13:49:14 +01:00
Nyholm
b562a54e53
Added test for issue 39229 2020-11-30 13:01:48 +01:00
Fabien Potencier
6440b70b31 Bump Symfony version to 5.2.1 2020-11-30 06:59:51 +01:00
Fabien Potencier
8b51547061
Merge pull request #39224 from fabpot/release-5.2.0
released v5.2.0
2020-11-30 06:56:34 +01:00
Fabien Potencier
25acc0b5df Update VERSION for 5.2.0 2020-11-30 06:54:18 +01:00
Fabien Potencier
d5477fe2fa Update CHANGELOG for 5.2.0 2020-11-30 06:53:11 +01:00
Fabien Potencier
ffd365bb5e feature #39213 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator (wouterj)
This PR was squashed before being merged into the 5.2 branch.

Discussion
----------

[Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator

| Q             | A
| ------------- | ---
| Branch?       | 5.2 (hopefully? sorry to keep pushing the barrier here)
| Bug fix?      | no
| New feature?  | yes (sort of)
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

These are 2 suggestions we found while implementing `make:auth` for the new system (https://github.com/symfony/maker-bundle/pull/736):

Impact on a custom login form authenticator ([as generated by the new maker](https://github.com/symfony/maker-bundle/pull/736/files#diff-528164b6c24778d5e81fa3819b0552f0e68a9fea33c7d3446a012f3da7d0af60)):

* **Automatically add `PasswordUpgradeBadge`** if there is a user password with valid password credentials.
   ```diff
    // ...
    return new Passport(
        new UserBadge($userIdentifier),
        new PasswordCredentials($password),
        [
   -        new PasswordUpgradeBadge($password),
            new CsrfTokenBadge('authenticate', $csrf),
        ]
    )
   ```
   Note that this does not automatically migrate all passwords: it still relies on `PasswordUpgraderInterface` to be implemented on the user loader/provider.
* **Add default implementation of `AbstractFormLoginAuthenticator::support()`**
   ```diff
   - public function supports(Request $request): ?bool
   -  {
   -      return self::LOGIN_ROUTE === $request->attributes->get('_route')
   -          && $request->isMethod('POST');
   - }
   ```

cc @weaverryan @jrushlow

Commits
-------

27450c0bb4 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator
2020-11-30 06:47:07 +01:00
Wouter de Jong
27450c0bb4 [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator 2020-11-30 06:46:27 +01:00
Ondřej Machulda
728edf36bf
[Console] Enable hyperlinks in Konsole/Yakuake 2020-11-30 00:58:52 +01:00
Alexander M. Turek
f0dfb9eefe Merge branch '5.2' into 5.x
* 5.2:
  Bump Symfony version to 5.1.10
  Update VERSION for 5.1.9
  Update CHANGELOG for 5.1.9
  Bump Symfony version to 4.4.18
  Update VERSION for 4.4.17
  Update CHANGELOG for 4.4.17
2020-11-29 23:31:46 +01:00
Alexander M. Turek
681b75c6c6 Merge branch '5.1' into 5.2
* 5.1:
  Bump Symfony version to 5.1.10
  Update VERSION for 5.1.9
  Update CHANGELOG for 5.1.9
  Bump Symfony version to 4.4.18
  Update VERSION for 4.4.17
  Update CHANGELOG for 4.4.17
2020-11-29 23:30:16 +01:00
Alexander M. Turek
586f5b72da Merge branch '4.4' into 5.1
* 4.4:
  Bump Symfony version to 4.4.18
  Update VERSION for 4.4.17
  Update CHANGELOG for 4.4.17
2020-11-29 23:21:56 +01:00
Martin Auswöger
8d368e1fe3 Fix bug with whitespace in Kernel::stripComments() 2020-11-29 22:29:34 +01:00
Fabien Potencier
d4ccae9b31 Bump Symfony version to 5.1.10 2020-11-29 10:31:15 +01:00
Fabien Potencier
84f32fe2ee
Merge pull request #39216 from fabpot/release-5.1.9
released v5.1.9
2020-11-29 10:28:09 +01:00
Fabien Potencier
a2efa61d2d Update VERSION for 5.1.9 2020-11-29 10:27:52 +01:00
Fabien Potencier
915e787d0f Update CHANGELOG for 5.1.9 2020-11-29 10:27:43 +01:00
Fabien Potencier
aa5ec20a0c Bump Symfony version to 4.4.18 2020-11-29 10:27:10 +01:00
Fabien Potencier
02562a0eff
Merge pull request #39215 from fabpot/release-4.4.17
released v4.4.17
2020-11-29 10:23:30 +01:00
Fabien Potencier
09df32693a Update VERSION for 4.4.17 2020-11-29 10:23:08 +01:00
Fabien Potencier
1694621f21 Update CHANGELOG for 4.4.17 2020-11-29 10:22:51 +01:00
Alexander M. Turek
55a67ff5b4 Merge branch '5.2' into 5.x
* 5.2:
  [Messenger] Fix mssql compatibility for doctrine transport.
2020-11-29 00:39:38 +01:00
Alexander M. Turek
d620f91025 Merge branch '5.1' into 5.2
* 5.1:
  [Messenger] Fix mssql compatibility for doctrine transport.
2020-11-29 00:28:16 +01:00
Alexander M. Turek
9ff1436a90 Merge branch '4.4' into 5.1
* 4.4:
  [Messenger] Fix mssql compatibility for doctrine transport.
2020-11-29 00:22:02 +01:00
Alexander M. Turek
42061de4e4 bug #39166 [Messenger] Fix mssql compatibility for doctrine transport. (bill moll)
This PR was merged into the 4.4 branch.

Discussion
----------

[Messenger] Fix mssql compatibility for doctrine transport.

Add logic for locking row for update when the doctrine dbal connection is sqlsrv. This is a quick and dirty solution, but it prevents the need to rewrite the logic due to doctrine dbal limitations.

See issue https://github.com/symfony/symfony/issues/39117

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

Commits
-------

37be094992 [Messenger] Fix mssql compatibility for doctrine transport.
2020-11-29 00:01:02 +01:00
bill moll
37be094992 [Messenger] Fix mssql compatibility for doctrine transport.
Add logic for locking row for update when the doctrine dbal connection is sqlsrv. This is a quick and dirty solution, but it prevents the need to rewrite the logic due to doctrine dbal limitations.

See issue https://github.com/symfony/symfony/issues/39117
2020-11-28 23:57:36 +01:00
Nicolas Grekas
c31fc9dbda Merge branch '5.2' into 5.x
* 5.2:
  [HttpClient] partial revert of previous commit
  Fix form EntotyType with uid
2020-11-28 14:47:15 +01:00
Nicolas Grekas
0c285d1d42 bug #39210 [DoctrineBridge] Fix form EntityType with filter on UID (jderusse)
This PR was merged into the 5.2 branch.

Discussion
----------

[DoctrineBridge] Fix form EntityType with filter on UID

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

Convert UUID and ULID to the right format in ORMQueryBuilder

/cc @nicolas-grekas

Commits
-------

9e83bb7634 Fix form EntotyType with uid
2020-11-28 14:47:02 +01:00
Nicolas Grekas
e2713235c1 Merge branch '5.1' into 5.2
* 5.1:
  [HttpClient] partial revert of previous commit
2020-11-28 14:45:20 +01:00
Nicolas Grekas
8d512d9819 [HttpClient] partial revert of previous commit 2020-11-28 14:45:11 +01:00
Jérémy Derussé
9e83bb7634
Fix form EntotyType with uid 2020-11-28 14:40:09 +01:00
Nicolas Grekas
cf31b29ea1 Merge branch '5.2' into 5.x
* 5.2:
  [HttpClient] fix binding to network interfaces
  [HttpClient] fix binding to network interfaces
2020-11-28 14:34:21 +01:00
Nicolas Grekas
fcea35b31d Merge branch '5.1' into 5.2
* 5.1:
  [HttpClient] fix binding to network interfaces
  [HttpClient] fix binding to network interfaces
2020-11-28 14:34:12 +01:00
Nicolas Grekas
a3da101204 minor #39212 [HttpClient] fix binding to network interfaces (nicolas-grekas)
This PR was merged into the 5.1 branch.

Discussion
----------

[HttpClient] fix binding to network interfaces

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

Continuing #39211 on 5.1

Commits
-------

02d16324a5 [HttpClient] fix binding to network interfaces
2020-11-28 14:33:51 +01:00
Nicolas Grekas
a5c636c80b Merge branch '4.4' into 5.1
* 4.4:
  [HttpClient] fix binding to network interfaces
2020-11-28 14:33:17 +01:00
Nicolas Grekas
02d16324a5 [HttpClient] fix binding to network interfaces 2020-11-28 14:32:28 +01:00
Nicolas Grekas
3e9f770e25 bug #39211 [HttpClient] fix binding to network interfaces (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpClient] fix binding to network interfaces

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

Fixes support for binding to local interfaces by adding support for [curl's `if!` prefix](https://curl.se/libcurl/c/CURLOPT_INTERFACE.html).

Commits
-------

faa1fd32f9 [HttpClient] fix binding to network interfaces
2020-11-28 14:31:15 +01:00
Nicolas Grekas
faa1fd32f9 [HttpClient] fix binding to network interfaces 2020-11-28 14:23:02 +01:00
Alexander M. Turek
4981330623 Merge branch '5.2' into 5.x
* 5.2:
  Fix parameter order
  [DependencyInjection] Fix circular in DI with lazy + byContruct loop
  Allow symfony/semaphore on PHP8
  adjust Client::getProfile() typehint
  adjust KernelBrowser::getProfile() typehint
  fix: resolving pt translation issues
  Update VERSION for 3.4.47
  Update CONTRIBUTORS for 3.4.47
  Update CHANGELOG for 3.4.47
  Add Romanian missing translations
  [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader
  fix lexing strings containing escaped quotation characters
  prevent duplicated error message for file upload limits
  ignore the pattern attribute for textareas
  fix: solving pt-br translation issues
2020-11-28 12:24:57 +01:00
Alexander M. Turek
fd05da651b Merge branch '5.1' into 5.2
* 5.1:
  Fix parameter order
  [DependencyInjection] Fix circular in DI with lazy + byContruct loop
  adjust Client::getProfile() typehint
  adjust KernelBrowser::getProfile() typehint
  fix: resolving pt translation issues
  Update VERSION for 3.4.47
  Update CONTRIBUTORS for 3.4.47
  Update CHANGELOG for 3.4.47
  Add Romanian missing translations
  [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader
  fix lexing strings containing escaped quotation characters
  prevent duplicated error message for file upload limits
  ignore the pattern attribute for textareas
  fix: solving pt-br translation issues
2020-11-28 12:24:18 +01:00
Alexander M. Turek
441ceecad6 minor #39198 [FrameworkBundle] [minor] adjust KernelBrowser::getProfile() typehint (kbond)
This PR was merged into the 5.1 branch.

Discussion
----------

[FrameworkBundle] [minor] adjust KernelBrowser::getProfile() typehint

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | n/a
| License       | MIT
| Doc PR        | n/a

`Profiler::loadProfileFromResponse()` can return `null`. Obviously having a return of `null|false` is unfortunate. Not sure what we can do about that...

Commits
-------

ce046fd120 adjust KernelBrowser::getProfile() typehint
2020-11-28 11:59:23 +01:00
Alexander M. Turek
e70ccfe55d Merge branch '4.4' into 5.1
* 4.4:
  Fix parameter order
  [DependencyInjection] Fix circular in DI with lazy + byContruct loop
  adjust Client::getProfile() typehint
  fix: resolving pt translation issues
  Update VERSION for 3.4.47
  Update CONTRIBUTORS for 3.4.47
  Update CHANGELOG for 3.4.47
  Add Romanian missing translations
  [DependencyInjection][Translator] Silent deprecation triggered by libxml_disable_entity_loader
  fix lexing strings containing escaped quotation characters
  prevent duplicated error message for file upload limits
  ignore the pattern attribute for textareas
  fix: solving pt-br translation issues
2020-11-28 11:57:20 +01:00
Alexander M. Turek
fe36f35d9b minor #39209 [Console] Fix parameter order (jderusse)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] Fix parameter order

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

Commits
-------

726f3616a8 Fix parameter order
2020-11-28 11:52:00 +01:00
Jérémy Derussé
726f3616a8
Fix parameter order 2020-11-28 11:15:42 +01:00
Nicolas Grekas
e57b5f2abf minor #39197 [Validation] updating pt translations (hugovms, cenoura)
This PR was merged into the 4.4 branch.

Discussion
----------

[Validation] updating pt translations

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

Finishing PR #38923

Commits
-------

4857be89d3 fix: resolving pt translation issues
935a3b23e2 fix: solving pt-br translation issues
2020-11-27 17:19:44 +01:00
Nicolas Grekas
7d7fa3e822 bug #39129 [DependencyInjection] Fix circular in DI with lazy + byContruct loop (jderusse)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fix circular in DI with lazy + byContruct loop

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

This fix another issue lazy service.
It partially revert #38980 and #39021

Initially, we trusted lazy services to be lazy and not beeing called while building the services graph
=> bug #38970 when lazy deps is injected in a factory, it may be consumed directly to build the object before the graph is fully built
Fixed by #38980 => lazy service are considered as "normal service"
=> bug #39015 some loop are not resolvable with "normal service", but it shouldn't be an issue when servie proxifyied
Fixed by #39021 => lazy service are considered as "normal service" except when proxyfied
=> bug #39120 some loop are not resolvable with "normal service", but it shouldn't be an issue because the lazy service is injected in the constructor and user

Fixed by this PR => that revert to the initial state. lazy service are trusted.
But now, The IterratorArgument injected in a factory (single exception) is not more considered as lazy

Commits
-------

54af139a4e [DependencyInjection] Fix circular in DI with lazy + byContruct loop
2020-11-27 16:54:06 +01:00
Jérémy Derussé
54af139a4e [DependencyInjection] Fix circular in DI with lazy + byContruct loop 2020-11-27 16:54:00 +01:00