[Flow] Suddenly I get: #1222268609: Access denied (0 denied, 0 granted, 1 abstained)

Axel Wüstemann awu at qbus.de
Wed Jan 15 16:34:05 CET 2014


Ha, you might be right! What I actually "suddenly" did is to add an initalizeAction.
 
Thanks
Axel Wüstemann
(von unterwegs gesendet)


-------- Ursprüngliche Nachricht --------
Von: Andreas Förthner <andreas.foerthner at netlogix.de> 
Datum:  
An: TYPO3 Flow mailing list <flow at lists.typo3.org> 
Betreff: Re: [Flow] Suddenly I get: #1222268609: Access denied (0 denied,
  0 granted, 1 abstained) 
 
Hi Axel,

the resource LALLF_Intranet_FisheryInspection_Controllers will also match
initialize*Action() methods. This is a problem. Probably the exception is
not thrown while calling the action, but while its initialize method.


Make sure to write your resource definition like that:

LALLF_Intranet_FisheryInspection_Controllers : method(public
LALLF\Intranet\FisheryInspection\Controller\.*Controller->->(?!initialize).
*Action())

Greets Andi

Am 15.01.14 15:10 schrieb "Axel Wüstemann" unter <awu at qbus.de>:

>Am 15.01.2014 15:06, schrieb Andreas Förthner:
>> Hi Axel,
>>
>> could you paste the whole policy and security settings? Probably there
>>is
>> something wrong with your provider configuration and/or resources
>> definitions.
>>
>> Greets Andi
>
>Policy.yaml
>
>resources:
>   methods:
>     LALLF_Intranet_FisheryInspection_Controllers:
>'method(LALLF\Intranet\FisheryInspection\Controller\.*Controller->.*Action
>())'
>     LALLF_Intranet_PhoneDirectory_Controllers:
>'method(LALLF\Intranet\PhoneDirectory\Controller\PhoneDirectoryController-
>>(new|edit|create|update|delete)Action())'
>
>roles:
>   User: []
>
>acls:
>   User:
>     methods:
>       LALLF_Intranet_FisheryInspection_Controllers: GRANT
>       LALLF_Intranet_PhoneDirectory_Controllers: GRANT
>
>Settings.yaml
>
>TYPO3:
>   Flow:
>     security:
>       enable: TRUE
>       authentication:
>         authenticationStrategy: atLeastOneToken
>         providers:
>           'DefaultProvider':
>             provider: 'PersistedUsernamePasswordProvider'
>             entryPoint: 'WebRedirect'
>             entryPointOptions:
>               routeValues:
>                 '@package':    'LALLF.Intranet'
>                 '@controller': 'Login'
>                 '@action':     'index'
>       authorization:
>         allowAccessIfAllVotersAbstain: TRUE
>_______________________________________________
>Flow mailing list
>Flow at lists.typo3.org
>http://lists.typo3.org/cgi-bin/mailman/listinfo/flow

_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow


More information about the Flow mailing list