Commit Graph

54751 Commits

Author SHA1 Message Date
Roman Martinuk
965c6e4a2d [Security] Update Russian translations 2021-05-07 14:07:27 +02:00
Oskar Stark
ca46f10992 bug #40982 [Notifier] Fix return SentMessage then Messenger not used (WaylandAce)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Fix return SentMessage then Messenger not used

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

https://github.com/symfony/symfony/pull/37748 Broke the Notifier when Transport not used.

Commits
-------

1245114257 [Notifier] Fix return SentMessage then Messenger not used
2021-05-07 09:31:51 +02:00
Fabien Potencier
883899eb87 bug #40972 Avoid regenerating the remember me token if it is still fresh (Seldaek)
This PR was merged into the 5.3-dev branch.

Discussion
----------

Avoid regenerating the remember me token if it is still fresh

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | ~yes
| New feature?  | no?
| Deprecations? | no
| Tickets       | Refs https://github.com/symfony/symfony/issues/40971
| License       | MIT
| Doc PR        |  <!-- required for new features -->

Please see https://github.com/symfony/symfony/issues/40971 for more information about the context of this change.

As it was discussed in https://github.com/symfony/symfony/issues/18384 - regenerating the remember me token/cookie is done to avoid old cookies being stolen and reused, this is a valid concern (although cookie theft is much harder these days with httpOnly and secure flags) and a good security practice, but if the token was refreshed very recently it seems a bit overkill to refresh it again, it leads to more DB writes, and for us who are trying to support concurrent re-authenticating requests it is causing further problems if every request triggers a new token update.

I'd be happy to also update this in the old PersistentTokenBasedRememberMeServices if needed, but I find that it is perhaps better to just do this in the new auth system as it was until 5.3 considered experimental.

Commits
-------

a942b5f684 Avoid regenerating the remember me token if it is still fresh
2021-05-07 08:38:01 +02:00
Fabien Potencier
e5e68e5418 minor #41125 [DoctrineBridge] added missing ` (connorhu)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[DoctrineBridge] added missing `

| Q             | A
| ------------- | ---
| Branch?       | 5.x for features
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| License       | MIT

Commits
-------

e596f4da1e added missing `
2021-05-07 08:36:09 +02:00
Pavel Kirpitsov
1245114257 [Notifier] Fix return SentMessage then Messenger not used 2021-05-07 09:30:17 +03:00
Karoly Gossler
e596f4da1e
added missing ` 2021-05-06 23:33:47 +02:00
Nicolas Grekas
e51e651c4a bug #41072 [VarExporter] Add support of PHP enumerations (alexandre-daubois)
This PR was merged into the 4.4 branch.

Discussion
----------

[VarExporter] Add support of PHP enumerations

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

Commits
-------

4b0f2997a5 [VarExporter] Add support of PHP enumerations
2021-05-06 21:18:04 +02:00
Alexandre Daubois
4b0f2997a5 [VarExporter] Add support of PHP enumerations 2021-05-06 21:16:33 +02:00
Nicolas Grekas
ef2da6c887 feature #40992 [Notifier] Add SlackOptions::threadTs() to send message as reply (WaylandAce)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[Notifier] Add SlackOptions::threadTs() to send message as reply

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

Allow specify argument [thread_ts](https://api.slack.com/methods/chat.postMessage#arg_thread_ts) to send reply message.

Commits
-------

d3807a79b8 [Notifier] Add SlackOptions::threadTs() to send message as reply
2021-05-06 21:01:04 +02:00
Pavel Kirpitsov
d3807a79b8 [Notifier] Add SlackOptions::threadTs() to send message as reply 2021-05-06 20:59:07 +02:00
Fabien Potencier
72b6001f83 minor #41122 [Security] Added missing Japanese translations (kshida)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Added missing Japanese translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4<!-- see below -->
| 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 #41052 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| 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/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.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->
Added id19 and id20.
The indentation for id17 and id18 was incorrect, so I fixed it.
I hope it helps you :)

Commits
-------

26cd193085 [Security] Added missing Japanese translations
2021-05-06 18:44:07 +02:00
kshida
26cd193085 [Security] Added missing Japanese translations 2021-05-06 18:44:00 +02:00
Fabien Potencier
3f572553cf bug #41104 Fix return type in isAllowedProperty method on ReflectionExtractor class (Tomanhez)
This PR was merged into the 5.2 branch.

Discussion
----------

Fix return type in isAllowedProperty method on ReflectionExtractor class

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41103
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Commits
-------

8c0e8f7d83 Fix return type on isAllowedProperty method
2021-05-06 13:14:11 +02:00
Fabien Potencier
960891e756 bug #41078 [Notifier] Make FailoverTransport always pick the first transport (jschaedl)
This PR was merged into the 5.2 branch.

Discussion
----------

[Notifier] Make FailoverTransport always pick the first transport

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| 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 #40895 <!-- 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.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

Commits
-------

337f828b23 Make FailoverTransport always pick the first transport
2021-05-06 13:12:28 +02:00
Fabien Potencier
18e6e2d159 Fix CHANGELOG 2021-05-06 13:08:14 +02:00
Fabien Potencier
5b91b37ce6 feature #39157 [TwigBridge] Add form templates for Bootstrap 5 (ker0x)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[TwigBridge] Add form templates for Bootstrap 5

| Q             | A
| ------------- | ---
| Branch       | 5.x
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        | [#15158](https://github.com/symfony/symfony-docs/pull/15158)

This PR add support for [Bootstrap 5](https://v5.getbootstrap.com/)

* Removal of the `form-group` class as it no longer exists in Bootstrap 5. Instead, row `div` have a `mb-3` class by default that can be override with the `row_attr` option.
* Errors are no longer display inside `label` but after the `widget` (or `help` if present).
* Replace `form-control` with `form-select` in `choice_widget_collapsed` block.
* Replace `form-control` with `form-range` in `form_widget_simple` block when the type is `range`.
* Add `form-control-color` to the `widget` class if type is `color`.
* Replace `small` with `div` element for `help` and also remove the `text-muted` class.
* Update the `percent_widget` and `money_widget` to handle correctly prepend and append elements.
* Drop support for custom file input as it's no longer (or yet ?) supported in Bootstrap 5

[Bootstrap 5 forms overview](https://v5.getbootstrap.com/docs/5.0/forms/overview/)
[Bootstrap 5 migration](https://v5.getbootstrap.com/docs/5.0/migration/)

Here is the result:

![bootstrap_5_layout](https://user-images.githubusercontent.com/5331654/100088569-9e1e9d80-2e50-11eb-88bf-2596e9ae7d28.png)
![bootstrap_5_horizontal_layout](https://user-images.githubusercontent.com/5331654/100088582-a24abb00-2e50-11eb-9b0c-09336c0327cd.png)

Commits
-------

d52d0969ab [TwigBridge] Add form templates for Bootstrap 5
2021-05-06 13:07:32 +02:00
Romain Monteil
d52d0969ab [TwigBridge] Add form templates for Bootstrap 5 2021-05-06 13:07:27 +02:00
Fabien Potencier
beca689412 minor #41117 [Security] Add missing Italian translations (ramundomario)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Italian translations

| Q             | A
| ------------- | ---
| Branch?       | 4.4 <!-- see below -->
| 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 #41051 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A <!-- required for new features -->

Commits
-------

4dc5c82fa4 [Security] Add missing Italian translations #41051
2021-05-06 13:04:48 +02:00
Fabien Potencier
4c7a54ac08 minor #41079 [Security] Added missing Polish translations (ShiroRyokoshi)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Added missing Polish translations

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

The translations added were based off the english ones.
This is my first PR ever, I hope I didn't do any mistakes.

Commits
-------

774a1d35da [Security] Added missing Polish translations
2021-05-06 13:02:55 +02:00
Shiro
774a1d35da [Security] Added missing Polish translations 2021-05-06 13:02:50 +02:00
Mario Ramundo
4dc5c82fa4 [Security] Add missing Italian translations #41051 2021-05-05 22:22:20 +02:00
Alexander M. Turek
093b15c476 minor #41109 [HttpFoundation] Request::getProtocolVersion may return null (Jean85)
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Request::getProtocolVersion may return null

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

This is just a minor PHPDoc fix, but we stumbled on it in https://github.com/getsentry/sentry-symfony/pull/495, and static analysis complains about our fix.

Basically, `SERVER_PROTOCOL` may not be set, even if it shouldn't be missing according to [RFC 3875 (GCI spec)](https://tools.ietf.org/html/rfc3875#section-4.1.16). In our case, the user reported the issue because the request was issued interally by a pod health check inside Kubernetes.

Commits
-------

99aadb31ff getProtocolVersion may return null
2021-05-05 18:50:48 +02:00
Nyholm
f9deae095b
minor #41092 [Security] Missing translations pt_BR (rezehnde)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Missing translations pt_BR

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

Commits
-------

8c61c2273f [Security] Missing translations pt_BR
2021-05-05 10:05:55 +02:00
Marcos Rezende
8c61c2273f
[Security] Missing translations pt_BR 2021-05-05 10:05:48 +02:00
Alessandro Lai
99aadb31ff
getProtocolVersion may return null 2021-05-05 09:40:41 +02:00
Alexander M. Turek
55574de05c Merge branch '5.2' into 5.x
* 5.2:
  Fix tests
2021-05-04 20:29:22 +02:00
Alexander M. Turek
22292d59d3 Fix tests 2021-05-04 20:20:21 +02:00
Alexander M. Turek
5483e1158c bug #41022 [PasswordHasher] Improved BC layer (derrabus)
This PR was merged into the 5.3-dev branch.

Discussion
----------

[PasswordHasher] Improved BC layer

| Q             | A
| ------------- | ---
| Branch?       | 5.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #41020, Fix #41024
| License       | MIT
| Doc PR        | N/A

Commits
-------

0caad4f72d [PasswordHasher] Improved BC layer
2021-05-04 19:56:31 +02:00
Alexander M. Turek
ec33951582 Merge branch '5.2' into 5.x
* 5.2:
  [Inflector][String] Fixed singularize `edges` > `edge`
  ref #41087: missing turkish translations from security component
  Added translations for pt security file.
2021-05-04 19:55:50 +02:00
Alexander M. Turek
7be408a332 Merge branch '4.4' into 5.2
* 4.4:
  [Inflector][String] Fixed singularize `edges` > `edge`
  ref #41087: missing turkish translations from security component
  Added translations for pt security file.
2021-05-04 19:54:16 +02:00
Alexander M. Turek
21e9894c10 minor #41090 [Security] Added translations for pt security file. (Ana Raro)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Added translations for pt security file.

| Q             | A
| ------------- | ---
| Branch?       | 4.4<!-- see below -->
| 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 #41062 <!-- 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.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

Commits
-------

22aad3962c Added translations for pt security file.
2021-05-04 19:43:10 +02:00
Alexander M. Turek
c1e9ba8708 minor #41091 ref #41087: missing security turksih translations (Koray Zorluoglu)
This PR was merged into the 4.4 branch.

Discussion
----------

ref #41087: missing security turksih translations

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

Missing Türkish Translations from Security Component.

Commits
-------

af53ecd1fd ref #41087: missing turkish translations from security component
2021-05-04 19:42:08 +02:00
Alexander M. Turek
68ee96d371 bug #41105 [Inflector][String] Fixed singularize edges > edge (ruudk)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Inflector][String] Fixed singularize `edges` > `edge`

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

I noticed that calling `$inflector->singularize('edges');` returned `['edg', 'edges']`.

It should be `edge`, only. See https://en.wiktionary.org/wiki/edge

Commits
-------

ebfb0c9944 [Inflector][String] Fixed singularize `edges` > `edge`
2021-05-04 19:40:55 +02:00
Ruud Kamphuis
ebfb0c9944 [Inflector][String] Fixed singularize edges > edge 2021-05-04 19:40:47 +02:00
Alexander M. Turek
3ba3a867e0 Merge branch '5.2' into 5.x
* 5.2:
  [Security] Add missing Spanish translations
  [Security] Update Czech translations
  Expand `LockConflictedException` docs
2021-05-04 18:03:17 +02:00
Alexander M. Turek
24febfaae8 Merge branch '4.4' into 5.2
* 4.4:
  [Security] Add missing Spanish translations
  [Security] Update Czech translations
  Expand `LockConflictedException` docs
2021-05-04 18:02:46 +02:00
Alexander M. Turek
4d3768f324 minor #41100 [Security] Add missing Spanish translations (makraz)
This PR was merged into the 4.4 branch.

Discussion
----------

[Security] Add missing Spanish translations

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

Commits
-------

4e6e276d77 [Security] Add missing Spanish translations
2021-05-04 18:02:01 +02:00
Hamza Makraz
4e6e276d77 [Security] Add missing Spanish translations 2021-05-04 15:57:45 +00:00
Robin Chalas
98d3201add minor #41093 [Security] Update Czech translations (mhujer)
This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Security] Update Czech translations

| Q             | A
| ------------- | ---
| Branch?       | 5.x for features
| 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 #41040
| License       | MIT

Closes #41040

The translations are not perfect for some %minutes% values as the pluralization is more complicated in Czech than in English. (See: https://github.com/symfony/symfony/issues/40863#issuecomment-823928594)

Commits
-------

076310cfe3 [Security] Update Czech translations
2021-05-04 17:37:31 +02:00
Martin Hujer
076310cfe3 [Security] Update Czech translations
- closes #41040
- The translations are not perfect for some %minutes% values
   as the pluralization is more complicated in Czech than in English.
- See: https://github.com/symfony/symfony/issues/40863#issuecomment-823928594
2021-05-04 17:37:23 +02:00
Alexander M. Turek
b05f481ff4 minor #41107 [Lock] Expand LockConflictedException docs (NoelLH)
This PR was merged into the 4.4 branch.

Discussion
----------

[Lock] Expand `LockConflictedException` docs

The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes #40969

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

The goal of this tweak is to reduce the chance of bad assumptions about lock acquisition behaviour.

As per #40970 with suggested fixes, except now targeting the correct branch.

Commits
-------

2e4335fc70 Expand `LockConflictedException` docs
2021-05-04 17:32:16 +02:00
Tomanhez
8c0e8f7d83 Fix return type on isAllowedProperty method 2021-05-04 15:54:33 +02:00
Noel Light-Hilary
2e4335fc70 Expand LockConflictedException docs
The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes #40969
2021-05-04 13:06:07 +01:00
Robin Chalas
0abfb561b5 fix merge 2021-05-04 10:28:08 +02:00
Alexander M. Turek
1408af3be6 Merge branch '5.2' into 5.x
* 5.2:
  [Security] Add missing German translations
  [ErrorHandler] Skip "same vendor" `@method` deprecations for `Symfony\*` classes unless symfony/symfony is being tested
  [Security] Add missing Dutch translations
2021-05-03 22:28:15 +02:00
Alexander M. Turek
6e22f082c3 Merge branch '4.4' into 5.2
* 4.4:
  [Security] Add missing German translations
  [ErrorHandler] Skip "same vendor" `@method` deprecations for `Symfony\*` classes unless symfony/symfony is being tested
  [Security] Add missing Dutch translations
2021-05-03 22:27:30 +02:00
Alexander M. Turek
88dcf52964 bug #41075 [ErrorHandler] Skip "same vendor" `@method deprecations for Symfony\*` classes unless symfony/symfony is being tested (nicolas-grekas)
This PR was merged into the 4.4 branch.

Discussion
----------

[ErrorHandler] Skip "same vendor" ``@method`` deprecations for `Symfony\*` classes unless symfony/symfony is being tested

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | ref #40975 #40996 #40893
| License       | MIT
| Doc PR        |

Replaces #41001

Commits
-------

7a1a91017d [ErrorHandler] Skip "same vendor" ``@method`` deprecations for `Symfony\*` classes unless symfony/symfony is being tested
2021-05-03 22:26:13 +02:00
Alexander M. Turek
2f3519ba4f minor #41076 [Security] Add missing German translations (derrabus)
This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Security] Add missing German translations

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

Commits
-------

31bba079c3 [Security] Add missing German translations
2021-05-03 22:24:54 +02:00
Alexander M. Turek
31bba079c3 [Security] Add missing German translations 2021-05-03 22:24:48 +02:00
Alexander M. Turek
3f4144b6a5 bug #41096 Make Serializable implementation internal and final (derrabus)
This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

Make Serializable implementation internal and final

| Q             | A
| ------------- | ---
| Branch?       | 5.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | https://github.com/symfony/symfony/issues/41094#issuecomment-831354949
| License       | MIT
| Doc PR        | N/A

Commits
-------

a5e8e7d5e0 Make Serializable implementation internal and final
2021-05-03 22:23:47 +02:00