Skip to content

[Filesystem] Added additional check for temporary file existence on cleanup step #39239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
3894 commits
Select commit Hold shift + click to select a range
713c262
[TwigBridge] Remove "transchoice" from the code base
nicolas-grekas Oct 22, 2020
a623492
bug #38686 [TwigBridge] Remove "transchoice" from the code base (nico…
fabpot Oct 23, 2020
e6f6b4c
Add Stopwatch on TraceableClient
jderusse Oct 23, 2020
1280e53
feature #38688 [HttpClient] Add a Stopwatch on TraceableHttpClient (j…
fabpot Oct 23, 2020
c6b32cd
add missing upgrade entries and fixed changelog
jschaedl Oct 23, 2020
d1c5739
minor #38691 [Notifier] Add missing upgrade entries and fixed changel…
fabpot Oct 24, 2020
8be261b
[RateLimiter] Rename RateLimiter to RateLimiterFactory
Nyholm Oct 22, 2020
1c81aa7
bug #38675 [RateLimiter] Rename RateLimiter to RateLimiterFactory (Ny…
chalasr Oct 24, 2020
552e704
[HttpClient] Adding missing dependency for dev
Nyholm Oct 24, 2020
f517cf1
minor #38703 [HttpClient] Adding missing dependency for dev (Nyholm)
nicolas-grekas Oct 24, 2020
65f2620
Merge branch '4.4' into 5.1
nicolas-grekas Oct 24, 2020
60e969e
fix merge
nicolas-grekas Oct 24, 2020
605a567
Merge branch '5.1' into 5.x
nicolas-grekas Oct 24, 2020
50a61b5
Merge branch '4.4' into 5.1
nicolas-grekas Oct 24, 2020
c417fd7
Merge branch '5.1' into 5.x
nicolas-grekas Oct 24, 2020
1e6cea5
[RateLimiter] Moved classes implementing LimiterInterface to a new na…
Nyholm Oct 21, 2020
fc615e9
feature #38664 [RateLimiter] Moved classes implementing LimiterInterf…
fabpot Oct 25, 2020
e80549b
Merge branch '4.4' into 5.1
fabpot Oct 25, 2020
fc5e6b1
Merge branch '5.1' into 5.x
fabpot Oct 25, 2020
37a2ff4
[Form] Added missing German translations.
derrabus Oct 25, 2020
a1fa430
minor #38714 [Form] Added missing German translations (derrabus)
fabpot Oct 25, 2020
f028d9e
Merge branch '4.4' into 5.1
derrabus Oct 25, 2020
eb6167c
Merge branch '5.1' into 5.x
derrabus Oct 25, 2020
e9dad88
Merge branch '4.4' into 5.1
derrabus Oct 25, 2020
eb8d909
Merge branch '5.1' into 5.x
derrabus Oct 25, 2020
5dd70bd
[Security] Move AbstractListener abstract methods to the new Firewall…
chalasr Oct 25, 2020
9376e87
[Security] Remove dead references to AnonymousAuthenticator
chalasr Oct 25, 2020
244867d
minor #38802 [Security] Remove dead references to AnonymousAuthentica…
derrabus Oct 25, 2020
5b2f88b
Merge branch '4.4' into 5.1
derrabus Oct 25, 2020
93d0276
Merge branch '5.1' into 5.x
derrabus Oct 25, 2020
0fd862e
Merge branch '4.4' into 5.1
nicolas-grekas Oct 26, 2020
72a6f84
Merge branch '5.1' into 5.x
nicolas-grekas Oct 26, 2020
a6dd1db
Merge branch '4.4' into 5.1
nicolas-grekas Oct 26, 2020
525900a
Merge branch '5.1' into 5.x
nicolas-grekas Oct 26, 2020
be1d560
Merge branch '4.4' into 5.1
nicolas-grekas Oct 26, 2020
dea07a3
Merge branch '5.1' into 5.x
nicolas-grekas Oct 26, 2020
8810d2d
Merge branch '4.4' into 5.1
nicolas-grekas Oct 27, 2020
d511893
Merge branch '5.1' into 5.x
nicolas-grekas Oct 27, 2020
bf13887
[HttpKernel] HttpKernelBrowser: don't set a default Accept header
dunglas Oct 27, 2020
27341b5
minor #38819 [HttpKernel] HttpKernelBrowser: don't set a default Acce…
nicolas-grekas Oct 27, 2020
824bc44
bug #38751 [Security] Move AbstractListener abstract methods to the n…
nicolas-grekas Oct 27, 2020
f7390bb
Merge branch '4.4' into 5.1
nicolas-grekas Oct 27, 2020
982bf94
Merge branch '5.1' into 5.x
nicolas-grekas Oct 27, 2020
37b1fae
[Console] Register signal handling only for commands implemeting Sign…
lyrixx Oct 27, 2020
7bb288e
Fix transient tests
jderusse Oct 25, 2020
9eed671
minor #38799 Fix transient tests on branch 5.2 (jderusse)
jderusse Oct 27, 2020
268b5b7
bug #38845 [Console] Register signal handling only for commands imple…
chalasr Oct 27, 2020
f1f44d4
Do not call getQueueUrl when the url is known
jderusse Oct 27, 2020
32cfd4d
Merge branch '4.4' into 5.1
fabpot Oct 28, 2020
9dac208
Merge branch '5.1' into 5.x
fabpot Oct 28, 2020
971f0e2
Update CHANGELOG for 5.1.8
fabpot Oct 28, 2020
78654e8
Update VERSION for 5.1.8
fabpot Oct 28, 2020
0fc79c4
Merge pull request #38853 from fabpot/release-5.1.8
fabpot Oct 28, 2020
b1cb5b3
Bump Symfony version to 5.1.9
fabpot Oct 28, 2020
0ef1cc3
Update CHANGELOG for 5.2.0-BETA3
fabpot Oct 28, 2020
d034e04
Update VERSION for 5.2.0-BETA3
fabpot Oct 28, 2020
90d2e55
Merge pull request #38854 from fabpot/release-5.2.0-BETA3
fabpot Oct 28, 2020
d8aa04f
Bump Symfony version to 5.2.0
fabpot Oct 28, 2020
9eb3681
Merge branch '4.4' into 5.1
fabpot Oct 28, 2020
abcc0b8
Merge branch '5.1' into 5.x
fabpot Oct 28, 2020
ef24b10
[FrameworkBundle] Fixing TranslationUpdateCommand failure when using …
liarco Oct 28, 2020
8c20b90
bug #38867 [FrameworkBundle] Fixing TranslationUpdateCommand failure …
fabpot Oct 28, 2020
294cffe
Merge branch '4.4' into 5.1
derrabus Oct 28, 2020
53f7f5f
Fix CS
derrabus Oct 28, 2020
0fee41a
Merge branch '5.1' into 5.x
derrabus Oct 28, 2020
0b8e506
Fix CS
derrabus Oct 28, 2020
a26dc09
[Console] Test degraded true colors
freezy-sk Oct 28, 2020
12578c2
minor #38866 [Console] Test degraded true colors (freezy-sk)
fabpot Oct 29, 2020
a29af81
Merge branch '4.4' into 5.1
derrabus Oct 29, 2020
9aac4f4
Merge branch '5.1' into 5.x
derrabus Oct 29, 2020
f33d16f
remove reflection-docblock from mime requirements
garak Oct 30, 2020
5701b8b
bug #38888 remove reflection-docblock from mime requirements (garak)
fabpot Oct 30, 2020
41311a9
Merge branch '4.4' into 5.1
derrabus Oct 30, 2020
6b1b12f
Merge branch '5.1' into 5.x
derrabus Oct 30, 2020
d6aea28
[HttpFoundation] Deprecate not passing a `Closure` together with `FIL…
nicolas-grekas Oct 28, 2020
176f52d
feature #38859 [HttpFoundation] Deprecate not passing a `Closure` tog…
derrabus Oct 30, 2020
890b16d
Fix transiant tests
jderusse Oct 28, 2020
052cdb1
Merge branch '4.4' into 5.1
derrabus Nov 1, 2020
ed92008
Merge branch '5.1' into 5.x
derrabus Nov 1, 2020
050f3e4
minor #38912 Fix transiant tests (jderusse)
fabpot Nov 1, 2020
deda2ac
[FrameworkBundle] Register AddErrorDetailsStampListener from the Mess…
jeroennoten Nov 1, 2020
fd4cdba
Merge branch '4.4' into 5.1
derrabus Nov 1, 2020
8bac7a0
Merge branch '5.1' into 5.x
derrabus Nov 1, 2020
ef221e8
[Console] Make error message more verbose
Nyholm Oct 31, 2020
f5bd922
feature #38919 [Console] Make error message more verbose (Nyholm)
fabpot Nov 1, 2020
7539597
Merge branch '4.4' into 5.1
fabpot Nov 1, 2020
86e5c56
Merge branch '5.1' into 5.x
fabpot Nov 1, 2020
e68da40
Merge branch '4.4' into 5.1
derrabus Nov 1, 2020
9dd2f6b
Merge branch '5.1' into 5.x
derrabus Nov 2, 2020
8d964bd
Merge branch '4.4' into 5.1
derrabus Nov 2, 2020
12a617f
Merge branch '5.1' into 5.x
derrabus Nov 2, 2020
aae9211
Merge branch '4.4' into 5.1
nicolas-grekas Nov 2, 2020
5bf6bbe
Merge branch '5.1' into 5.x
nicolas-grekas Nov 2, 2020
f0d9eeb
Merge branch '4.4' into 5.1
nicolas-grekas Nov 2, 2020
6ddb93d
Merge branch '5.1' into 5.x
nicolas-grekas Nov 2, 2020
7cf4dd6
Deprecate HEADER_X_FORWARDED_ALL constant
jderusse Nov 1, 2020
8a78dc2
[Notifier] Add unit tests for NullMessage, NullTransport and NullTran…
jschaedl Oct 27, 2020
0dfbeb4
minor #38842 [Notifier] Add unit tests for NullMessage, NullTransport…
jderusse Nov 2, 2020
d658164
minor #38941 [FrameworkBundle] Register AddErrorDetailsStampListener …
jderusse Nov 3, 2020
298422c
Merge branch '4.4' into 5.1
nicolas-grekas Nov 3, 2020
1cfd3ab
Merge branch '5.1' into 5.x
nicolas-grekas Nov 3, 2020
4541862
Merge branch '4.4' into 5.1
nicolas-grekas Nov 3, 2020
2d7e0b0
Merge branch '5.1' into 5.x
nicolas-grekas Nov 3, 2020
2ad1add
[Messenger] Improve formatting of thrown exception in show failed mes…
jeroennoten Nov 1, 2020
e5595da
[HttpClient] Check status code before decoding content in TraceableRe…
chalasr Nov 3, 2020
ff7ffdf
bug #38977 [HttpClient] Check status code before decoding content in …
nicolas-grekas Nov 3, 2020
6251c4e
feature #38954 [HttpFundation][FrameworkBundle] Deprecate the HEADER_…
fabpot Nov 4, 2020
d2bac32
feature #38940 [Messenger] Improve formatting of exception in failed …
fabpot Nov 4, 2020
57e39b4
feature #38850 [Messenger] Do not call getQueueUrl when the url is kn…
fabpot Nov 4, 2020
20714d6
[DoctrineBridge] accept converting Uid-as-strings to db-values
nicolas-grekas Nov 4, 2020
6ad0169
[Intl] deprecate polyfills in favor of symfony/polyfill-intl-icu
nicolas-grekas Nov 3, 2020
dc0d45d
bug #38986 [DoctrineBridge] accept converting Uid-as-strings to db-va…
fabpot Nov 5, 2020
2081035
Merge branch '4.4' into 5.1
derrabus Nov 5, 2020
5f25a6f
Merge branch '5.1' into 5.x
derrabus Nov 5, 2020
2c39acd
fix merge
chalasr Nov 5, 2020
8c81f33
Merge branch '4.4' into 5.1
derrabus Nov 7, 2020
5c5b8d6
Merge branch '5.1' into 5.x
derrabus Nov 7, 2020
e5492e2
[FrameworkBundle] Configure PHP Attributes without doctrine/annotations.
derrabus Nov 6, 2020
bc42cf6
[Messenger] Fix DBAL deprecations in PostgreSQLConnection
chalasr Nov 7, 2020
d553750
Allow user to override default options when extending the Choice Cons…
benji07 Nov 5, 2020
01316d6
bug #39026 [Messenger] Fix DBAL deprecations in PostgreSqlConnection …
chalasr Nov 7, 2020
245d041
Merge branch '4.4' into 5.1
chalasr Nov 7, 2020
f226d98
Merge branch '5.1' into 5.x
chalasr Nov 7, 2020
50c7c3d
bug #39002 [Validator] Override the default option of the choice cons…
ogizanagi Nov 7, 2020
7b4d22f
feature #39022 [FrameworkBundle] Allow to use attribute-based config…
derrabus Nov 7, 2020
441c806
[Validator] Allow load mappings from attributes without doctrine/anno…
derrabus Nov 7, 2020
77c82cf
feature #39032 [Validator] Allow load mappings from attributes withou…
fabpot Nov 8, 2020
6ebf7e1
Adds constants for YamlEncoder options
Nov 7, 2020
dfe60bb
minor #39029 Adds constants for YamlEncoder options (dbrumann)
fabpot Nov 9, 2020
6408987
Merge branch '4.4' into 5.1
fabpot Nov 9, 2020
47c2764
Merge branch '5.1' into 5.x
fabpot Nov 9, 2020
382d6fc
Merge branch '4.4' into 5.1
fabpot Nov 9, 2020
2994ef0
Merge branch '5.1' into 5.x
fabpot Nov 9, 2020
05e944b
Merge branch '4.4' into 5.1
xabbuh Nov 9, 2020
a9895ea
Merge branch '5.1' into 5.x
xabbuh Nov 9, 2020
9af554c
[Messenger] Fix JSON deserialization of ErrorDetailsStamp and normali…
Jean85 Nov 5, 2020
c721e02
bug #39004 [Messenger] Fix JSON deserialization of ErrorDetailsStamp …
fabpot Nov 10, 2020
b285584
updated version to 5.3
fabpot Nov 10, 2020
9c44a32
Update CHANGELOG for 5.2.0-RC1
fabpot Nov 10, 2020
f33a0d3
Update VERSION for 5.2.0-RC1
fabpot Nov 10, 2020
8de113e
Merge pull request #39043 from fabpot/release-5.2.0-RC1
fabpot Nov 10, 2020
5b3976a
Bump Symfony version to 5.2.0
fabpot Nov 10, 2020
7e3855d
feature #38974 [Intl] deprecate polyfills in favor of symfony/polyfil…
nicolas-grekas Nov 11, 2020
c0d4ed0
Bump branch-version
nicolas-grekas Nov 11, 2020
f0ff411
Merge branch '5.2' into 5.x
nicolas-grekas Nov 11, 2020
66edc59
[Messenger][SQS] Make sure one can enable debug logs
Nyholm Nov 5, 2020
1d945b9
feature #38998 [Messenger][SQS] Make sure one can enable debug logs (…
chalasr Nov 11, 2020
c2fa2cb
[BrowserKit] Add jsonRequest function to the browser-kit client
alexander-schranz Oct 16, 2020
16fb94b
feature #38596 [BrowserKit] Add jsonRequest function to the browser-k…
chalasr Nov 11, 2020
9bff2e7
Merge branch '4.4' into 5.1
jderusse Nov 12, 2020
fcc832b
Merge branch '5.1' into 5.2
jderusse Nov 12, 2020
9e5fefa
Merge branch '5.2' into 5.x
jderusse Nov 12, 2020
b8afc7c
Merge branch '4.4' into 5.1
derrabus Nov 12, 2020
873b0b4
Merge branch '5.1' into 5.2
derrabus Nov 12, 2020
430b916
Merge branch '5.2' into 5.x
derrabus Nov 12, 2020
4cb7dec
[Validator] Resolve IsinValidator's dependency on the validator.
derrabus Nov 12, 2020
355f18d
Merge branch '4.4' into 5.1
xabbuh Nov 13, 2020
cc130e1
Merge branch '5.1' into 5.2
xabbuh Nov 13, 2020
c82c997
Merge branch '5.2' into 5.x
xabbuh Nov 13, 2020
3814523
fix firebase transport factory DI tag type
xabbuh Nov 13, 2020
13abe48
bug #39070 [Validator] Remove IsinValidator's validator dependency (d…
derrabus Nov 13, 2020
01a865f
bug #39072 [FrameworkBundle] [Notifier] fix firebase transport factor…
fabpot Nov 14, 2020
ec80507
[Browserkit] Add changelog entry for request parameters string cast
chalasr Nov 11, 2020
3d5b877
minor #39060 [BrowserKit] [Browserkit] Add changelog entry for reques…
fabpot Nov 14, 2020
281af26
[Messenger] Make all the dependencies of AmazonSqsTransport injectable
jacekwilczynski Oct 26, 2020
b77ef9f
feature #38846 [Messenger] Make all the dependencies of AmazonSqsTran…
derrabus Nov 15, 2020
a71bce8
Merge branch '4.4' into 5.1
derrabus Nov 15, 2020
5a9a7be
Merge branch '5.1' into 5.2
derrabus Nov 15, 2020
2a453c2
Merge branch '5.2' into 5.x
derrabus Nov 15, 2020
46a8007
[Messenger] Allow InMemoryTransport to serialize message
tyx Nov 13, 2020
3372b3e
Merge branch '4.4' into 5.1
derrabus Nov 16, 2020
e05dc00
Merge branch '4.4' into 5.1
derrabus Nov 16, 2020
fb52afa
Merge branch '5.1' into 5.2
derrabus Nov 16, 2020
2fa9291
Merge branch '5.2' into 5.x
derrabus Nov 16, 2020
d3b9440
[Ldap] Ldap Entry case-sensitive attribute key option
karlshea Nov 8, 2020
3e90720
Merge branch '4.4' into 5.1
derrabus Nov 18, 2020
0302332
Merge branch '5.1' into 5.2
derrabus Nov 18, 2020
3c0cfbc
Merge branch '5.2' into 5.x
derrabus Nov 18, 2020
e39e844
Default to user provider, if available, in password upgrader
wouterj Nov 18, 2020
de09329
feature #39111 [Security] Update password upgrader listener to work w…
chalasr Nov 18, 2020
bdfc205
[DoctrineBridge] drop binary variants of UID types
nicolas-grekas Nov 18, 2020
c13d5b5
bug #39113 [DoctrineBridge] drop binary variants of UID types (nicola…
fabpot Nov 19, 2020
574a184
Require doctrine/persistence 2
greg0ire Nov 19, 2020
f0bbdc8
[Console][Yaml] Linter: add Github annotations format for errors
ogizanagi Nov 3, 2020
04eec8b
feature #38982 [Console][Yaml] Linter: add Github annotations format …
chalasr Nov 20, 2020
a273b71
feature #39075 [Messenger]  Allow InMemoryTransport to serialize mess…
chalasr Nov 20, 2020
9ce2e86
[HttpFoundation] Deprecate BinaryFileResponse::create().
derrabus Nov 20, 2020
4c6f4c7
[HttpFoundation] Typo on deprecation package name
andersonamuller Nov 20, 2020
fcbf0bf
Display debug info
jderusse Nov 20, 2020
09a79d3
minor #39121 [HttpFoundation] Typo on deprecation package name (ander…
derrabus Nov 21, 2020
ab9c4a7
bug #39131 [Cache] Fix CI because of Couchbase version (jderusse)
fabpot Nov 21, 2020
81e1192
Update CHANGELOG for 5.2.0-RC2
fabpot Nov 21, 2020
192b826
Update VERSION for 5.2.0-RC2
fabpot Nov 21, 2020
cbce537
Merge pull request #39133 from fabpot/release-5.2.0-RC2
fabpot Nov 21, 2020
af8bd4b
Bump Symfony version to 5.2.0
fabpot Nov 21, 2020
634d168
Merge branch '4.4' into 5.1
xabbuh Nov 21, 2020
bdadbf3
Merge branch '5.1' into 5.2
xabbuh Nov 21, 2020
49eafee
Merge branch '5.2' into 5.x
xabbuh Nov 21, 2020
79571e0
Removing AnonymousPassport
weaverryan Nov 22, 2020
ac2822f
minor #39138 [Security] Removing Unused AnonymousPassport (weaverryan)
chalasr Nov 22, 2020
449147b
Added Invalid constant into Command Class
TheGarious Nov 23, 2020
98cf389
fix denormalizing scalar with UnwrappingDenormalizer
camilledejoye Nov 26, 2020
b96d008
Merge branch '4.4' into 5.1
derrabus Nov 26, 2020
b047064
Fix test.
derrabus Nov 27, 2020
62184bd
Merge branch '5.1' into 5.2
derrabus Nov 27, 2020
a07b722
Merge branch '5.2' into 5.x
derrabus Nov 27, 2020
01bea3c
Support for SwitchUserToken instances serialized with 4.4/5.1.
derrabus Nov 27, 2020
3d384ba
bug #39180 [Serializer] Fix denormalizing scalar with UnwrappingDenor…
fabpot Nov 27, 2020
9f484e6
bug #39187 [Security] Support for SwitchUserToken instances serialize…
fabpot Nov 27, 2020
4346ef4
feature #39146 [Console] Added Invalid constant into Command Class (T…
fabpot Nov 27, 2020
7378b0b
feature #39128 [HttpFoundation] Deprecate BinaryFileResponse::create(…
fabpot Nov 27, 2020
ac25e8c
feature #39118 [DoctrineBridge] Require doctrine/persistence 2 (greg0…
fabpot Nov 27, 2020
a4b2bf8
feature #39037 [Ldap] Ldap Entry case-sensitive attribute key option …
fabpot Nov 27, 2020
3ac26fc
Remove extra docblock
fabpot Nov 27, 2020
4c74dea
Cache discovered namespaces in DomCrawler
simonberger Nov 16, 2020
a8e85ec
Make some CS changes
fabpot Nov 27, 2020
bd7a3e1
feature #39097 [DomCrawler] Cache discovered namespaces (simonberger,…
fabpot Nov 27, 2020
cab0672
[Security] Automatically register custom authenticator as entry_point…
wouterj Nov 23, 2020
df7099c
feature #39153 [Security] Automatically register custom authenticator…
fabpot Nov 27, 2020
a2691d3
Merge branch '5.2' into 5.x
fabpot Nov 27, 2020
16535b2
Merge branch '5.1' into 5.2
fabpot Nov 27, 2020
f0aa4e7
Merge branch '5.2' into 5.x
fabpot Nov 27, 2020
ce046fd
adjust KernelBrowser::getProfile() typehint
kbond Nov 27, 2020
c3d00db
Allow symfony/semaphore on PHP8
Nov 27, 2020
878a53b
minor #39200 [Semaphore] Allow symfony/semaphore on PHP8 (Michał Jusi…
derrabus Nov 27, 2020
e70ccfe
Merge branch '4.4' into 5.1
derrabus Nov 28, 2020
441ceec
minor #39198 [FrameworkBundle] [minor] adjust KernelBrowser::getProfi…
derrabus Nov 28, 2020
fd05da6
Merge branch '5.1' into 5.2
derrabus Nov 28, 2020
4981330
Merge branch '5.2' into 5.x
derrabus Nov 28, 2020
02d1632
[HttpClient] fix binding to network interfaces
nicolas-grekas Nov 28, 2020
a5c636c
Merge branch '4.4' into 5.1
nicolas-grekas Nov 28, 2020
a3da101
minor #39212 [HttpClient] fix binding to network interfaces (nicolas-…
nicolas-grekas Nov 28, 2020
fcea35b
Merge branch '5.1' into 5.2
nicolas-grekas Nov 28, 2020
cf31b29
Merge branch '5.2' into 5.x
nicolas-grekas Nov 28, 2020
9e83bb7
Fix form EntotyType with uid
jderusse Nov 28, 2020
8d512d9
[HttpClient] partial revert of previous commit
nicolas-grekas Nov 28, 2020
e271323
Merge branch '5.1' into 5.2
nicolas-grekas Nov 28, 2020
0c285d1
bug #39210 [DoctrineBridge] Fix form EntityType with filter on UID (j…
nicolas-grekas Nov 28, 2020
c31fc9d
Merge branch '5.2' into 5.x
nicolas-grekas Nov 28, 2020
9ff1436
Merge branch '4.4' into 5.1
derrabus Nov 28, 2020
d620f91
Merge branch '5.1' into 5.2
derrabus Nov 28, 2020
55a67ff
Merge branch '5.2' into 5.x
derrabus Nov 28, 2020
915e787
Update CHANGELOG for 5.1.9
fabpot Nov 29, 2020
a2efa61
Update VERSION for 5.1.9
fabpot Nov 29, 2020
84f32fe
Merge pull request #39216 from fabpot/release-5.1.9
fabpot Nov 29, 2020
d4ccae9
Bump Symfony version to 5.1.10
fabpot Nov 29, 2020
586f5b7
Merge branch '4.4' into 5.1
derrabus Nov 29, 2020
681b75c
Merge branch '5.1' into 5.2
derrabus Nov 29, 2020
f0dfb9e
Merge branch '5.2' into 5.x
derrabus Nov 29, 2020
085fd45
Added additional check for temporary file existence on cleanup step
gechetspr Nov 30, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions UPGRADE-5.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ HttpFoundation
--------------

* Deprecated not passing a `Closure` together with `FILTER_CALLBACK` to `ParameterBag::filter()`; wrap your filter in a closure instead.
* Deprecated the `Request::HEADER_X_FORWARDED_ALL` constant, use either `Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO` or `Request::HEADER_X_FORWARDED_AWS_ELB` or `Request::HEADER_X_FORWARDED_TRAEFIK`constants instead.

Lock
----
Expand Down
1 change: 1 addition & 0 deletions UPGRADE-6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ HttpFoundation
`RedirectResponse::create()`, and `StreamedResponse::create()` methods (use
`__construct()` instead)
* Not passing a `Closure` together with `FILTER_CALLBACK` to `ParameterBag::filter()` throws an `InvalidArgumentException`; wrap your filter in a closure instead.
* Removed the `Request::HEADER_X_FORWARDED_ALL` constant, use either `Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO` or `Request::HEADER_X_FORWARDED_AWS_ELB` or `Request::HEADER_X_FORWARDED_TRAEFIK`constants instead.

HttpKernel
----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testUsesRequestServerData()

public function testUseRequestClientIp()
{
Request::setTrustedProxies(['192.168.0.1'], Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies(['192.168.0.1'], Request::HEADER_X_FORWARDED_FOR);
[$event, $server] = $this->createRequestEvent(['X_FORWARDED_FOR' => '192.168.0.2']);

$processor = new WebProcessor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,12 @@ public function getConfigTreeBuilder()
->arrayNode('trusted_headers')
->fixXmlConfig('trusted_header')
->performNoDeepMerging()
->defaultValue(['x-forwarded-all', '!x-forwarded-host', '!x-forwarded-prefix'])
->defaultValue(['x-forwarded-for', 'x-forwarded-port', 'x-forwarded-proto'])
->beforeNormalization()->ifString()->then(function ($v) { return $v ? array_map('trim', explode(',', $v)) : []; })->end()
->enumPrototype()
->values([
'forwarded',
'x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port',
'x-forwarded-all', '!x-forwarded-host', '!x-forwarded-prefix',
])
->end()
->end()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2294,13 +2294,6 @@ private function resolveTrustedHeaders(array $headers): int
case 'x-forwarded-host': $trustedHeaders |= Request::HEADER_X_FORWARDED_HOST; break;
case 'x-forwarded-proto': $trustedHeaders |= Request::HEADER_X_FORWARDED_PROTO; break;
case 'x-forwarded-port': $trustedHeaders |= Request::HEADER_X_FORWARDED_PORT; break;
case '!x-forwarded-host': $trustedHeaders &= ~Request::HEADER_X_FORWARDED_HOST; break;
case 'x-forwarded-all':
if (!\in_array('!x-forwarded-prefix', $headers)) {
throw new LogicException('When using "x-forwarded-all" in "framework.trusted_headers", "!x-forwarded-prefix" must be explicitly listed until support for X-Forwarded-Prefix is implemented.');
}
$trustedHeaders |= Request::HEADER_X_FORWARDED_ALL;
break;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ protected static function getBundleDefaultConfig()
'secret' => 's3cr3t',
'trusted_hosts' => [],
'trusted_headers' => [
'x-forwarded-all',
'!x-forwarded-host',
'!x-forwarded-prefix',
'x-forwarded-for',
'x-forwarded-port',
'x-forwarded-proto',
],
'csrf_protection' => [
'enabled' => false,
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Component/HttpFoundation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ CHANGELOG
* added `Request::toArray()` to parse a JSON request body to an array
* added `RateLimiter\RequestRateLimiterInterface` and `RateLimiter\AbstractRequestRateLimiter`
* deprecated not passing a `Closure` together with `FILTER_CALLBACK` to `ParameterBag::filter()`; wrap your filter in a closure instead.
* Deprecated the `Request::HEADER_X_FORWARDED_ALL` constant, use either `HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO` or `HEADER_X_FORWARDED_AWS_ELB` or `HEADER_X_FORWARDED_TRAEFIK` constants instead.


5.1.0
-----
Expand Down
10 changes: 7 additions & 3 deletions src/Symfony/Component/HttpFoundation/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ class Request
const HEADER_X_FORWARDED_PORT = 0b010000;
const HEADER_X_FORWARDED_PREFIX = 0b100000;

const HEADER_X_FORWARDED_ALL = 0b011110; // All "X-Forwarded-*" headers sent by "usual" reverse proxy
const HEADER_X_FORWARDED_AWS_ELB = 0b011010; // AWS ELB doesn't send X-Forwarded-Host
const HEADER_X_FORWARDED_TRAEFIK = 0b111110; // All "X-Forwarded-*" headers sent by Traefik reverse proxy
/** @deprecated since Symfony 5.2, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead. */
const HEADER_X_FORWARDED_ALL = 0b1011110; // All "X-Forwarded-*" headers sent by "usual" reverse proxy
const HEADER_X_FORWARDED_AWS_ELB = 0b0011010; // AWS ELB doesn't send X-Forwarded-Host
const HEADER_X_FORWARDED_TRAEFIK = 0b0111110; // All "X-Forwarded-*" headers sent by Traefik reverse proxy

const METHOD_HEAD = 'HEAD';
const METHOD_GET = 'GET';
Expand Down Expand Up @@ -593,6 +594,9 @@ public function overrideGlobals()
*/
public static function setTrustedProxies(array $proxies, int $trustedHeaderSet)
{
if (self::HEADER_X_FORWARDED_ALL === $trustedHeaderSet) {
trigger_deprecation('symfony/http-fundation', '5.2', 'The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.');
}
self::$trustedProxies = array_reduce($proxies, function ($proxies, $proxy) {
if ('REMOTE_ADDR' !== $proxy) {
$proxies[] = $proxy;
Expand Down
42 changes: 31 additions & 11 deletions src/Symfony/Component/HttpFoundation/Tests/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace Symfony\Component\HttpFoundation\Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
use Symfony\Component\HttpFoundation\Exception\JsonException;
use Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException;
use Symfony\Component\HttpFoundation\InputBag;
Expand All @@ -22,6 +23,8 @@

class RequestTest extends TestCase
{
use ExpectDeprecationTrait;

protected function tearDown(): void
{
Request::setTrustedProxies([], -1);
Expand Down Expand Up @@ -867,7 +870,7 @@ public function testGetPort()

$this->assertEquals(80, $port, 'Without trusted proxies FORWARDED_PROTO and FORWARDED_PORT are ignored.');

Request::setTrustedProxies(['1.1.1.1'], Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies(['1.1.1.1'], Request::HEADER_X_FORWARDED_PROTO | Request::HEADER_X_FORWARDED_PORT);
$request = Request::create('http://example.com', 'GET', [], [], [], [
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_PORT' => '8443',
Expand Down Expand Up @@ -1091,7 +1094,7 @@ public function testGetClientIpsWithConflictingHeaders($httpForwarded, $httpXFor
'HTTP_X_FORWARDED_FOR' => $httpXForwardedFor,
];

Request::setTrustedProxies(['88.88.88.88'], Request::HEADER_X_FORWARDED_ALL | Request::HEADER_FORWARDED);
Request::setTrustedProxies(['88.88.88.88'], Request::HEADER_X_FORWARDED_FOR | Request::HEADER_FORWARDED);

$request->initialize([], [], [], [], [], $server);

Expand Down Expand Up @@ -1349,7 +1352,7 @@ public function testOverrideGlobals()

$request->headers->set('X_FORWARDED_PROTO', 'https');

Request::setTrustedProxies(['1.1.1.1'], Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies(['1.1.1.1'], Request::HEADER_X_FORWARDED_PROTO);
$this->assertFalse($request->isSecure());
$request->server->set('REMOTE_ADDR', '1.1.1.1');
$this->assertTrue($request->isSecure());
Expand Down Expand Up @@ -1830,7 +1833,7 @@ private function getRequestInstanceForClientIpTests(string $remoteAddr, ?string
}

if ($trustedProxies) {
Request::setTrustedProxies($trustedProxies, Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies($trustedProxies, Request::HEADER_X_FORWARDED_FOR);
}

$request->initialize([], [], [], [], [], $server);
Expand Down Expand Up @@ -1873,35 +1876,35 @@ public function testTrustedProxiesXForwardedFor()
$this->assertFalse($request->isSecure());

// disabling proxy trusting
Request::setTrustedProxies([], Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies([], Request::HEADER_X_FORWARDED_FOR);
$this->assertEquals('3.3.3.3', $request->getClientIp());
$this->assertEquals('example.com', $request->getHost());
$this->assertEquals(80, $request->getPort());
$this->assertFalse($request->isSecure());

// request is forwarded by a non-trusted proxy
Request::setTrustedProxies(['2.2.2.2'], Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies(['2.2.2.2'], Request::HEADER_X_FORWARDED_FOR);
$this->assertEquals('3.3.3.3', $request->getClientIp());
$this->assertEquals('example.com', $request->getHost());
$this->assertEquals(80, $request->getPort());
$this->assertFalse($request->isSecure());

// trusted proxy via setTrustedProxies()
Request::setTrustedProxies(['3.3.3.3', '2.2.2.2'], Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies(['3.3.3.3', '2.2.2.2'], Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);
$this->assertEquals('1.1.1.1', $request->getClientIp());
$this->assertEquals('foo.example.com', $request->getHost());
$this->assertEquals(443, $request->getPort());
$this->assertTrue($request->isSecure());

// trusted proxy via setTrustedProxies()
Request::setTrustedProxies(['3.3.3.4', '2.2.2.2'], Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies(['3.3.3.4', '2.2.2.2'], Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);
$this->assertEquals('3.3.3.3', $request->getClientIp());
$this->assertEquals('example.com', $request->getHost());
$this->assertEquals(80, $request->getPort());
$this->assertFalse($request->isSecure());

// check various X_FORWARDED_PROTO header values
Request::setTrustedProxies(['3.3.3.3', '2.2.2.2'], Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies(['3.3.3.3', '2.2.2.2'], Request::HEADER_X_FORWARDED_PROTO);
$request->headers->set('X_FORWARDED_PROTO', 'ssl');
$this->assertTrue($request->isSecure());

Expand Down Expand Up @@ -2377,7 +2380,7 @@ public function testTrustedPort()

public function testTrustedPortDoesNotDefaultToZero()
{
Request::setTrustedProxies(['1.1.1.1'], Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies(['1.1.1.1'], Request::HEADER_X_FORWARDED_FOR);

$request = Request::create('/');
$request->server->set('REMOTE_ADDR', '1.1.1.1');
Expand All @@ -2393,7 +2396,7 @@ public function testTrustedPortDoesNotDefaultToZero()
public function testTrustedProxiesRemoteAddr($serverRemoteAddr, $trustedProxies, $result)
{
$_SERVER['REMOTE_ADDR'] = $serverRemoteAddr;
Request::setTrustedProxies($trustedProxies, Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies($trustedProxies, Request::HEADER_X_FORWARDED_FOR);
$this->assertSame($result, Request::getTrustedProxies());
}

Expand Down Expand Up @@ -2464,6 +2467,23 @@ public function preferSafeContentData()
],
];
}

/**
* @group legacy
*/
public function testXForwarededAllConstantDeprecated()
{
$this->expectDeprecation('Since symfony/http-fundation 5.2: The "HEADER_X_FORWARDED_ALL" constant is deprecated, use either "HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO" or "HEADER_X_FORWARDED_AWS_ELB" or "HEADER_X_FORWARDED_TRAEFIK" constants instead.');

Request::setTrustedProxies([], Request::HEADER_X_FORWARDED_ALL);
}

public function testReservedFlags()
{
foreach ((new \ReflectionClass(Request::class))->getConstants() as $constant => $value) {
$this->assertNotSame(0b10000000, $value, sprintf('The constant "%s" should not use the reserved value "0b10000000".', $constant));
}
}
}

class RequestContentProxy extends Request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ public function testClientIpIsAlwaysLocalhostForForwardedRequests()
*/
public function testHttpCacheIsSetAsATrustedProxy(array $existing)
{
Request::setTrustedProxies($existing, Request::HEADER_X_FORWARDED_ALL);
Request::setTrustedProxies($existing, Request::HEADER_X_FORWARDED_FOR);

$this->setNextResponse();
$this->request('GET', '/', ['REMOTE_ADDR' => '10.0.0.1']);
Expand Down