Commit Graph

5499 Commits

Author SHA1 Message Date
Christian Raue
7992ce6796 fixed German validator translation again (see #1676) 2011-07-13 06:59:52 -07:00
Christian Raue
374c53ab47 fixed German validator translation 2011-07-13 06:02:09 -07:00
Fabien Potencier
182f9e6508 [HttpFoundation] added population of the Authorization header based on the PHP_AUTH_* data 2011-07-13 14:12:03 +02:00
Jan Behrens
86b96f4f81 Added missing import of UserInterface. 2011-07-13 04:30:07 -07:00
Jan Behrens
88fd076133 Added missing import of UserProviderInterface. 2011-07-13 04:16:24 -07:00
Fabien Potencier
d80ee41130 Revert "merged branch yktd26/master (PR #1673)"
This reverts commit af70ac8d77, reversing
changes made to c881379fe7.
2011-07-13 12:21:56 +02:00
Fabien Potencier
af70ac8d77 merged branch yktd26/master (PR #1673)
Commits
-------

26ff05b fixes #1538

Discussion
----------

fixes #1538

Constructor of  Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity
--------------------------------------------------------------------------------------------------------

currently it check if the argument is instance of Symfony\Component\Security\Core\Role\Role by

``if ($role instanceof Role)``

Maybe it should be changed to

``if ($role instanceof RoleInterface)``

Because if we use another Role class which implements RoleInterface

it dosen't work when we check access, it will throw a *NoAceFoundException* when vote
2011-07-13 11:30:35 +02:00
Fabien Potencier
c881379fe7 merged branch marcw/doctrine-bridge-security (PR #1672)
Commits
-------

66c698a Updated update.md
b33e1ba [SecurityBundle] Reported namespace change of EntityUserProvider
26e96c4 [DoctrineBridge] Changed namespace of EntityUserProvider[B
1633cb3 [Security] Moved EntityUserProvider to Doctrine Bridge

Discussion
----------

[2.1] Moved EntityUserProvider class from Security Component to Doctrine Bridge

I guess that this should better be placed in the Doctrine Bridge.

---------------------------------------------------------------------------

by henrikbjorn at 2011/07/13 00:00:39 -0700

Missing entry in UPDATE.md

---------------------------------------------------------------------------

by schmittjoh at 2011/07/13 00:34:10 -0700

What is our distribution strategy for these bridges?

---------------------------------------------------------------------------

by stof at 2011/07/13 00:53:29 -0700

@schmittjoh Each bridge (Doctrine, Twig, Monolog) is available as a separate repo just like the components.

---------------------------------------------------------------------------

by schmittjoh at 2011/07/13 00:57:41 -0700

I've just checked, but we don't seem to have PEAR packages for these.

If we make this change, then it should still be easy to install the component because there is no benefit of moving this class there. The bridges are mainly useful for extracting code from bundles.

---------------------------------------------------------------------------

by stof at 2011/07/13 01:02:42 -0700

@fabpot any plan to add the bridges on the PEAR channel ?

---------------------------------------------------------------------------

by fabpot at 2011/07/13 02:27:05 -0700

@stof: Bridges will be added with the RC5 release.
2011-07-13 11:28:02 +02:00
yktd26
26ff05b333 fixes #1538 2011-07-13 10:28:34 +02:00
Fabien Potencier
68c07775ad [FrameworkBundle] fixed translation loading process when a file does not respect the expected pattern (avoid loading foo.fr.xliff~ for instance) 2011-07-13 09:23:43 +02:00
marc.weistroff
b33e1bae29 [SecurityBundle] Reported namespace change of EntityUserProvider 2011-07-13 08:46:21 +02:00
marc.weistroff
26e96c4ab0 [DoctrineBridge] Changed namespace of EntityUserProvider[B 2011-07-13 08:44:37 +02:00
marc.weistroff
1633cb30bd [Security] Moved EntityUserProvider to Doctrine Bridge 2011-07-13 08:41:17 +02:00
Fabien Potencier
451c737b97 merged branch jdreesen/validator-trans-update (PR #1670)
Commits
-------

eb77683 [FrameworkBundle] Updated German validator translation

Discussion
----------

[FrameworkBundle] Updated German validator translation
2011-07-13 07:39:15 +02:00
jdreesen
eb776835fc [FrameworkBundle] Updated German validator translation 2011-07-13 01:36:38 +02:00
Benjamin Eberlei
25ab8596da [DoctrineBundle] Add warning about inheritance not supported in entity generation 2011-07-12 23:35:07 +02:00
Joseph Bielawski
719034ff41 [Validator] Sync & fix polish translation 2011-07-12 12:06:54 -07:00
Fabien Potencier
053d2ec179 merged branch yethee/update_translations (PR #1661)
Commits
-------

ad2b224 [FrameworkBundle] Updated Russian translations.
95f7eed [FrameworkBundle] Fixed messages of the Choice constraint in all translations.

Discussion
----------

[FrameworkBundle] Fixes for all translations

Fixed the source messages of the choice contstraint for all translations, and re-sort messages.

And also updated Russian translations, added translations for all constraints.
2011-07-12 20:51:34 +02:00
Fabien Potencier
3825a842d7 [DoctrineBundle] fixed unit tests for previous merge 2011-07-12 20:16:16 +02:00
Deni
ad2b224637 [FrameworkBundle] Updated Russian translations. 2011-07-12 22:10:41 +04:00
Fabien Potencier
362aa330b0 merged branch geoffreytran/master (PR #1655)
Commits
-------

91cfb24 Made namespace for Doctrine cache unique to each environment

Discussion
----------

Made the cache namespace for the Doctrine cache extension unique to each environment

The current cache namespace for the Doctrine adapters is unique on an entity manager and the kernel root directory; however, it causes problems as settings for entity managers can differ between environments, so the addition of the environment into the namespace would address the issue.

        $namespace = 'sf2orm_'.$entityManager['name'].'_'.md5($container->getParameter('kernel.root_dir'));

Solves issues with the cache not being valid for the DBAL ACL provider using D2 as the cache and switching environments.

        An exception has been thrown during the rendering of a template ("Warning: Illegal offset type in isset or  empty in ../vendor/symfony/src/Symfony/Component/Security/Acl/Dbal/AclProvider.php line 404")
2011-07-12 20:08:56 +02:00
Fabien Potencier
121a407f05 merged branch stloyd/patch-2 (PR #1656)
Commits
-------

31317cc [Validator] Sync polish translation

Discussion
----------

[Validator] Sync polish translation
2011-07-12 20:06:30 +02:00
Fabien Potencier
582dda5c85 merged branch vicb/fmwk/ide (PR #1657)
Commits
-------

df34e0e [FrameworkBundle] Fix for setting a custom file link format (fixes #1652)

Discussion
----------

[FrameworkBundle] Fix for setting a custom file link format (fixes #1652)

[FrameworkBundle] Fix for setting a custom file link format (fixes #1652)
2011-07-12 20:06:08 +02:00
Fabien Potencier
5cb165c259 merged branch aboks/dutch_translations (PR #1658)
Commits
-------

2227e41 Fixed incorrect indentation
85b6985 [FrameworkBundle] Sync'ed Dutch validator translations

Discussion
----------

[FrameworkBundle] Sync'ed Dutch validator translations
2011-07-12 20:05:34 +02:00
Fabien Potencier
07ddff5862 merged branch jdreesen/validator-trans-update (PR #1654)
Commits
-------

6d87e67 [FrameworkBundle] Updated German validator translation

Discussion
----------

[FrameworkBundle] Updated German validator translation
2011-07-12 20:04:55 +02:00
Deni
95f7eedd63 [FrameworkBundle] Fixed messages of the Choice constraint in all translations. 2011-07-12 21:54:08 +04:00
Arnout Boks
2227e41b7e Fixed incorrect indentation 2011-07-12 19:24:25 +02:00
Arnout Boks
85b6985eb0 [FrameworkBundle] Sync'ed Dutch validator translations 2011-07-12 19:08:04 +02:00
Victor Berchet
df34e0eb29 [FrameworkBundle] Fix for setting a custom file link format (fixes #1652) 2011-07-12 19:01:49 +02:00
Joseph Bielawski
31317ccf61 [Validator] Sync polish translation 2011-07-12 09:57:21 -07:00
jdreesen
6d87e6715d [FrameworkBundle] Updated German validator translation 2011-07-12 18:51:04 +02:00
Geoffrey Tran
91cfb24e40 Made namespace for Doctrine cache unique to each environment
Solves issues with the cache not being valid for the DBAL ACL provider using D2 as the cache and switching environments.

An exception has been thrown during the rendering of a template ("Warning: Illegal offset type in isset or empty in ../vendor/symfony/src/Symfony/Component/Security/Acl/Dbal/AclProvider.php line 404")
2011-07-12 11:50:37 -05:00
marc.weistroff
dc14f68171 Added fr translation. 2011-07-12 18:08:54 +02:00
Fabien Potencier
fe6f23163e removed unused use statements 2011-07-12 17:58:39 +02:00
Fabien Potencier
88d915d175 [Validator] fixed Min and Max validator when the input value is not a number (now return an error message instead of an exception which does not make sense in this context) 2011-07-12 17:40:02 +02:00
Emil Einarsson
b96e0d3fea Updated some awkward swedish validator message translations. 2011-07-12 07:17:31 -07:00
Fabien Potencier
51dd916cc8 merged branch vicb/routing/route-annotation (PR #1650)
Commits
-------

2a24603 [Routing] Allow multiple `@Route` annotations with a default name on a single method (fixes #1647)

Discussion
----------

[Routing] Allow multiple `@Route` annotations with a default name

[Routing] Allow multiple `@Route` annotations with a default name on a single method (fixes #1647)

Before this change, the default name would be the same for multiple `@Route` with a default name on the same method. Then only the last declared route is active.

The defaults names are (for consecutive `@Route`s):

  * former_default,
  * former_default_1,
  * former_name,
  * former_default_2,
  * ...

The FrameworkExtraBundle needs to be updated in sync with this PR: https://github.com/sensio/SensioFrameworkExtraBundle/pull/50
2011-07-12 15:41:38 +02:00
Victor Berchet
2a24603061 [Routing] Allow multiple @Route annotations with a default name on a single method (fixes #1647) 2011-07-12 15:30:32 +02:00
yktd26
b2ce732bf9 added chinese translations for validator messages 2011-07-12 15:13:38 +02:00
Fabien Potencier
5eaf884cda [Process] fixed CS 2011-07-12 08:16:22 +02:00
Fabien Potencier
f2a301bc6c merged branch import/master (PR #1637)
Commits
-------

95ca258 Fixed problems with running processes returns wrong exitcode (-1) on Linux.

Discussion
----------

#1636

Fixed problems with running processes returns wrong exitcode (-1) on Linux.

---------------------------------------------------------------------------

by schmittjoh at 2011/07/11 11:07:42 -0700

This doesn't concern this PR specifically, but can we somehow start adding tests for this class? The process component seems like the by far most unstable code that we have.

---------------------------------------------------------------------------

by fabpot at 2011/07/11 23:07:43 -0700

@schmittjoh: Problem is that the behavior highly depends on the platform and PHP version.

---------------------------------------------------------------------------

by fabpot at 2011/07/11 23:14:23 -0700

@schmittjoh: By the way, we have added a bunch of tests recently (2d29a82412 (tests)/Symfony/Tests/Component/Process). Things are also "unstable" because the behavior depends on the amount of input, the amount of output, and when things happens. That means that it is also impossible to cover all possible cases reliably.
2011-07-12 08:15:25 +02:00
Fabien Potencier
baa35f51db merged branch craue/patch-6 (PR #1638)
Commits
-------

d34caee merged and unified blocks `field_label` and `form_label` into `generic_label`

Discussion
----------

merged and unified blocks `field_label` and `form_label` into `generic_label`
2011-07-12 08:10:09 +02:00
Tobias Sjösten
4764cfb8d6 [FrameworkBundle] Added Swedish translation 2011-07-11 23:51:58 +02:00
Christian Raue
d34caeea3a merged and unified blocks field_label and form_label into generic_label 2011-07-11 12:06:28 -07:00
Osman Üngür
95ca258a42 Fixed problems with running processes returns wrong exitcode (-1) on Linux. 2011-07-11 09:37:49 -07:00
Fabien Potencier
9a6aafa83f added missing required classes on form label 2011-07-11 18:37:09 +02:00
Fabien Potencier
e718a51b59 [DependencyInjection] fixed un-detected circular references involving aliases 2011-07-11 18:25:40 +02:00
Fabien Potencier
be31bc091e [DependencyInjection] made a small performance optimization 2011-07-11 17:55:12 +02:00
Fabien Potencier
f0f83a9f6e merged branch stof/exception_listener (PR #1633)
Commits
-------

11369eb Fixed phpdoc
dbe1854 Added a AccessDeniedHttpException to wrap the AccessDeniedException.

Discussion
----------

Added a AccessDeniedHttpException to wrap the AccessDeniedException.

This is a proposal to fix #1631

It wraps the AccessDeniedException in an AccessDeniedHttpException when the firewall is not able to handle it itself. This allows getting a 403 response using the standard exception listener in this case.

Note that the app should not throw the AccessDeniedHttpException itself but keep using the AccessDeniedException to let the Security component check if the user is already fully authenticated or if it should give a chance to authenticate.

---------------------------------------------------------------------------

by fabpot at 2011/07/11 07:10:12 -0700

For reference, I've tried something more radical some time ago here: https://github.com/symfony/symfony/pull/369.

---------------------------------------------------------------------------

by stof at 2011/07/11 07:22:07 -0700

my implementation is what @schmittjoh suggested in the comments on your PR.
2011-07-11 17:02:32 +02:00
Fabien Potencier
00c7e91182 [HttpKernel] removed special case when using the CLI
* This special case means that functional tests run from the CLI behave differently
* It means that web servers created in PHP behave differently
2011-07-11 16:13:15 +02:00