#133 ✓hold

Users redirected to image display page after logging in

Reported by James | December 11th, 2008 @ 11:44 AM | in 1.2

Occasionally when a user logs in to Kete, they will be redirected to an image display page.

The exact details for what causes this are not known, however it has been experienced for multiple people on different Kete instances.

Requirements for replication

a) Configure a Kete instance and add multiple image items

Initial thoughts

Initially I thought this was caused by the slideshow controller causing the session[:return_to] key to be populated and therefore returning to this key after logging in, however the store_locations method in ApplicationController does not run for the IndexController#select_image method, so I think this is unlikely as a cause.

Comments and changes to this ticket

  • James

    James December 11th, 2008 @ 11:47 AM

    • Tag changed from authentication, correctness to authentication, correctness, files, inconsistent, private

    Another thing that comes to mind as a possible cause:

    When viewing a private image item page, the private image thumbnails are retrieved through a secondary request to PrivateFilesController#show.

    session[:return_to] is populated for show actions, so this could theoretically be the cause of this problem.

    To be confirmed.



  • Kieran P

    Kieran P January 22nd, 2009 @ 12:29 PM

    • Tag changed from authentication, correctness, files, inconsistent, private to authentication, correctness, files, inconsistent, private, selenium
    • State changed from “new” to “hold”

    Based on James' posts above, I added tests and found one of them failing. There might be another issue with the JS slideshow stuff, but I'll need selenium for that.


  • Kieran P

    Kieran P January 22nd, 2009 @ 12:30 PM

    • Assigned user changed from “James” to “Kieran P”

    When Selenium testing is possible (the final issues I'm getting are resolved), then the following test would need to be implemented:

    • Visit a homepage with slideshow and wait a few seconds for it to update via AJAX calls then go straight to login

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.

People watching this ticket