KPAC Login Redirect Issue

Bug #1406788 reported by Adam Bowling
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Evergreen
Incomplete
Medium
Unassigned

Bug Description

Users who select "Login" once they are in the KPAC, upon successfully entering their credentials, are redirected back to the /opac/home page, rather than to the /kpac/home page.

A fix for this bug has been submitted at http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/abowling/kpac-login-redirect-fix

Tags: kpac
Adam Bowling (abowling)
tags: added: pullrequest
Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

Adam, I can confirm that I see the same behavior on a 2.7.3 system. Logging in via the kpac doesn't redirect back to the kpac afterwards. I'll test your patch when I have a chance also.

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

Adam, I'm not able to get this working. It doesn't seem like ctx.kpac_root is set after I'm sent to the login form. If I add a debugging line of
<!-- kpacroot-[% ctx.kpac_root %] redirect-[% redirect %] hostname-[% ctx.hostname %] --!>

before the block that contains your extra check, the only variable that is set is ctx.hostname. Maybe I'm missing something that sets kpac_root in a config file?

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

Oh, and I'm not running 2.7.3, that should have been 2.7.1.

Revision history for this message
Adam Bowling (abowling) wrote :

Josh,

kpac_root should be getting set in Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm.

Revision history for this message
Ben Shum (bshum) wrote :

So the redirect issue likely occurs because of the changes we made in Evergreen during bug 1314827.

Merge commit for reference: http://git.evergreen-ils.org/?p=Evergreen.git;a=commit;h=fcf4628204e757692a92595c20a04c99c83e6329

I've tested Adam's patch and receive similar non-working results like Josh where the KPAC is still redirecting to the regular OPAC. So I think we're still missing something here.

Changed in evergreen:
status: New → Confirmed
importance: Undecided → Low
importance: Low → Medium
tags: removed: pullrequest
Jim Keenan (jkeenan)
Changed in evergreen:
assignee: nobody → Jim Keenan (jkeenan)
tags: added: kpac
Changed in evergreen:
assignee: Jim Keenan (jkeenan) → nobody
Revision history for this message
Jason Stephenson (jstephenson) wrote :

I am not able to reproduce this bug on 3.2.10 or 3.6.1 at CW MARS. Regardless of which page I am on in our production (or training) KPAC, I am redirected back to that page after logging in. I have double checked that we have no relevant customization to the KPAC or OPAC login code that would resolve this on our side. Some other patch must have fixed this.

Granted, I get the OPAC login page as described in bug 1361206.

Changed in evergreen:
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.