Go to file
Kyle M Hall cd809940b7 Bug 34893: ILS-DI can return the wrong patron for AuthenticatePatron
Imagine we have a set of users. Some of those users have a NULL userid. We then call AuthenticatePatron from ILS-DI for a patron with a NULL userid, but a valid cardnumber. We call checkpw, which returns the cardnumber and userid. We then call Koha::Patrons->find on the userid *which is null*, meaning the borrowernumber returned is not the correct one, but instead the earliest patron inserted into the database that has a NULL userid.

Test Plan:
1) Give three patrons a userid and a password
2) From the database cli, set all patrons's userid to null
   Run this query: update borrowers set userid = null;
3) Call AuthenticatePatron with username being the 1st patron cardnumber,
   and password being the password you set for that patron
   http://localhost:8080/cgi-bin/koha/ilsdi.pl?service=AuthenticatePatron&username=kohacard&password=koha
4) Note you get back a borrowernumber for a different patron. Refresh the page and the number is correct.
5) Do the same with the 2nd patron. Same issue at 1st and correct number after.
6) Apply this patch
7) Restart all the things!
8) Do the same with the 3rd patron.
9) Note you get the correct borrowernumber! :D
10) prove t/Auth.t t/db_dependent/Auth_with_ldap.t t/Auth_with_shibboleth.t t/db_dependent/Auth_with_cas.t

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2024-01-24 08:30:00 +00:00
C4 Bug 34893: ILS-DI can return the wrong patron for AuthenticatePatron 2024-01-24 08:30:00 +00:00
Koha Bug 35174: Do not explode if po dir does not exist 2023-11-22 09:39:12 +01:00
acqui Bug 32377: Set param skiptotals on call of GetBudgetHierarchy in acqui/histsearch.pl 2023-02-03 22:23:06 +00:00
admin Bug 34369: Require CSRF token for updating system preferences 2023-09-28 16:06:05 +00:00
api Bug 33262: Add new field to REST API route for orders 2023-05-15 22:48:10 +00:00
authorities Bug 30250: Use ApplyFrameworkDefaults when importing a record 2023-02-15 13:46:30 +00:00
basket Bug 29871: Remove marcflavour param in Koha::Biblio->get_marc_notes 2022-07-12 15:54:27 +00:00
bin
…
catalogue Bug 30779: Remove _update_import_record_marc and update tests 2022-10-03 22:48:43 +00:00
cataloguing Bug 35290: (follow-up) Perltidy formatting corrections 2023-11-28 15:20:33 +00:00
circ Bug 31492: Set CSRF token in circulation.pl 2023-01-20 00:01:36 +00:00
clubs Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
course_reserves Bug 31893: Use checkauth and do not fetch about.tt template 2023-02-01 15:44:50 +00:00
debian Bug 35174: update control files for koha-l10n dependency package 2023-11-22 09:42:32 +01:00
docs Bug 30808: Add the 22.05 release team. 2022-05-25 23:56:12 -10:00
errors Bug 29420: HTTP status code incorrect when calling error pages directly under Plack/PSGI 2022-04-20 09:03:39 -10:00
etc Bug 32937: Make Zebra ignore the copyright symbol in searches 2023-06-15 19:13:40 +00:00
ill Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
installer Increment version for 22.05.17 releasse 2023-11-28 15:37:52 +00:00
koha-tmpl Bug 35174: [22.05] (follow-up) Add a warning to the about page 2023-11-22 09:52:57 +01:00
labels Bug 31482: Label creator does not call barcodedecode 2022-11-10 23:43:49 +00:00
lib/CGI/Session/Serialize
…
members Bug 22990: Add CSRF protection to boraccount, pay and suggestion 2023-08-03 16:40:02 -03:00
misc Update release notes for the 22.05.17 release 2023-11-28 16:05:11 +00:00
offline_circ Bug 30525: Items batch modification broken 2022-04-21 13:41:36 -10:00
opac Bug 34023: Prevent HTML injection in "back to results" link from search page 2023-08-03 16:40:02 -03:00
patron_lists
…
patroncards Bug 24001: Fix patron card template edition 2022-04-28 10:49:20 -10:00
plugins Bug 30367: (follow-up) Same adjustment for gitlab 2023-06-13 16:13:26 +00:00
pos Bug 28481: (RM follow-up) formatting 2021-12-16 12:13:51 -10:00
recalls Bug 30924: Add missing branchtransfers.reason value for recall cancellation 2022-07-13 19:13:33 +00:00
reports Bug 27513: Add notes to variables for report parameters template 2023-05-05 21:35:53 +00:00
reserve Bug 30687: Allow pickup location to be forced when override is allowed 2023-06-15 19:32:39 +00:00
reviews
…
rotating_collections
…
serials Bug 29608: Made so doesn't require full permission 2022-10-31 19:55:45 +00:00
services
…
skel
…
suggestion Bug 34601: [22.05.x] Fix edit/delete links on suggestion.tt 2023-09-22 18:27:08 +00:00
svc Bug 34369: Require CSRF token for updating system preferences 2023-09-28 16:06:05 +00:00
t Bug 34893: Add unit tests 2024-01-24 08:30:00 +00:00
tags Bug 29469: (bug 17600 follow-up) Fix tag approval/rejection from staff 2021-11-16 15:49:22 +01:00
tools Bug 35291: (QA follow-up) Tidying script for QA test tools 2023-11-28 15:25:15 +00:00
virtualshelves Bug 22990: Add CSRF protection to boraccount, pay and suggestion 2023-08-03 16:40:02 -03:00
xt Bug 32741: Regression tests 2023-02-14 21:45:40 +00:00
.editorconfig
…
.eslintrc.json
…
.gitignore Bug 35174: Add misc/translator/po to .gitignore 2023-11-22 09:42:29 +01:00
.htaccess
…
.mailmap 22.05.00: Update mailmap 2022-05-25 23:56:12 -10:00
.perlcriticrc
…
.proverc.dist
…
.scss-lint.yml
…
INSTALL
…
Koha.pm Increment version for 22.05.17 releasse 2023-11-28 15:37:52 +00:00
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL Bug 19532: Database and installer stuff 2022-03-14 22:45:50 -10:00
README
…
README.md
…
README.robots
…
about.pl Bug 35174: Add a warning to the about page 2023-11-22 09:40:57 +01:00
app.psgi
…
changelanguage.pl
…
cpanfile Bug 32558: (QA follow-up) Move ForkManager to required 2023-03-10 17:16:38 +00:00
fix-perl-path.PL
…
gulpfile.js Bug 35174: Don't run gulp po commands if po dir is missing 2023-11-22 09:42:32 +01:00
help.pl
…
koha_perl_deps.pl
…
kohaversion.pl
…
mainpage.pl
…
package.json Bug 32978: Replace node-sass with dart-sass 2023-11-08 14:06:42 +01:00
rewrite-config.PL
…
yarn.lock Update yarn.lock 2023-11-08 14:07:23 +01:00

README.md

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo