[Koha-bugs] [Bug 36193] CSRF - Code review missed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 4 22:00:25 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36193

--- Comment #4 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 162733
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162733&action=edit
Bug 36193: Fix acq receiving

This patch addresses the CSRF error when receiving in acquisitions.

To test:
1. Have at least one order to receive
2. Follow the steps to receive them
3. Have the logs open:
   $ ktd --shell
  k$ tail -f /var/log/koha/kohadev/*.log
4. Click to confirm receipt
=> FAIL: An error modal is displayed
=> FAIL: There's an error about missing CSRF token in POST
5. Apply this patch
6. Reload everything:
  k$ restart_all
7. Repeat 1-4
=> SUCCESS: Receipt works :-D
=> SUCCESS: No error log
8. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list