Bug #86841

Inline "then"/"else" not working for <f:security.ifAuthenticated>

Added by Vasyl Mosiychuk 16 days ago. Updated 7 days ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2018-11-02
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have this code... (I use last TYPO3 9.5.1)

<f:security.ifAuthenticated>
<f:then>
### This is being shown in case you have access. ###
</f:then>
<f:else>
### This is being displayed in case you do not have access. ###
</f:else>
</f:security.ifAuthenticated>

If I do login with my FE user account. I must be see this text `### This is being shown in case you have access. ###` and I see him...

If I do not login with my FE user account. I must be see this text `### This is being displayed in case you do not have access. ###` ...but I do not see him... for some reason the `condition` does not working.

Why, I do not see the text from `<f:else>### This is being displayed in case you do not have access. ###</f:else>`, when I do not login with my FE user account?
what is wrong with him?

With the code..

<v:security.allow anyFrontendUser="TRUE">
    <f:then><!-- protected information displayed --></f:then>
    <f:else><!-- link to login form displayed --></f:else>
</v:security.allow>

...the same`

History

#1 Updated by Vasyl Mosiychuk 16 days ago

  • Related to Bug #86743: Inline "then"/"else" not working for IfHasRoleViewHelper added

#2 Updated by Vasyl Mosiychuk 16 days ago

I discovered strange situation...

When I do not login, as `FE user` and, I download a new page which I have not downloaded yet on the moment then I see what is in this block <f:else>...<f:else/>, but when I clear cache (flush cache) the page and reloaded, then I do not see already, what is in the block <f:else>...<f:else/>

When I login, as `FE user` and, I download a new page which I have not downloaded yet on the moment then I see what is in this block <f:then>...<f:then/>, but when I clear cache (flush cache) the page, I do not see already, what is in the block <f:then>...<f:then/>

#3 Updated by Mathias Brodala 13 days ago

  • Related to deleted (Bug #86743: Inline "then"/"else" not working for IfHasRoleViewHelper)

#4 Updated by Mathias Brodala 13 days ago

  • Status changed from New to Needs Feedback

I am unable to reproduce this issue. I've put the 1st snippet in Resources/Private/Layouts/Default.html of EXT:fluid_styled_content to ensure the message shows up for any kind of content. And as expected the messages appear as they are supposed to, both on first as well as subsequent page access, both for unauthorized and authorized users.

How exactly does your setup look like, especially in which context did you test the output?

#5 Updated by Vasyl Mosiychuk 13 days ago

This goes when I clear cache (flush cache) and reload the page. I can to provide access for this test. Where can I send those data? {I send message to you}

#7 Updated by Vasyl Mosiychuk 7 days ago

Close the issues, please.

#8 Updated by Wouter Wolters 7 days ago

  • Status changed from Needs Feedback to Closed

closed as requested

Also available in: Atom PDF