[Koha-bugs] [Bug 19405] New: t/db_dependent/api/v1/holds.t fails randomly
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 4 00:20:06 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19405
Bug ID: 19405
Summary: t/db_dependent/api/v1/holds.t fails randomly
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: P5 - low
Component: Test Suite
Assignee: jonathan.druart at bugs.koha-community.org
Reporter: jonathan.druart at bugs.koha-community.org
QA Contact: testopia at bugs.koha-community.org
Depends on: 14868
DBD::mysql::st execute failed: Duplicate entry
'cEMggO40gdPLhcVXbpry8x0izO8lHr8NafFIBJwm0D1HgiXA57YR0a0VVxhQBzvn' for key
'userid' [for Statement "INSERT INTO `borrowers` ( `branchcode`,
`categorycode`, `flags`, `surname`, `userid`) VALUES ( ?, ?, ?, ?, ? )" with
ParamValues: 0='N2ElsY9', 1='Kk8G', 2=80, 3='Test Surname',
4='cEMggO40gdPLhcVXbpry8x0izO8lHr8NafFIBJwm0D1HgiXA57YR0a0VVxhQBzvnnbgezJqmxqwz']
at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1832.
DBIx::Class::Storage::DBI::_dbh_execute(): Duplicate entry
'cEMggO40gdPLhcVXbpry8x0izO8lHr8NafFIBJwm0D1HgiXA57YR0a0VVxhQBzvn' for key
'userid' at /kohadevbox/koha/Koha/Object.pm line 121
# Looks like your test exited with 255 before it could output anything.
[18:52:19] t/db_dependent/api/v1/holds.t
Reading the code I guess it happens if TestBuilder generates a userid with the
size of borrowers.userid (75 chars). In that case the following lines are
wrong:
$borrower->userid($nopermission->{ userid }."z");
$borrower2->userid($nopermission->{ userid }."x");
$borrower3->userid($nopermission->{ userid }."y");
The 3 patrons will have the same userid.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14868
[Bug 14868] REST API: Swagger2-driven permission checking
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list