-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Grist Forms - Redirecting loop error #966
Comments
Do you really need
Or would |
Thanks @fflorent, thanks for your comment, but I do not want the forms to be publicly accessible, and this problem occurs both when users are logged in prior to trying to access the form or when they go to the form url and are sent to the login page. As soon as they are logged in, this error occurs.
|
This turns out to be easy to replicate in grist-omnibus, local setup, default example in |
@georgegevoian and @berhalak I'd appreciate your eyes on this issue [when you're available obviously, otherwise enjoy your respective vacations :-)]. |
@s-karrer thanks for digging into the problem. Can you confirm that adding just |
A fix has now landed in grist-omnibus. It's also in the Let us know if you run into any issues. Thanks! |
Yes just adding |
Hello, i am working with Grist Forms and found a bug when i want to access a published form.
Problem
I get a redirecting loop error accessing the forms link :
http://localhost:9999/forms/47QFRwq6wLjhGTYaUAckWG/4
This bug came up when using Grist Omnibus with email/password authentication and you have a logged in session.
(Grist Version 1.1.13)
The log output:
Solution
I figured out that the formMiddleware is missing some redirects as you can see here:
grist-core/app/server/lib/FlexServer.ts
Lines 1121 to 1123 in 51ec221
When adding the redirects used for docMiddleware, it is working fine:
If I use Grist only instead of Grist Omnibus it is working but I dont know why maybe because no authentication and redirect is happening. Also the form access link is different:
http://localhost:8484/o/docs/forms/5jzQzr3NL8tYwALbBcJkBz/4
I am not into that code base so maybe someone can have a closer look.
Is this fix valid or do i miss something and the fix should be in my Omnibus setup?
The text was updated successfully, but these errors were encountered: