Bug #5180

Documentation: Security Framework, 2 examples have a mistake.

Added by Tommy Seus almost 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-10-30
Priority:Should have Due date:
Assigned To:Andreas Förthner % Done:

100%

Category:Security
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 6
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

I think I have found 2 errors in the documentation.

Example roles definition in the FLOW3.yaml file

Customer:

a Role without an Array ( [] ) didnt work.

@Invalid argument supplied for foreach

Packages/Framework/FLOW3/Classes/Security/ACL/PolicyService.php:
00265: foreach ($this->roles[$role] .....@

Example for the ifAccess view helper

<f:security.ifAccess resource="someResource">
This is being shown in case you have access to the given resource
</f:if>

The closing tag is not correct.

--
greetings
Tommy

Associated revisions

Revision 62ed9808
Added by Andreas Förthner almost 6 years ago

[~DOCUMENTATION] FLOW3 (Security): Fixed two mistakes in example code listings. Resolves #5180.
[+BUGFIX] FLOW3 (Security): Added an is_array check in the policy service, to prevent php fatal erros.

History

#1 Updated by Andreas Förthner almost 6 years ago

Hi,

thanks for your findings. I would say the first one is no documentation mistake, but an actual bug in the policy service, right? I will fix this asap.

Greets Andi

#2 Updated by Karsten Dambekalns almost 6 years ago

Andreas Förthner wrote:

Hi,

thanks for your findings. I would say the first one is no documentation mistake, but an actual bug in the policy service, right? I will fix this asap.

Will the second one be fixed before November 2nd? Then it'll be in time for alpha 6.

#3 Updated by Karsten Dambekalns almost 6 years ago

  • Target version set to 1.0 alpha 6

#4 Updated by Karsten Dambekalns almost 6 years ago

  • Status changed from New to Accepted

#5 Updated by Andreas Förthner almost 6 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3383.

Also available in: Atom PDF