[Koha-bugs] [Bug 18022] Empty barcode causes internal server error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 24 10:12:29 CET 2017


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

--- Comment #7 from Koha Team Lyon 3 <koha at univ-lyon3.fr> ---
I tested against master (on a vbox) and at first sight, it seems OK. At least,
no error, even if we set a permission to the patron.

But the issue is real on 3.22 (our preprod version is 3.22.12). A parameter is
really passed to circulation.pl (probably in post method) and I can now assert
that this parameter is the flags value (?!!). Don't ask me how it is but it is.
In the first comment from ClintD, the "1" string corresponds with no doubt to
superlibrarian flags value.

To reproduce, you can try that. 
1) take a patron without any permissions and check that the error issue does
not already occurs.
2) set a permission to him. Tick for instance the "reservesforothers" one
(flags value = 64)
3) go back to checkout tab, put your cursor in the barcode input and press
Enter :
you will get this :
Can't use string ("64") as a HASH ref while "strict refs"....
4) remove the permission
5) redo step 3. you will now get this :
Can't use string ("0") as a HASH ref while "strict refs"....

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


More information about the Koha-bugs mailing list