-
Notifications
You must be signed in to change notification settings - Fork 2.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
Ext storage mode save in session doesn't work without cookies #25511
Comments
I just tested this in 9.0.3 with session mode and running Works for me. |
Does this works also in ownCloud 9.1.0 RC1 (beta) ? |
I just tested with v9.1.0RC1 and it also works with curl. |
Am able to reproduce a similar issue on v9.0.3, need to have LDAP enabled and login as a LDAP user who has access to SFTP storage using "save in session". v9.0.3:
Will check stable9.1 later. |
There are two pieces of code:
The two are run in the wrong order when doing a curl PROPFIND. Read password from session happens here:
and store password only happens later in the "postLogin" hook:
From what I see is that the avatar fetching code from LDAP is triggering the filesystem setup too early. |
Additional note: the LDAP users need to have an email address set in the LDAP "mail" field for |
@DeepDiver1975 @jvillafanez ideally Possible solutions:
So far it feels like 3) is the best way to go. Even when creds are not available, we do want the mount point to be always visible. |
Just tried solution 4 using pre_login instead of post_login. It works but it has the drawback that it stores the credentials before the login could even be verified. Unfortunately there is no hook for "login failed" in which case we could delete the credentials from the session again. Not sure how bad this is. Next step: find out whether there is a better solution, hopefully one that involves preventing all this early setupFS stuff |
@PVince81 Yeah it works with this ! Thanks !!! |
@QuentinC glad to hear |
@PVince81 Well, I seem to have some "less important but still annoying" problem using LDAP + Session credentials. I can browse every folder now, but it seems that owncloud won't scan external storages in order to update folder sizes. It will always stay on "Waiting", "En attente" in fact in French, and only update the size when manually browsing folders. Is it a behavior that you can reproduce ? |
Hmm, this is a separate issue. Can you make one ? |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
See owncloud/android#1674 for details.
From the symptoms it looks like basic auth is happening for the curl calls, but the credentials aren't available yet in the session. Maybe that part of the code runs too late.
This means that potentially any client that doesn't support cookies will not work properly with the "save in session" mode.
CC @Xenopathic @jvillafanez
The text was updated successfully, but these errors were encountered: