[Flow] Policy.yaml and Allowed memory size exhausted

Aljoscha Weber aweber at w-commerce.de
Wed Mar 12 16:57:12 CET 2014


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