[Bug 44142] New: Redirect circ/returns.pl to circ/checkin.pl
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44142 Bug ID: 44142 Summary: Redirect circ/returns.pl to circ/checkin.pl Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle@bywatersolutions.com Depends on: 42383 Target Milestone: --- circ/returns.pl was removed when the check-in page moved to Vue (circ/checkin.pl), with no redirect. Bookmarks, custom links, plugins and documentation pointing at circ/returns.pl now give a 404. Follow-up to bug 42383, reported by Pedro Amorim. Test plan: 1. Go to /cgi-bin/koha/circ/returns.pl 2. Expected: redirected to /cgi-bin/koha/circ/checkin.pl. Actual: 404 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383 [Bug 42383] Migrate check-in page to Vue -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44142 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44142 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211906 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211906&action=edit Bug 44142: Redirect circ/returns.pl to circ/checkin.pl circ/returns.pl was removed when the check-in page moved to Vue, with no redirect. Bookmarks, links in plugins and in the documentation, and forms posting to it now give a 404. Add a circ/returns.pl that sends the request on to circ/checkin.pl, with its query string, so '?barcode=...' still prefills the barcode. A GET gets a 301. A POST gets a 307, so it stays a POST with its body (the check-in page checks the item in for a POST with a CSRF token). It needs no log in: circ/checkin.pl asks for it. To test: 1. Go to /cgi-bin/koha/circ/returns.pl 2. You are on Circulation > Check in (/cgi-bin/koha/circ/checkin.pl) 3. Go to /cgi-bin/koha/circ/returns.pl?barcode=3999900000001 4. You are on the check-in page, with the barcode in the box and the item not checked in 5. Log out and go to /cgi-bin/koha/circ/returns.pl: you are asked to log in, then land on the check-in page 6. Run the Cypress spec: t/cypress/integration/Circulation/Checkin_spec.ts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44142 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |martin.renvoize@openfifth.c |ity.org |o.uk Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44142 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44142 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211906|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44142 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 211922 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211922&action=edit Bug 44142: Redirect circ/returns.pl to circ/checkin.pl circ/returns.pl was removed when the check-in page moved to Vue, with no redirect. Bookmarks, links in plugins and in the documentation, and forms posting to it now give a 404. Add a circ/returns.pl that sends the request on to circ/checkin.pl, with its query string, so '?barcode=...' still prefills the barcode. A GET gets a 301. A POST gets a 307, so it stays a POST with its body (the check-in page checks the item in for a POST with a CSRF token). It needs no log in: circ/checkin.pl asks for it. To test: 1. Go to /cgi-bin/koha/circ/returns.pl 2. You are on Circulation > Check in (/cgi-bin/koha/circ/checkin.pl) 3. Go to /cgi-bin/koha/circ/returns.pl?barcode=3999900000001 4. You are on the check-in page, with the barcode in the box and the item not checked in 5. Log out and go to /cgi-bin/koha/circ/returns.pl: you are asked to log in, then land on the check-in page 6. Run the Cypress spec: t/cypress/integration/Circulation/Checkin_spec.ts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44142 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |tomascohen@gmail.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org