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

--- Comment #9 from Jonathan Druart <jonathan.dru...@gmail.com> ---
Created attachment 167074
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167074&action=edit
Bug 36908: Additional unit tests to identify flaw when two branches have same
IP

This could be considered a configuration flaw, but when:
StaffLoginBranchBasedOnIP enabled and not AutoLocation
or
AutoLocation enabledand no IP set in user's branch

AND

two branches have the same IP set

the user can be logged in randomly to one of the matching branches.

These test often pass, but will also randomly fail

Easier to verify with a one liner demonstrating current code:
perl -e 'use Koha::Libraries; use List::MoreUtils qw(uniq); my $branches = {
map { $_->branchcode => $_->unblessed } Koha::Libraries->search->as_list }; my
$branchcode="CPL"; warn Data::Dumper::Dumper( uniq( $branchcode, keys
%$branches ));'

Signed-off-by: Jonathan Druart <jonathan.dru...@bugs.koha-community.org>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to