Commit Graph

16254 Commits

Author SHA1 Message Date
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 f132197df6 feature #9360 [Finder] Fix finder date constraints and tests (ruian)
This PR was merged into the 2.5-dev branch.

Discussion
----------

[Finder] Fix finder date constraints and tests

Description:
When you search some files with date constraints, all folders are given, even if they are not in the date scope.

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

Commits
-------

4ccafa6 Fix finder date constraints and tests
2013-12-27 22:51:59 +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 c6b1c747b0 feature #9837 [Form] added getter to transformer chain (cordoval)
This PR was merged into the 2.5-dev branch.

Discussion
----------

[Form] added getter to transformer chain

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

Commits
-------

3565d96 added getter to transformer chain
2013-12-27 22:20:06 +01:00
Fabien Potencier ca1f3d7c82 bug #9720 [FrameworkBundle] avoid tables to have apparently long blank line breaks and be too far appart for long nested array params (cordoval)
This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes #9720).

Discussion
----------

[FrameworkBundle] avoid tables to have apparently long blank line breaks and be too far appart for long nested array params

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

This PR fixes the uncomfortable long parameter array dumps on the tables, if one needs to see the details of a parameter they can do so by inspecting the specific parameter rather than having all the info in the table and render it out of whack.

Commits
-------

a588ece avoid tables to have apparently long blank line breaks and be too far appart for long nested array params
2013-12-27 22:07:28 +01:00
Luis Cordova 9d89f1e16a avoid tables to have apparently long blank line breaks and be too far appart for long nested array params 2013-12-27 22:07:27 +01:00
Fabien Potencier 7a9ab2c79f feature #8305 Added MutableAclProvider::deleteSecurityIdentity (lavoiesl)
This PR was merged into the 2.5-dev branch.

Discussion
----------

Added MutableAclProvider::deleteSecurityIdentity

This provides a very simple function to enable the deletion of a SecurityIdentity.

Developers can add a listener on the delete of a user and remove all the related ACLs.
Foreign keys already ensure that the ACEs are properly deleted.

Among the problems of not deleting the SecurityIdentity:

* Inconsistent database, referring to a non-existent user.
* If a user is deleted and another is created with the same name, it will inherit all the old user’s ACEs

Not addressed by this PR: Changing a user’s username breaks the related ACLs. See #5787

See also: https://groups.google.com/forum/#!topic/symfony2/mGTXlTWiMs8/discussion

Commits
-------

bdbbe58 [Security][Acl] Issue #5787 : Added MutableAclProvider::deleteSecurityIdentity
2013-12-27 17:31:41 +01:00
Fabien Potencier a4d423e4cd minor #8423 Update LocaleTest.php (mikemeier)
This PR was squashed before being merged into the 2.5-dev branch (closes #8423).

Discussion
----------

Update LocaleTest.php

de_CH locales does not fallback to de
see https://github.com/symfony/symfony/issues/5314

Commits
-------

572126b Update LocaleTest.php
2013-12-27 17:00:18 +01:00
Mike Meier 572126be07 Update LocaleTest.php 2013-12-27 17:00:16 +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
Fabien Potencier 694bd72611 Merge branch '2.4'
* 2.4: (44 commits)
  [FrameworkBundle] Add missing license headers
  Fix parent serialization of user object
  [DependencyInjection] fixed typo
  added condition to avoid skipping tests on JSON_PRETTY support
  add memcache, memcached, and mongodb extensions to run skipped tests
  [DependencyInjection] Fixed support for backslashes in service ids.
  fix #9356 [Security] Logger should manipulate the user reloaded from provider
  [FrameworkBundle] Added extra details in XMLDescriptor to improve container description
  fixed CS
  Crawler default namespace fix
  [BrowserKit] fixes #8311 CookieJar is totally ignorant of RFC 6265 edge cases
  [HttpFoundation] fixed constants that do exist in 2.3 (only in 2.4)
  fix 5528 let ArrayNode::normalizeValue respect order of value array provided
  fix #7243 allow 0 as arraynode name
  Fixed issue in BaseDateTimeTransformer when invalid timezone cause Transformation filed exception (closes #9403).
  BinaryFileResponse should also return 416 or 200 on some range-requets
  fix deprecated usage and clarify constructor defaults for number formatter
  Bumping dependency to ProxyManager to allow testing against the new 0.5.x branch changes
  Do normalization on tag options
  bumped Symfony version to 2.3.9
  ...
2013-12-26 08:59:17 +01:00
Fabien Potencier ef3ae9cf45 Merge branch '2.3' into 2.4
* 2.3: (31 commits)
  Fix parent serialization of user object
  [DependencyInjection] fixed typo
  add memcache, memcached, and mongodb extensions to run skipped tests
  [DependencyInjection] Fixed support for backslashes in service ids.
  fix #9356 [Security] Logger should manipulate the user reloaded from provider
  [BrowserKit] fixes #8311 CookieJar is totally ignorant of RFC 6265 edge cases
  [HttpFoundation] fixed constants that do exist in 2.3 (only in 2.4)
  fix 5528 let ArrayNode::normalizeValue respect order of value array provided
  fix #7243 allow 0 as arraynode name
  Fixed issue in BaseDateTimeTransformer when invalid timezone cause Transformation filed exception (closes #9403).
  BinaryFileResponse should also return 416 or 200 on some range-requets
  Do normalization on tag options
  bumped Symfony version to 2.3.9
  updated VERSION for 2.3.8
  update CONTRIBUTORS for 2.3.8
  updated CHANGELOG for 2.3.8
  [Filesystem] Changed the mode for a target file in copy() to be write only.
  [Console] fixed CS
  fixed TableHelper when cell value has new line
  Improved and fixed grammar mistakes. Added pluralized messages
  ...

Conflicts:
	src/Symfony/Component/BrowserKit/Cookie.php
	src/Symfony/Component/HttpKernel/Kernel.php
	src/Symfony/Component/Routing/Matcher/UrlMatcher.php
2013-12-26 08:59:03 +01:00
Fabien Potencier 6c0ec38a9b minor #9858 [FrameworkBundle] Add missing license headers (stloyd)
This PR was merged into the 2.4 branch.

Discussion
----------

[FrameworkBundle] Add missing license headers

| Q             | A
| ------------- | ---
| Bug fix?      |  kinda
| New feature?  | no

Commits
-------

4c74ea6 [FrameworkBundle] Add missing license headers
2013-12-24 15:17:37 +01:00
Joseph Bielawski 4c74ea62be [FrameworkBundle] Add missing license headers 2013-12-24 12:39:30 +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 6a51831678 feature #9846 [Console] hide output of ProgressHelper when isDecorated is false (kbond)
This PR was merged into the 2.5-dev branch.

Discussion
----------

[Console] hide output of ProgressHelper when isDecorated is false

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

Commits
-------

006cb81 [Console] show no output in ProgressHelper when isDecorated is false (fixes #9511)
2013-12-23 17:13:46 +01:00
Kevin Bond 006cb81205 [Console] show no output in ProgressHelper when isDecorated is false (fixes #9511) 2013-12-23 11:03:00 -05: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 8d39213f4c feature #8650 [Security][Acl] Add MutableAclProvider::updateUserSecurityIdentity (lemoinem)
This PR was merged into the 2.5-dev branch.

Discussion
----------

[Security][Acl] Add MutableAclProvider::updateUserSecurityIdentity

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #5787
| License       | MIT
| Doc PR        | symfony/symfony-docs#3319

This provides a very simple function to enable the update of a User's username while keeping its associated ACEs (by updating its corresponding UserSecurityIdentity)

Developers can add a listener on the preUpdate of a user and remove all the related ACLs:

```php
if ($args->hasChangedField('username')) {
    $aclProvider = $this->container->get('security.acl.provider');

    $oldUsername = $args->getOldValue ('username');
    $user        = $args->getEntity();

    $aclProvider->updateUserSecurityIdentity(UserSecurityIdentity::fromAccount($user) , $oldUsername);
}
```
Among the problems of not updating the UserSecurityIdentity:

- Inconsistent database, referring to a non-existent user.
- The user loses all its associated permissions
- If another user is created with the old username, it will inherit all the first user’s ACEs

This PR intends to fix Issue #5787 and is similar to and inspired from PR #8305.
This will also be heavily impacted by the outcome of #8848

Commits
-------

da53d92 [Security][Acl] Fix #5787 : Add MutableAclProvider::updateUserSecurityIdentity
2013-12-23 16:31:59 +01:00
Fabien Potencier 2b7af1245e feature #9843 [PropertyAccess] Allowed non alphanumeric chars in object properties (florianv)
This PR was merged into the 2.5-dev branch.

Discussion
----------

[PropertyAccess] Allowed non alphanumeric chars in object properties

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/8930
| License       | MIT
| Doc PR        |

Commits
-------

20d4eb6 [PropertyAccess] Allowed non alphanumeric chars in object properties
2013-12-23 16:28:54 +01:00
florianv 20d4eb6ad4 [PropertyAccess] Allowed non alphanumeric chars in object properties 2013-12-23 15:13:24 +01:00
Mathieu Lemoine da53d92188 [Security][Acl] Fix #5787 : Add MutableAclProvider::updateUserSecurityIdentity 2013-12-23 09:05:55 -05: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 d1ace04580 minor #9830 [WCM][Tests] Improve tests running with specific requirements (except intl icu) (cordoval)
This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes #9830).

Discussion
----------

[WCM][Tests] Improve tests running with specific requirements (except intl icu)

| 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
-------

6e0b2dc added condition to avoid skipping tests on JSON_PRETTY support
2013-12-22 16:57:41 +01:00
Luis Cordova 4b9d74d99c added condition to avoid skipping tests on JSON_PRETTY support 2013-12-22 16:57:40 +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
Luis Cordova 3565d96efc added getter to transformer chain 2013-12-22 03:11:18 -05:00
fabios 7528e4c3c6 Allow cache drivers that are not an EM's child 2013-12-21 11:37:09 -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 c0e4c4a4d1 bug #9816 [DependencyInjection] fixes #9815 Syntax error in PHP dumper (realityking)
This PR was merged into the 2.5-dev branch.

Discussion
----------

[DependencyInjection] fixes #9815 Syntax error in PHP dumper

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

I also updated the unit tests to test a namespaces class to prevent future issues like this one.

Commits
-------

e00b0f3 [DependencyInjection] fixes #9815 Syntax error in PHP dumper
2013-12-20 16:49:52 +01:00
Fabien Potencier ad8d8727d9 minor #9689 [Form] Improved debugger icon (sukei)
This PR was merged into the 2.4 branch.

Discussion
----------

[Form] Improved debugger icon

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

Changes the form icon in the toolbar to be pixel perfect.

| before                                                                                               | after                                                                                               |
| ---------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| ![before](https://f.cloud.github.com/assets/890645/1558707/8c4e2d42-4fa4-11e3-9397-376f761869a2.png) | ![after](https://f.cloud.github.com/assets/890645/1558708/90257844-4fa4-11e3-8a83-73d163d47261.png) |

Commits
-------

74e59fe Changes the form icon in the toolbar to be pixel perfect.
2013-12-20 16:43:57 +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
Rouven Weßling e00b0f34bd [DependencyInjection] fixes #9815 Syntax error in PHP dumper 2013-12-19 11:11:05 +01:00
Fabien Potencier baaf9b63cd feature #9792 [EventDispatcher][HttpKernel] Move RegisterListenersPass from HttpKernel to EventDispatcher. (realityking)
This PR was merged into the 2.5-dev branch.

Discussion
----------

[EventDispatcher][HttpKernel] Move RegisterListenersPass from HttpKernel to EventDispatcher.

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

I've been recently in the position to use the DependencyInjection Component and the EventDispatcher together but not HttpKernel. To make it easier to use these two together I propose moving RegisterListenersPass to the EventDispatcher component where the ContainerAwareEventDispatcher already resides.

Commits
-------

89b8e0a [EventDispatcher][HttpKernel] Move RegisterListenersPass from HttpKernel to EventDispatcher.
2013-12-18 18:23:40 +01:00
Rouven Weßling 89b8e0a949 [EventDispatcher][HttpKernel] Move RegisterListenersPass from HttpKernel to EventDispatcher. 2013-12-18 18:16:40 +01:00