Bug 39055 - Unauthenticated are not redirected properly in reports module after login
Summary: Unauthenticated are not redirected properly in reports module after login
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-06 15:56 UTC by Lucas Gass (lukeg)
Modified: 2025-02-20 20:27 UTC (History)
6 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2025-02-06 15:56:36 UTC
This seems to be a recent change in behavior. 

To reproduce: 

1. Find/create a report, run it and copy the URL. Something like "http://localhost:8081/cgi-bin/koha/reports/guided_reports.pl?id=1&op=run"
2. Logout, or use a private browsing tab, and use the URL from above. 
3. You'll be promoted to login fist, do that.
4. Once you are logged in you'll be taken to the reports home page instead of your specific report.
Comment 1 Steve, OSLRI, USA 2025-02-06 16:09:20 UTC
I'll just add that I do see the report id in the login form in a hidden field, so it does carry to the login form, but gets lost after login.
Comment 2 Brendan Lawlor 2025-02-20 19:16:48 UTC
I found that when using a local login, after authentication the op param is updated to cud-login. After authentication the id param is not in the url, but it is included in the payload. The report doesn't load because the op param is not longer 'run'

Interestingly after an SSO authentication the page loads with the complete original url and the report loads
Comment 3 Steve, OSLRI, USA 2025-02-20 20:27:57 UTC
Confirming that we see that it works via SSO here as well.  Seems to be limited to local login.