Can't log out of owncloud in firefox
Already reported once here: http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-838 (but I thought it was solved, because it worked with a browser restart, but shortly after stopped working again).
I can't log out of owncloud in Firefox. The only thing which will log me out is if I clear the cache and delete all cookies.
Pressing the log out button always just takes me back to the Files app, and restarting the browser (which seemed to have helped at some point) changes nothing, I'm still logged in.
I'm using the latest Firefox (16.0.2) on both Linux and Windows, and the problem is the same on both. With Chrome, it seems to work correctly, however.
There's no entries in apache error log, and one rather meaningless entry in the owncloud log, each time the log out button is pressed: {"app":"core","message":"redirectToDefaultPage: /owncloud/","level":0,"time":135280293 8}
Anybody else experienced this, or got an idea what might be wrong?
Which version of owncloud do you use?
4.5.1a, but it also happened with 4.0.8
I have experienced the same issue. It seemed that the url generated for the logout was pointing to the incorrect location: /core/index.php?logout=true The correct location is: /index.php?logout=true
It seems the "link_to('', 'index.php');" function called in the layout.user.php file; is not generating the correct url.
I have solved this temporarily creating an index.php file in the "core" directory with following content:
<?php
header ("HTTP/1.1 301 Moved Permanently");
header ("Location: http://".$_SERVER[SERVER_NAME]."/index.php?logout=true");
?>
That's doing the trick, thanks for your help! It should be only a temporary solution, I guess: The path, protocol and port number need to be hardcoded in this...
I'm wondering why logout even works in any browser at the moment? This definitely should be fixed in the link generation code...
Could it be that this is fixed in 4.5.4? The problem doesn't seem to occur anymore after the update...
Just tried stable45, and here it seems even worse: Not only does logout not work for me there; but also when accessing the "Apps" section in the apache error log I see "script '/www/octest/core/index.php' not found or unable to stat, referer : https://mydomain/octest/index.php/apps/files", and the web interface shows "Cloud not found"... maybe related?
Doesnt happen in master (owncloud 5) any more
Hm, still happens for me with 4.5.8 and 5.0.0 (at least sometimes, not really sure yet under which exact conditions)