-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Second call to User.Identity.IsAuthenticated or even User in template started to return nothing #17393
Comments
So only the first call to |
I can confirm this still happens in 3.0.0-preview-18484 |
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues). This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here. |
If nobody tried to repro maybe your could try an older version of Fluid just to rule it out. |
Isolated changes from the build numbers you provided (18407 to 18420) to these: |
So, if I understand it correctly, this fails?
It works for me... |
Correct, I'll try narrowing it down and isolating. |
I tried this on a fresh tenant only, maybe this is related to upgrading. |
What OS are you on? |
Windows |
We're on MacOS and Linux. |
There hasn't been a change on this particular part in OC: Are you sure you are not changing the user of the current request in between? I can't image how this should happen in OC on its own. |
In between of what? In between the lines of the liquid template? :) No, we’re not :) |
I'm also not able to reproduce this on Linux. |
I'm still unable to reproduce it. There must be something in common in your apps, e.g. are they using the same features? Please provide us more details. |
I'll try narrowing it down next week! Thanks! |
Describe the bug
After updating from 2.1.0-preview-18407 to 3.0.0-preview-18420, a liquid template containing twice
User.Identity.IsAuthenticated
stopped working correctly.I checked the values by the calls. The first is
true
orfalse
, but the second is empty.Assigning
User.Identity.IsAuthenticated
to a variable workedThe text was updated successfully, but these errors were encountered: