https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40915
Bug ID: 40915
Summary: SIP message parsing with empty fields not perfect
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: SIP2
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
SIP message parsing can create empty field values that later cause DBIx::Class
constraint errors when passed to Koha operations. The current parsing logic in
C4::SIP::Sip::MsgType::_initialize() doesn't provide debug logging to help
identify when critical fields (patron_id, item_id) are empty, making it
difficult to troubleshoot "Odd number of elements in anonymous hash" errors in
SIP server logs.
This includes some scenarios which cause fields to be treated as (empty)
arrayrefs, which flood the logs with this kind of errors:
```
DBIx::Class::ResultSource::_minimal_valueset_satisfying_constraint(): Unable to
satisfy requested constraint 'primary', missing values for column(s):
'itemnumber' at /usr/share/koha/lib/Koha/Objects.pm line 95
DBIx::Class::ResultSource::_minimal_valueset_satisfying_constraint(): Unable to
satisfy requested constraint 'primary', missing values for column(s):
'borrowernumber' at /kohadevbox/koha/Koha/Objects.pm line 95
```
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
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/