core icon indicating copy to clipboard operation
core copied to clipboard

Can't log out of owncloud in firefox

Open RandolfCarter opened this issue 14 years ago • 8 comments

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?

RandolfCarter avatar Nov 13 '12 10:11 RandolfCarter

Which version of owncloud do you use?

blizzz avatar Nov 13 '12 12:11 blizzz

4.5.1a, but it also happened with 4.0.8

RandolfCarter avatar Nov 13 '12 12:11 RandolfCarter

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");
?>

denniscm20 avatar Nov 30 '12 18:11 denniscm20

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...

RandolfCarter avatar Dec 03 '12 08:12 RandolfCarter

Could it be that this is fixed in 4.5.4? The problem doesn't seem to occur anymore after the update...

RandolfCarter avatar Dec 04 '12 11:12 RandolfCarter

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?

RandolfCarter avatar Dec 13 '12 22:12 RandolfCarter

Doesnt happen in master (owncloud 5) any more

BernhardPosselt avatar Feb 09 '13 12:02 BernhardPosselt

Hm, still happens for me with 4.5.8 and 5.0.0 (at least sometimes, not really sure yet under which exact conditions)

RandolfCarter avatar Mar 27 '13 11:03 RandolfCarter