[Bug 6970] New: logout not redirecting to login page
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Bug #: 6970 Summary: logout not redirecting to login page Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Platform: All OS/Version: All Status: NEW Severity: major Priority: P5 Component: Templates AssignedTo: oleonard@myacpl.org ReportedBy: nengard@gmail.com QAContact: koha-bugs@lists.koha-community.org Staff logout does not reload the login page. Seems to be an issue with Firefox 7.x since it works properly in 6.x and prior. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> 2011-10-04 18:46:07 UTC --- Not only that, it doesn't even log you out. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Ian Walls <ian.walls@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ian.walls@bywatersolutions. | |com --- Comment #2 from Ian Walls <ian.walls@bywatersolutions.com> 2011-10-04 19:53:28 UTC --- Problem is on koha-tmpl/intranet-tmpl/prog/en/jd/basket.js, lines 308 and 310 (denoted below by being commented out). function delBasket(rep) { if (rep == undefined){ rep = confirm(MSG_CONFIRM_DEL_BASKET); } if (rep) { delCookie(nameCookie); // document.location = "about:blank"; updateBasket(0,top.opener); // window.close(); } } Removing those lines as above fixes the issue in the latest Firefox; not sure about other browsers, if they'd be required. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 --- Comment #3 from Owen Leonard <oleonard@myacpl.org> 2011-10-05 13:56:43 UTC --- Created attachment 5714 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5714 Proposed fix As Ian points out, there is code which tries to redirect to "about:blank" and close the window (since the main context of the function is the Cart's popup window. This patch adds a parameter to the delBasket function so that we can pass a "popup" context to the function and choose whether or not we want to ask JS to close the window. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Status|NEW |ASSIGNED Patch Status|--- |Needs Signoff -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 --- Comment #4 from Ian Walls <ian.walls@bywatersolutions.com> 2011-10-05 14:12:29 UTC --- Proposed patch works on FF7 and Chromium 12; need to check other browsers before I can definitely sign off and pass QA. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 --- Comment #5 from Nicole C. Engard <nengard@gmail.com> 2011-10-07 12:42:51 UTC --- Works in Safari, FF7 and Chrome on Mac. Giving my sign off. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5714|0 |1 is obsolete| | --- Comment #6 from Nicole C. Engard <nengard@gmail.com> 2011-10-07 12:43:24 UTC --- Created attachment 5769 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5769 [SIGNED-OFF] Fix for Bug 6970 - logout not redirecting to login page For some reason the latest version of Firefox doesn't like the javascript which empties the cart on logout. As Ian points out, there is code which tries to redirect to "about:blank" and close the window (since the main context of the function is the Cart's popup window. This patch adds a parameter to the delBasket function so that we can pass a "popup" context to the function and choose whether or not we want to ask JS to close the window. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 --- Comment #7 from Nicole C. Engard <nengard@gmail.com> 2011-10-07 12:44:08 UTC --- I think we need a sign off from a windows person and a linux person to please Ian :) anyone else want to test and sign off? -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |julian.maurice@biblibre.com --- Comment #8 from Julian Maurice <julian.maurice@biblibre.com> 2011-10-07 13:47:44 UTC --- Works with Firefox 7 and Chromium 14 on Linux. Signed off. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |magnus@enger.priv.no --- Comment #9 from Magnus Enger <magnus@enger.priv.no> 2011-10-07 13:52:08 UTC --- I have tested on Ubuntu, with the following results: - Chromium: not affected by the problem, works after the patch - FF7: The patch solves the problem - Opera 11.10: The patch does not solve the problem (the tab Koha is in is closed when I click Log out, and when I return to Koha I'm still logged in) Not sure if we should let the Opera fail stand in the way of a fix for FF? The latter is probably used far more than the former... -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 --- Comment #10 from Ian Walls <ian.walls@bywatersolutions.com> 2011-10-07 14:00:33 UTC --- Owen has reported this works in IE8. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 --- Comment #11 from Ian Walls <ian.walls@bywatersolutions.com> 2011-10-07 14:08:15 UTC --- Okay, so looks like Linux and Mac are well covered. We've got positive reports of this working on IE8 on Windows. I'd like to see the following confirmations: FF3-7 on Windows Safari on Windows IE6-7 on Windows FF3-6 on Mac I say FF3 because I'm pretty sure I still have a laptop that runs that, and it's not that old. But, if we can make a good case for a higher minimum number, then I'm okay with that. At the very least, FF6 needs to be tested. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Paul Poulain <paul.poulain@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paul.poulain@biblibre.com --- Comment #12 from Paul Poulain <paul.poulain@biblibre.com> 2011-10-07 15:51:28 UTC --- Just a point : I agree we must check FF under windows. But I like not to maximize the number of platforms tested: that's a real problem under FF7, so I think we should not delay too much this patch. We can ignore sub-versions : 3.6 and 7 is enough : there's an automatic update from 5 to 7 for example, so the possibility to have a library using FF5+ the patch being a problem for FF5 is from far less important compared to ppl using FF7 and suffering the problem ! -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Ian Walls <ian.walls@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch Status|Needs Signoff |Passed QA --- Comment #13 from Ian Walls <ian.walls@bywatersolutions.com> 2011-10-13 19:34:06 UTC --- I've confirmed this works fine for FF4 and FF7 on Windows. I think this is a big enough problem, and we've tested enough of the cases now, that if a library runs into a specific OS/browser combination that doesn't work, we can offer up interim alternatives until a further patch can be developed. Marking this with my signoff, and passing QA. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris@bigballofwax.co.nz Patch Status|Passed QA |Patch Pushed --- Comment #14 from Chris Cormack <chris@bigballofwax.co.nz> 2011-10-14 03:00:55 UTC --- Pushed, please test -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 --- Comment #15 from Chris Nighswonger <cnighswonger@foundations.edu> 2011-10-26 18:02:09 UTC --- The fix for this bug was published in the 3.4.5 release. If you were the reporter of this bug, please take time to verify the fix and update the status of this bug report accordingly. If the bug is fixed to your satisfaction, please close this report. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA Contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6970 Jared Camins-Esakov <jcamins@cpbibliography.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are the QA Contact for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org