[Bug 25385] New: When entering a too long barcode, Koha explodes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25385 Bug ID: 25385 Summary: When entering a too long barcode, Koha explodes Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl We don't validate for length in the forms and this can lead to bad errors especially for users new to Koha: To test: - Edit any item in your catalog - Change the barcode to be longer than 20 characters - Save - You see en arror message: DBIx::Class::Storage::DBI::_dbh_execute(): Data too long for column 'barcode' at row 1 at /home/vagrant/kohaclone/Koha/Object.pm line 164 at /usr/share/perl5/DBIx/Class/Exception.pm line 77 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25385 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|When entering a too long |When cataloguing a too long |barcode, Koha explodes |barcode, Koha explodes -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25385 --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- When not using strict, there is no error, the barcode will be silently "cut" to 20 characters. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25385 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|When cataloguing a too long |When cataloguing a too long |barcode, Koha explodes |barcode, Koha explodes or | |silently cuts it at 20 | |characters -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25385 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=24535, | |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=25386 CC| |jonathan.druart@bugs.koha-c | |ommunity.org -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org