-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Getting HTTP 302 -> /403 on displaying uploaded images after answer "update" #722
Comments
ahhh, you're right, @LinkinStars , pardon me. regarding your checks from #667:
no, also redirect to 403 page
not a single line, even on debug level :( and it definite worked with a unchanged setup on answer 1.2.0 before |
@heubeck I just tried my Answer and it is normal. So it should be the environment issues. Help me confirm two situations. Firstly, try re-login after setting private mode and uploading the image again. Second, check your browser's cookie about Answer to see if it's working. |
You're awesome, @LinkinStars is there a way to force renewal of all sessions, so that other users don't run into this issue as well? |
Great!
I think maybe browsers generally have this feature to reload. |
sure - just wondering, if it could be worth having it enforced from answer itself after an update for instance. but if that issues isn't recurring, I've to excuse myself for expecting a bug rather than a client issue. |
Yep. In fact, we should add a reminder that users need to re-login after turning on the privacy mode to ensure that the uploading of images functions properly. Re-login is actually what you say "force renewal of all session". |
that did not help in our case, can confirm, that other users hat the same issue, and only clearing the browser cache helped. a server restart with a new deployment (newly |
ok, was able to reproduce:
|
Thanks for the feedback. There are a few other questions I'd like to ask you. Sorry for the more questions, as I really didn't reproduce the problem following your steps. So I need your help.
I think the key to the problem, as you describe it, would be in the cookie. 🤔 |
no worries, really happy to help as answer is a really great project supported by a great team 🥰
yes, after the server restart, clients are logged out automatically
yes, even restarts with an unchanged answer binary doesn't cause issues
what do you mean? Answer is accessed on a certain domain using the basic oauth connector as only login/registration method. private mode, so nothing but the "connect with ..." button visible for the public
tested with chrome and firefox, same behavior |
In the configuration file, there is a |
Tested it, can confirm, that keeping the cache doesn't logout users - and also, that the uploaded image access issue is gone. That's a workaround, but I guess no final solution? |
Describe the bug
Not sure when it started (maybe with 1.2.1 or after running 1.2.1 for some days, but not sure), and have no idea how to analyze the following issue:
Uploading images works well, they're written to the
updates
folder in the file system.But when displaying them, answer returns a HTTP 302 redirecting to
/403
.Uploaded avatars and the brand image are still working.
There are no additional information in debug log, pardon me, I've no idea how to taggle this.
The installation is private, when changing it to public, images are shown. so it seems to be related to login session handling for images downloads.
To Reproduce
Steps to reproduce the behavior:
answer build --with-plugins...
)visit
and reload pageExpected behavior
Uploaded images continue to being shown also after answer updates
Screenshots
If applicable, add screenshots or video to help explain your problem.
Platform
--with-plugins
The text was updated successfully, but these errors were encountered: