-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Redirect after login is not working #3517
Comments
Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template! |
I see the same behavior when using Chrome 103.0.5060.53. |
I think this redirect was working after #2813, but I'm not absolutely sure. |
I suspect this is fixed in 1.36.20. Can you confirm? |
Thanks! I regret to say, it is not fixed in 1.36.20. I've upgraded both of my zm setups, and still see the same behavior. |
We are up to 1.36.23 now. Please check if we have fixed it. If not, please consult the javascript console logs for javascript errors that might shed some light. To do that, right click in the browser, click Inspect Element, click the console tab. |
Thanks! I will try out 1.36.23 when the Debian package lands at https://zmrepo.zoneminder.com/debian/release-1.36/bullseye/ -- and will check the JS console. |
It looks like the Debian release action has never run? But the package for 1.36.21 got built, after that action was added. https://github.com/ZoneMinder/zoneminder/actions/workflows/release-packages.yml |
Ah, I see 1.36.24 has built, will try that and report back. |
In the console, I see two warnings and an error:
|
…n cookie. Maybe fixes #3517
1.36.26 has been released but I doubt it fixes this. I have since pushed a fix for the lacking SameSite attribute. I don't think that will actually fix this either. The cookie has been rehected because it is already expired is interesting. Setting a cookie that expires in the past is a standard way of clearing a cookie. I wonder if there is a time or timezone discrepancy between your browser and the ZoneMinder system... |
Thanks, I'll install 1.36.26 when the Debian package lands. Interesting idea about time. The time is correct on my machine and the two zoneminder servers in question; the zoneminder machines have |
As you expected, 1.36.26 does not change the behavior. |
…se we clear the session on login. Fixes #3517
Thanks for 9adf5f6, @connortechnology ! Release 1.36.31 looks great. |
Describe Your Environment
Describe the bug
When logged out, going to ZM with the query string
?view=watch&mid=3
goes to a login screen, but then, on login, redirects to the console instead of the monitor with ID 3.I can see
postLoginQuery|s:16:"view=watch&mid=3";
in the session table in the database, which looks right; but I can also seeRedirecting to (?view=console) from :/zm/index.php
fromskins_classic_views_js_postlogin-classic-1654447947.js:4:11
in the dev tools console on login, which I think is wrong.I'm not sure when this redirect stopped working.
The text was updated successfully, but these errors were encountered: