[Flow] Policy.yaml and Allowed memory size exhausted
Adrian Föder
adrian at foeder.de
Wed Mar 12 17:05:57 CET 2014
Hi Aljoscha,
the Policy.yaml looks fine, however "$role =
array('Vendor.Package:User');" seems a bit strange to me; where do you
use that construct?
And, could you tell us where in the PolicyService (in which line) the
memory exhausts?
Thx and best,
adrian
Am 12.03.2014 16:57, schrieb Aljoscha Weber:
> Hello,
>
> the policy.yaml gives me a headache.
> Before the login everything works like a charm,
> but after the login I always get this fatal error:
>
> “Allowed memory size of x bytes exhausted (tried to allocate x bytes) in /var/www/Data/Temporary/Development/SubContextDev/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Security_Policy_PolicyService.php”
>
> The memory size of the server is big enough and everything works fine without a package-policy.yaml.
> I also tried to use the built-in “AuthenticatedUser”-Role but I also ran into the same fatal error.
> Is there something wrong with the policy-file or am I missing something?
>
> Any suggestion and help is welcome.
>
> Greetings,
> Aljoscha
>
> Role in the Package:
> "$role = array('Vendor.Package:User');"
>
> Policy.yaml in Vendor.Package:
>
> roles:
> User: []
>
> resources:
> methods:
> someMethods: 'method(Vendor\Package\Controller\SomeNameController->.*())'
> someOtherMethods: 'method(Vendor\Package\Controller\SomeOtherNameController->.*())'
>
> acls:
> User:
> methods:
> someMethods: GRANT
> someOtherMethods: GRANT
> Anonymous:
> methods:
> someMethods: DENY
> someOtherMethods: GRANT
>
>
>
More information about the Flow
mailing list