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
!!! BUGFIX: Make FluidAdaptor compatible with TYPO3Fluid 2.5.11+ and 2.6.10+ #2265
Conversation
Argument validation has been deferred to a later point.
Still need to adjust composer dependency to |
This affects Flow 4.3 as well, do we consider that worth a fix? It somehow falls into the "security" category, which means until December 4.3 is still covered… |
We should get this merged and released: When using |
Question: why not "backport" #2259 as well? |
Doh, I just realized it's not as easy because we rely on the former exception in https://github.com/neos/flow-development-collection/blob/5.3/Neos.FluidAdaptor/Classes/Core/ViewHelper/AbstractViewHelper.php#L123 for example (for 6+ this was removed with #1574) |
Well, we could fix that catch block. But yeah, it is a bit more breaking than just adjusting the signature. Anyway, without 90edda3 and the Fluid version constraint the argument validation will run twice - for latest Fluid versions. Should we accept that? |
This reverts commit caa0816.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted my last commit since it is more breaking than I thought initially.
Tested the original fix again and it works just fine.
Will merge if CI is green
Or we revert 90edda3 too |
@kdambekalns what do you think? Restrict Fluid version (which I'd prefer) or run with potentially running the arguments validation twice (should not break something but is obviously unnecessary work)? |
Restricting is fine with me, the older versions are rejected by |
Talking about stupid little mistakes... 🧸 |
So this should be fine now - I'd merge once travis passes (again). Can also do upmerges and tag releases later this evening or maybe tomorrow |
2.4.3 => 2.4.4 for flow 4.x is also breaking. |
But anything below Flow 5.3 is EOL by now… |
Right. Anything Flow < 5.3 should pin the Fluid dependency. |
That’s what we do right now 👍 |
This is breaking in case you created your own ViewHelper that overrides the
registerArgument()
oroverrideArgument()
method. In that case you need to add a new boolean optional argument$escape = null
and forward that to the parent method.This is a backport of #2257
Fixes #2260