Bug 39055

Summary: Unauthenticated are not redirected properly in reports module after login
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: blawlor, bywater, gmcharlt, laura, phil, sspohn
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

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.