Commit Graph

52386 Commits

Author SHA1 Message Date
moldman
88c2b9be62 [String] Fix Notice when argument is empty string 2020-12-01 17:34:07 +02:00
moldman
2dfe342452 [Inflector] Fix Notice when argument is empty string 2020-12-01 17:29:30 +02:00
Christian Flothmann
668732305a fix lexing backslashes in single quoted strings 2020-12-01 15:29:09 +01:00
Alexander M. Turek
42f440ec25 bug #39263 [Security] more defensive PasswordMigratingListener (romaricdrigon)
This PR was merged into the 5.2 branch.

Discussion
----------

[Security] more defensive PasswordMigratingListener

| Q             | A
| ------------- | ---
| Branch?       | 5.2 (bug not here in 5.1.x)
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39262
| License       | MIT
| Doc PR        | /

This proposed fix makes `PasswordMigratingListener` code more robust. It should handle Passports which does not contain an `UserBadge`, as it is not enforced by `UserPassportInterface`. Developers should be free to implement different passports with different badges (as I did on my own project), and it shouldn't lead to a crash in *frameworkland*.

The issue became apparent in 5.2.0 exactly, as `PasswordMigratingListener` is now called in (almost) every login, as `PasswordUpgradeBadge` is automatically added.

Commits
-------

0222ed3a32 [Security] fix #39262, more defensive PasswordMigratingListener
2020-12-01 13:09:54 +01:00
Romaric Drigon
0222ed3a32 [Security] fix #39262, more defensive PasswordMigratingListener 2020-12-01 12:09:46 +01:00
Robin Chalas
0b48115fed bug #39261 [Security] fix #39249, default entry_point compiler pass was returning too early (romaricdrigon)
This PR was merged into the 5.2 branch.

Discussion
----------

[Security] fix #39249, default entry_point compiler pass was returning too early

| Q             | A
| ------------- | ---
| Branch?       | 5.2 (bug introduced in 5.2.0, after RC2)
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #39249
| License       | MIT
| Doc PR        | N/A

A `return` instead of `continue` was making compiler pass return after the first firewall. Hence subsequents firewalls never had a default entrypoint set.
This issue would occur with all firewalls, with any type of authenticator, though I saw it first with `http_basic` - because it is a bit more opaque and harder to debug.

Commits
-------

c3778050bd [Security] fix #39249, default entry_point compiler pass was returning too early
2020-12-01 10:40:15 +01:00
Grégoire Pineau
bd38cceaa8 [Workflow] Fixed case when the marking store is not defined 2020-12-01 10:12:38 +01:00
Alexander M. Turek
54d5139a2d minor #39260 [DomCrawler] Fix small typos in changelog (j0k3r)
This PR was merged into the 5.1 branch.

Discussion
----------

[DomCrawler] Fix small typos in changelog

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Fixing a small typos in CHANGELOG.
As these typos were introduced in 5.0 but that version is no longer maintained, I target 5.1.

Following https://github.com/symfony/symfony/pull/39231

Commits
-------

529bbaf0a9 Fix small typos
2020-12-01 09:55:11 +01:00
Romaric Drigon
c3778050bd [Security] fix #39249, default entry_point compiler pass was returning too early 2020-12-01 09:51:35 +01:00
Jérémy Benoist
529bbaf0a9
Fix small typos 2020-12-01 09:40:05 +01:00
Tomas
6687e23c7d Add ContextBlock for slack notifier 2020-12-01 08:48:46 +02:00
Alexander M. Turek
ff97b5f17b Merge branch '5.2' into 5.x
* 5.2:
  remove return type definition in order to avoid type juggling
2020-11-30 23:47:58 +01:00
Alexander M. Turek
0d9dd43ecc Merge branch '5.1' into 5.2
* 5.1:
  remove return type definition in order to avoid type juggling
2020-11-30 23:47:11 +01:00
Alexander M. Turek
e4f1b5be56 Merge branch '4.4' into 5.1
* 4.4:
  remove return type definition in order to avoid type juggling
2020-11-30 23:46:30 +01:00
Alexander M. Turek
e26893b122 [DependencyInjection] Fix container linter for union types. 2020-11-30 22:45:46 +01:00
Robin Chalas
27127a4bab bug #39247 [Security] remove return type definition in order to avoid type juggling (adeptofvoltron)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] remove return type definition in order to avoid type juggling

| Q             | A
| ------------- | ---
| Branch?       |4.4 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #39205  <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | <!-- 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/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.
-->
Everything described with details inrelated ticket

Commits
-------

668431fc09 remove return type definition in order to avoid type juggling
2020-11-30 18:58:27 +01:00
Alexander M. Turek
4f59d2f7c4 Merge branch '5.2' into 5.x
* 5.2:
  Added additional file existence check on temporary file cleanup for dumpFile method
  fix lexing inline sequences/mappings with trailing whitespaces
  Added test for issue 39229
  Bump Symfony version to 5.2.1
  Update VERSION for 5.2.0
  Update CHANGELOG for 5.2.0
  [Security] [DX] Automatically add PasswordUpgradeBadge + default support() impl in AbstractFormLoginAuthenticator
  [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 18:27:11 +01:00
Alexander M. Turek
0b8d634706 Merge branch '5.1' into 5.2
* 5.1:
  Added additional file existence check on temporary file cleanup for dumpFile method
  fix lexing inline sequences/mappings with trailing whitespaces
  Added test for issue 39229
  [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 18:15:52 +01:00
Tomas
472fa3b50a Fix checking slack section fields limit 2020-11-30 19:08:19 +02:00
Bernard van der Esch
668431fc09 remove return type definition in order to avoid type juggling 2020-11-30 18:07:19 +01:00
Alexander M. Turek
8bced673cc Merge branch '4.4' into 5.1
* 4.4:
  Added additional file existence check on temporary file cleanup for dumpFile method
  fix lexing inline sequences/mappings with trailing whitespaces
  Added test for issue 39229
  [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 18:05:38 +01:00
Robin Chalas
da65c57fb4 bug #39223 [Console] Re-enable hyperlinks in Konsole/Yakuake (OndraM)
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] Re-enable hyperlinks in Konsole/Yakuake

| Q             | A
| ------------- | ---
| Branch?       | 4.4 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #31809 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

Hyperlinks feature was broken in KDE's Konsole/Yakuake (#31809) and thus disabled by #31849.

But the feature has been recently [implemented](https://invent.kde.org/utilities/konsole/-/merge_requests/138), and is about to be released in KDE 20.12 on December 10th 2020, see [release notes](https://community.kde.org/Releases/20.12_Release_Notes#Konsole).

![obrazek](https://user-images.githubusercontent.com/793041/100556284-92dccf00-32a1-11eb-9907-f65c2eaa1335.png)

Tested in RC version and seems to be working fine. The feature is disabled by default (as per security concerns), but even when disabled, it just gracefully don't show the links.

Commits
-------

728edf36bf [Console] Enable hyperlinks in Konsole/Yakuake
2020-11-30 17:35:14 +01:00
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
Thomas Calvet
41158b8878 [PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file 2020-11-30 09:16:37 +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