-
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
Token expired. Please reload page on fresh Owncloud 6.0.2 #7707
Comments
@tanghus What do you think? |
@karlitschek that logmessage is unrelated and fixed in the next minor release owncloud/contacts#405 I'm having the same issue by the way. I can't change avatars, load previews, do anything that's not done in the initial repsonse. Everything ajax-y is broken … @LukasReschke you're the session/auth/security guy … |
Could you please post your config.php here? |
It's actually working for me on stable6, but not on master:
Regarding |
Try to do some poor-man debugging by adding console.log('requesttoken', requesttoken); just before xhr.setRequestHeader('requesttoken', oc_requesttoken); in |
The requesttoken stuff has changed quite a bit, and while searching for it, I found it mentioned in core.json. What is that file used for? |
@tanghus This just spams my requesttoken to the console: |
@Kondou-ger and they don't change value? |
Then we're in OC\Server. Pulling in @bartv2 as he wrote that piece of code |
@tanghus they change everytime I reload. E.g.:
Go to https://testcloud.ts.unde.re/index.php/settings/personal
Go to https://testcloud.ts.unde.re/index.php/settings/apps?installed
|
What kind of auth do you use? Native owncloud? Http basic? With ldap Regards,
|
Native owncloud, but my installation is protected via basic_auth (which I'm not using for auth though) Basic_Auth might be the problem here … |
That's the intended way. At least it was. @karlitschek I don't recall if requesttoken has been saved in session from the start? |
@Kondou-ger didn't you implement something related to disabling checking basic auth? |
yeah, but that's only on login – I'm not sure whether that disabled all http_basic stuff as well … |
It should store the token as reusing it is not a problem. |
@Kondou-ger you can try to do some logging in |
I just disabled basic_auth temporarily and it's still happening. |
@tanghus the logged requesttoken in |
Found the culprit commit by going back the history: fc209a5 Uncommenting that line solves the issue for me. |
My best guess is that somehow Could you verify whether this is the case? - i.e. by adding a logging line to the function. |
@LukasReschke yup, that's it:
|
Autch! 💣 |
Hi, I also have just installed OC 6.0.2 on a hosted web server and I'm currently configuring, setting up and 'testing' the installation for use as a group share. I'm getting the same 'token expired' problem on practically every action I take. Is there anything being done to fix this and / or is there anything that I can do (as someone who knows little or nothing about PHP) to get round it? |
Try to do a |
Seems to be related to basic_auth after all … This is
Looks like this one has to be bypassed if |
@Der-Zohan @TheBoojum are you using basic_auth for your setups as well? |
@Kondou-ger Honest answer: not sure. I'm certainly not using LDAP authorisation. At the moment I'm just using the user names and passwords set up within OC. I'm guessing that's Native ownCloud and not basic_auth. |
@TheBoojum try commenting out/removing this line temporararily. If the problem is fixed my PR solves it … |
@TheBoojum I just tested commenting out named line in both stable6 and master and they both still look fine … Have a look at what css and js files aren't loaded and in your owncloud.log … These maybe shed some light on your issue … |
@Kondou-ger A job for tomorrow - OK, actually later today - me thinks. |
@Kondou-ger Looked at the logon page with both the unmodded and modded code. The following files were loaded with both versions: The following were NOT loaded when I was using the code with the 'tryBasicAuthLogin' call commented out: With the original code, the log file was empty. With the commented-out code there are about 120 lines. The vast majority are variations on: {"app":"PHP","message":"Cannot modify header information - headers already sent by (output started at /var/sites/o/owncloud.thecogswells.co.uk/public_html/lib/base.php:1) at /var/sites/o/owncloud.thecogswells.co.uk/public_html/lib/private/template.php#69","level":3,"time":"2014-04-03T09:58:14+00:00"} interspersed with a few versions of: {"app":"PHP","message":"session_start() [function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /var/sites/o/owncloud.thecogswells.co.uk/public_html/lib/base.php:1) at /var/sites/o/owncloud.thecogswells.co.uk/public_html/lib/private/session/internal.php#21","level":3,"time":"2014-04-03T09:58:14+00:00"} Hope that helps. |
@TheBoojum try manually applying https://github.com/owncloud/core/pull/7852/files then. That PR is way better than mine. |
The PR has been merged to master. @TheBoojum did you have any luck with that PR ? |
@Der-Zohan @TheBoojum try again with latest master. #7852 has been merged and this should be fixed now. Reopen if this isn't fixed by #7852 |
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. |
Hello,
I've installed an fresh Owncloud 6.0.2 and get this error every time I try to enable or disable an app.
Kernel: Linux version 3.0.36+
OS: Ubuntu/Linaro 4.8.1-10ubuntu7
Owncloud: 6.0.2
Webserver: Apache 2.4.6
Browser: Firefox 27; IE11
DB: MySQL
Log:

Edit:
When I disable the function to force ssl and connect over an http connection to owncloud I can enable and disable apps.
The text was updated successfully, but these errors were encountered: