Commit Graph

15458 Commits

Author SHA1 Message Date
Fabien Potencier
350656334f minor #9872 fixed acronyms (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

fixed acronyms

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

15baa81 fixed acronyms
2013-12-28 10:08:46 +01:00
Fabien Potencier
15baa81fdc fixed acronyms 2013-12-28 09:33:14 +01:00
Fabien Potencier
ec9c6e054a minor #9871 [Yaml] fixed some license headers (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

[Yaml] fixed some license headers

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Fixes lambdas once and for all.

Commits
-------

a2a6bd4 fixed a typo
35b407f fixed CS for lambdas
93edf44 [Yaml] fixed some license headers
2013-12-28 09:02:05 +01:00
Fabien Potencier
a2a6bd4dff fixed a typo 2013-12-28 08:54:52 +01:00
Fabien Potencier
35b407f016 fixed CS for lambdas 2013-12-28 08:46:05 +01:00
Fabien Potencier
93edf44950 [Yaml] fixed some license headers 2013-12-28 08:37:38 +01:00
Fabien Potencier
c9dd348947 bug #9865 [Validator] Fixes message value for objects (jongotlin)
This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #9865).

Discussion
----------

[Validator] Fixes message value for objects

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

7b69e9b [Validator] Fixes message value for objects
2013-12-27 22:53:59 +01:00
Jon Gotlin
78eeba8f01 Fixes message value for objects 2013-12-27 22:53:58 +01:00
Fabien Potencier
2997baae24 bug #9441 [Form][DateTimeToArrayTransformer] Check for hour, minute & second validity (egeloen)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9441).

Discussion
----------

[Form][DateTimeToArrayTransformer] Check for hour, minute & second validity

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9440
| License       | MIT
| Doc PR        | -

This PR checks if hour, minute & second values are valid in the datetime to array transformer (values must be integer if they exist).

Commits
-------

1543653 [Form][DateTimeToArrayTransformer] Check for hour, minute & second validity
2013-12-27 22:48:33 +01:00
Eric GELOEN
d0555f4498 Check for hour, minute & second validity 2013-12-27 22:48:33 +01:00
Fabien Potencier
04471c9916 minor #9869 fixed various typos (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

fixed various typos

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

2f15ac7 fixed various typos
2013-12-27 16:16:38 +01:00
Fabien Potencier
3949700e8f bug #9867 #9866 [Filesystem] Fixed mirror for symlinks (COil)
This PR was merged into the 2.3 branch.

Discussion
----------

#9866 [Filesystem] Fixed mirror for symlinks

| Q             | A
| ------------- | ---
| Bug fix?      | [yes]
| New feature?  | [no]
| BC breaks?    | [no]
| Deprecations? | [no]
| Tests pass?   | [yes]
| Fixed tickets | [#9866]
| License       | MIT
| Doc PR        | [NA]

Check the original ticket for the full description and how to reproduce.

The initial PR #9213 was closed.

Commits
-------

d136555 [Filesystem] Fixed mirror for symlinks
2013-12-27 16:15:39 +01:00
Fabien Potencier
2f15ac7507 fixed various typos 2013-12-27 16:08:19 +01:00
COil
d136555fc7 [Filesystem] Fixed mirror for symlinks 2013-12-27 14:13:43 +01:00
Fabien Potencier
c86e8c11e2 minor #9851 [Validator] Removed duplicated test for IBAN in data provider (stewe)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] Removed duplicated test for IBAN in data provider

Working on #9850, I spotted a duplicated value on `getValidIbans` data provider and I just removed the duplicated value.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

35610d0 [Validator] Removed duplicated test for IBAN in data provider
2013-12-26 09:07:40 +01:00
Stefano Sala
35610d0e8c [Validator] Removed duplicated test for IBAN in data provider 2013-12-23 19:08:15 +01:00
Stefano Sala
cf88ba58a6 [Validator] Fixed IBAN validator with 0750447346 value 2013-12-23 19:04:13 +01:00
Fabien Potencier
50c39b946b bug #9806 [Security] Fix parent serialization of user object (ddeboer)
This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #9806).

Discussion
----------

[Security] Fix parent serialization of user object

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

`parent::serialize()` and `parent::unserialize()`, which are used in the `AbstractToken` are [problematic](https://bugs.php.net/bug.php?id=62836) in PHP >= 5.4. [Cloning the object](https://gist.github.com/aurelijus/4713758) before serialization seems to fix this.

Commits
-------

e0bb891 [Security] Fix parent serialization of user object
2013-12-23 16:46:26 +01:00
David de Boer
2d64dfc872 Fix parent serialization of user object 2013-12-23 16:46:26 +01:00
Fabien Potencier
51316223fc minor #9842 [DependencyInjection] fixed typo (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

[DependencyInjection] fixed typo

Commits
-------

408d992 [DependencyInjection] fixed typo
2013-12-23 10:58:14 +01:00
Fabien Potencier
408d992a3f [DependencyInjection] fixed typo 2013-12-23 10:20:48 +01:00
Fabien Potencier
e9f67a7246 minor #9841 [Tests|WCM] add memcache, memcached, and mongodb extensions to run skipped tests (cordoval)
This PR was merged into the 2.3 branch.

Discussion
----------

[Tests|WCM] add memcache, memcached, and mongodb extensions to run skipped tests

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | na
| License       | MIT
| Doc PR        | na

 - [x] go over all skipped tests, take note and check they are reasonable
 - [x] reenable memcache, mongodb, and memcached

We are keeping the icu intl related tests skipped because setting up icu 51.2 is totally time consuming in travis and it would require a custom distro box on travis because there are no ppa's available for the ubuntu version. I tried hard but it does not seem worth it. Same for plugging beta of memcached with pecl, it is just not reasonable to be running beta versions on travis. This then does not address #9797 but at least now we are aware.

This PR now can be merged as is as it improves tests that before were not ran. Not all but more than before. 👶

Commits
-------

47a822d add memcache, memcached, and mongodb extensions to run skipped tests
2013-12-22 16:13:29 +01:00
Luis Cordova
47a822de07 add memcache, memcached, and mongodb extensions to run skipped tests 2013-12-22 09:51:57 -05:00
Fabien Potencier
1ecfd447c1 bug #9834 [DependencyInjection] Fixed support for backslashes in service ids. (jakzal)
This PR was merged into the 2.3 branch.

Discussion
----------

[DependencyInjection] Fixed support for backslashes in service ids.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9801
| License       | MIT
| Doc PR        |

This change is needed for consistency with `camelize()` which is used in [`ProxyDumper`](https://github.com/symfony/symfony/blob/2.3/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php#L69) and [`PhpDumper`](https://github.com/symfony/DependencyInjection/blob/2.3/Dumper/PhpDumper.php#L1275).

Either this PR needs to be merged for consistency or #9610 rolled back (if we don't want to support backslashes in service ids).

Anyone could tell me why we're not using the `camelize()` method internally in the `Container`?

Commits
-------

c6f210b [DependencyInjection] Fixed support for backslashes in service ids.
2013-12-21 15:14:48 +01:00
Jakub Zalas
c6f210b5ad [DependencyInjection] Fixed support for backslashes in service ids.
This change is for consistency with camelize() which is used in ProxyDumper and PhpDumper.
2013-12-20 22:29:30 +01:00
Fabien Potencier
0689cab2b9 bug #9826 fix #9356 [Security] Logger should manipulate the user reloaded from provider (matthieuauger)
This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #9826).

Discussion
----------

fix #9356 [Security] Logger should manipulate the user reloaded from provider

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9356
| License       | MIT

PR for well explained ticket #9356 by nikolajosipovic

Any feedback welcome, this is my first PR to symfony

Commits
-------

17b0b34 fix #9356 [Security] Logger should manipulate the user reloaded from provider
2013-12-20 16:43:18 +01:00
Matthieu Auger
eb86af961d fix #9356 [Security] Logger should manipulate the user reloaded from provider 2013-12-20 16:43:18 +01:00
Fabien Potencier
ba856e60bf bug #9769 [BrowserKit] fixes #8311 CookieJar is totally ignorant of RFC 6265 edge cases (jzawadzki)
This PR was squashed before being merged into the 2.3 branch (closes #9769).

Discussion
----------

[BrowserKit] fixes #8311 CookieJar is totally ignorant of RFC 6265 edge cases

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8311
| License       | MIT
| Doc PR        |

Commits
-------

3132b04 [BrowserKit] fixes #8311 CookieJar is totally ignorant of RFC 6265 edge cases
2013-12-17 09:03:37 +01:00
Jerzy Zawadzki
3132b0446c [BrowserKit] fixes #8311 CookieJar is totally ignorant of RFC 6265 edge cases 2013-12-17 09:03:36 +01:00
Fabien Potencier
faf2c8e97e [HttpFoundation] fixed constants that do exist in 2.3 (only in 2.4) 2013-12-17 09:02:48 +01:00
Fabien Potencier
978616acc1 bug #9697 [Config] fix 5528 let ArrayNode::normalizeValue respect order of value array provided (cordoval)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9697).

Discussion
----------

[Config] fix 5528 let ArrayNode::normalizeValue respect order of value array provided

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #5528
| License       | MIT
| Doc PR        | maybe a note @WouterJ ?

Commits
-------

019c553 [Config] fix 5528 let ArrayNode::normalizeValue respect order of value array provided
2013-12-17 08:49:53 +01:00
Luis Cordova
bee06e9c58 fix 5528 let ArrayNode::normalizeValue respect order of value array provided 2013-12-17 08:49:53 +01:00
Fabien Potencier
8b7d0e898b bug #9701 [Config] fix #7243 allow 0 as arraynode name (cordoval)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9701).

Discussion
----------

[Config] fix #7243 allow 0 as arraynode name

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7243
| License       | MIT
| Doc PR        | no need

Commits
-------

a49a5c8 [Config] fix #7243 allow 0 as arraynode name
2013-12-17 08:36:17 +01:00
Luis Cordova
2e0bf0e2e1 fix #7243 allow 0 as arraynode name 2013-12-17 08:36:17 +01:00
Fabien Potencier
d7288485e9 bug #9795 [Form] Fixed issue in BaseDateTimeTransformer when invalid timezone cause Trans... (tyomo4ka)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9795).

Discussion
----------

[Form] Fixed issue in BaseDateTimeTransformer when invalid timezone cause Trans...

...formation filed exception (closes #9403).

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | #9403
| License       | MIT
| Doc PR        |

DateTimeZone object creation could rise an exception. So in BaseDateTimeTransformer constructor we need to check if timezone is valid. If this exception is catched and rethrowed as TransformationFailed exception we have an issue: user will see "Invalid value" error in form, but issue is actually with php configuration or form type configuration.

Replaces #9772.

Commits
-------

3ece630 Fixed issue in BaseDateTimeTransformer when invalid timezone cause Transformation filed exception (closes #9403).
2013-12-17 08:19:12 +01:00
artem kolesnikov
0bbde05d8d Fixed issue in BaseDateTimeTransformer when invalid timezone cause Transformation filed exception (closes #9403). 2013-12-17 08:19:11 +01:00
Fabien Potencier
70b9df7860 bug #9714 [HttpFoundation] BinaryFileResponse should also return 416 or 200 on some range-requets (SimonSimCity)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9714).

Discussion
----------

[HttpFoundation] BinaryFileResponse should also return 416 or 200 on some range-requets

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

I read around in the docs and tried something with BinaryFileResponse ... There are two things I missed in the implementation here:

* If the range, provided in the query, does exceed the file-position, return an 416 (or 200 - I decided to take 416 here)
* If the range is logical invalid (f.e. to request from byte 50 to byte 30 ..) return 200 - OK

One decision I took in addition, is to provide a 200 code if the full file is requested. For me, it doesn't make sense here to return a 206 for just the complete file.

What I'm quite unsure about: Do we need some additional fields for these two options? I can remember reading something about a Content-Range for 416 but I was quite unsure what it should be ...

Commits
-------

d5dc317 [HttpFoundation] BinaryFileResponse should also return 416 or 200 on some range-requets
2013-12-16 20:50:59 +01:00
Simon Schick
57ee5193d0 BinaryFileResponse should also return 416 or 200 on some range-requets 2013-12-16 20:50:58 +01:00
Fabien Potencier
0af3d19c38 bug #9601 [Routing] Remove usage of deprecated _scheme requirement (Danez)
This PR was merged into the 2.3 branch.

Discussion
----------

[Routing] Remove usage of deprecated _scheme requirement

**This is exact the same commit as it was in #9585, which was not merged due to my fault. Sorry for the noise.**

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8898, #8176
| License       | MIT
| Doc PR        |

I removed all usages of the deprecated _scheme requirement inside the Routing Component.
Most parts were pretty easy and after multiple refactorings I came up with the solution to have a Route::hasScheme() method and check against this method.

I also checked for performance and after trying in_array, arra_flip+isset and foreach, the last one was clearly the winner.
https://gist.github.com/Danez/7609898#file-test_performance-php

I also adjusted all tests that test '_scheme' to also check the new schemes-requirement.

Commits
-------

557dfaa Remove usage of deprecated _scheme in Routing Component
2013-12-16 17:42:19 +01:00
Fabien Potencier
d56cc4b2cb bug #9489 [DependencyInjection] Add normalization to tag options (WouterJ)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9489).

Discussion
----------

[DependencyInjection] Add normalization to tag options

Currently, when using tags in XML, the options aren't normalized. This means that the following code is wrong:

    <tag name="sonata_admin" manager-type="doctrine_phpcr" ... />

It should be `manager_name` to remove errors, but that's not following the XML rules. The solution is to use the same normalization as the configuration: replacing - with _.

To be BC, both options (with and without normalization) are kept

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

06d64d8 Do normalization on tag options
2013-12-16 17:04:48 +01:00
Wouter J
06985eb123 Do normalization on tag options 2013-12-16 17:04:48 +01:00
Fabien Potencier
c05232fcfd bug #9135 [Form] [Validator] fix maxLength guesser (franek)
This PR was merged into the 2.3 branch.

Discussion
----------

[Form] [Validator] fix maxLength guesser

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9132
| License       | MIT
| Doc PR        |

- [ ] need to add unit tests on ValidatorTypeGuesser.php

Commits
-------

f232550 remove deprecated constraints calls (Min, Max, MaxLength, MinLength)
2013-12-16 17:00:48 +01:00
Fabien Potencier
eccd938479 bumped Symfony version to 2.3.9 2013-12-16 16:25:46 +01:00
Fabien Potencier
c6596413df bug #9790 [Filesystem] Changed the mode for a target file in copy() to be write only (jakzal)
This PR was merged into the 2.3 branch.

Discussion
----------

[Filesystem] Changed the mode for a target file in copy() to be write only

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9789
| License       | MIT
| Doc PR        | -

Stream wrappers like S3 [do not support w+](http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.S3.StreamWrapper.html) and we don't read here anyway (as pointed out in #9789).

Commits
-------

10e43b7 [Filesystem] Changed the mode for a target file in copy() to be write only.
2013-12-16 16:11:43 +01:00
Fabien Potencier
b0b421908d updated VERSION for 2.3.8 2013-12-16 15:36:05 +01:00
Fabien Potencier
189ca544d6 update CONTRIBUTORS for 2.3.8 2013-12-16 15:35:57 +01:00
Fabien Potencier
30934bb7ea updated CHANGELOG for 2.3.8 2013-12-16 15:35:27 +01:00
Jakub Zalas
10e43b7be8 [Filesystem] Changed the mode for a target file in copy() to be write only.
Stream wrappers like S3 do not support w+.
2013-12-16 11:23:38 +00:00
Fabien Potencier
dc79423d04 [Console] fixed CS 2013-12-15 19:46:51 +01:00
Fabien Potencier
2314a6b196 bug #9758 [Console] fixed TableHelper when cell value has new line (k-przybyszewski)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9758).

Discussion
----------

[Console] fixed TableHelper when cell value has new line

#9757

Commits
-------

2e14ba6 [Console] fixed TableHelper when cell value has new line
2013-12-15 19:44:57 +01:00