-
Notifications
You must be signed in to change notification settings - Fork 15
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
Impersonated guest user cannot logout #64
Comments
@pmaier1 please clarify if guest users should be able to being impersonated or not. |
I think it makes sense to allow impersonating guest users. This way an admin can find out what such user is actually seeing like what apps, visible folders, etc. |
Well, an admin could also just create a "test guest". Anyway, impersonating guests should work as well, yes. |
Ok thanks. |
@SergioBertolinSG Thanks for helping me setup the smtp setting for validating the issue. I guess the problem with logout is due to not whitelisting the impersonate app in the guest app setting: When I whitelist impersonate app, the logout is working. |
Oh maybe that is why the guest user cannot impersonate anyone then. |
I think guest users should not be able to impersonate anyone. It is possible to have the logout feature and not be able to impersonate as guest user? |
The logout function needs to go to a special route when a user is impersonated, that special route is from the impersonate app. If the app is not whitelisted, I suspect that the special route will fail. @SergioBertolinSG were you impersonating the guest user or is it just a simple "login" where the logout fails ? @sharidas does the impersonate JS code load even when a user is not being impersonated ? |
The logout fails when impersonating a guest user. |
@PVince81 Yes the JS code is not loaded when the user is not being impersonated. And in the guest app case, it fails to load the JS code because impersonate app is not whitelisted ( by default ). |
Hmm, that's a tricky situation then. We'd still need to somehow bypass the whitelist block to be able to load that one JS file. |
Aah hold on... Sorry for stating that JS is not loaded. The JS |
Is there such a thing like a logout prehook ? If yes we could change the logic to listen to the prehook. If that works, you won't need to override the logout link any more and it would just go through the regular logout process, and call the impersonate logout part through the hook. |
Couldn't find a logout prehook. |
PR here: #68 |
Moving to next version as we need to get a release out. |
fixed through #68. |
Steps to reproduce
Expected behaviour
Impersonating user can logout. Or maybe simply the user should not be able to impersonate a guest user.
Actual behaviour
Logout fails and the account keeps snipping not being able to log out.
Server configuration
Operating system:
Ubuntu 16.04
Web server:
Apache
Database:
MySQL
PHP version:
7.0
ownCloud version: (see ownCloud admin page)
current Master
{"installed":"true","maintenance":"false","needsDbUpgrade":"false","version":"10.0.3.0","versionstring":"10.0.3 beta","edition":"Community","productname":"ownCloud"}
Updated from an older ownCloud or fresh install:
Fresh
The content of config/config.php:
Are you using external storage, if yes which one: local/smb/sftp/...
No.
Are you using encryption:
No.
Logs
Client configuration
Browser
Firefox
** browser logs **
cc @sharidas
The text was updated successfully, but these errors were encountered: