[Koha-bugs] [Bug 19898] Koha 17.11 - Upload Local Cover Image Failed - " Cannot process file as an image"
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 2 19:11:33 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19898
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart at bugs.koha-c
| |ommunity.org
--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
The relevant code of the warning is:
1084 my $branches = { map { $_->branchcode => $_->unblessed
} Koha::Libraries->search };
1085 if ( $type ne 'opac' and
C4::Context->boolean_preference('AutoLocation') ) {
1086
1087 # we have to check they are coming from the right
ip range
1088 my $domain =
$branches->{$branchcode}->{'branchip'};
1089 $domain =~ s|\.\*||g;
1090 if ( $ip !~ /^$domain/ ) {
1091 $loggedin = 0;
1092 $cookie = $query->cookie(
1093 -name => 'CGISESSID',
1094 -value => '',
1095 -HttpOnly => 1
1096 );
1097 $info{'wrongip'} = 1;
1098 }
1099 }
It says that you have AutoLocation turned on and the "branchip" field of the
branches table does not match your IP. It also says that you are using a non
superlibrarian account.
Could you confirm this?
If the IP does not match, it is expected that you are rejected, but in that
case it should be the same behaviour with other scripts.
--
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