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
[FIX] Add attempt and recover to prevent ftl from crashing #164
[FIX] Add attempt and recover to prevent ftl from crashing #164
Conversation
Hi @Romcol,
PS: Thank you for noticing the old warning about the documentation website being down. |
Hi @garronej, Thanks for the reply. Ok I can make a PR from V6 branch. It's very hard to debug, on my page there's an issue somewhere in some nested enumerable. Wrapping |
Thanks for the update, |
… bugfix/prevent-ftl-from-crashing
Hi @garronej, Here are the steps to reproduce. Without the fix in this PR the page goes Error 500. With the fix we are able to show the page. I've had similar issue with I have updated my PR to show minimal changelog. Since it's a bugfix, I think it would be better to release it as V5 or we would have to migrate to V6 which will cause more work and QA/testing.... Thanks for reading, |
@Romcol I didn't forget you, I'll review and merge this very soon. |
I'm implementing |
I don't know what to think about this. |
Hi @garronej , Thanks for the review. I understand that you would want us to upgrade. I personally don't mind if it's only merged on the V6 branch instead of both branches even if I would prefer on both branches :). I think this fix can be easily cherry-picked from my PR to the V6 branch, but tell me if you need help in doing so. |
Hi @Romcol, I'm on it! |
I don't know if you saw but I implemented |
Hi @Romcol,
Thanks very much for your help. |
Hi @garronej, Thanks for merging! We've done a short video here to reproduce our case : https://vimeo.com/748716173. These are the steps to reproduce:
Hope it'll help! |
I reproduced the bug and I came up with a clean fix. 🥳 |
Nice, I'll try it! |
Hi,
I have notice 500 errors on some of my customs
.ftl
in some scenarios (update-user-profile.ftl
,idp-review-user-profile.ftl
) probably due to thedata_model
not being converted in a successfully way.Adding
<#attempt>
and<#recover>
inside the whole function prevent at least the page from crashing and going 500.Thanks for merging!