[Koha-bugs] [Bug 12243] New: Records with invalid ISBNs can cause searches to fail

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 13 13:17:57 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12243

            Bug ID: 12243
           Summary: Records with invalid ISBNs can cause searches to fail
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: gmcharlt at gmail.com
          Reporter: kyle at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

Some types of invalid ISBNs, when run throught C4::Koha::NormalizeISBN can
produce ISBN objects that contain invalid ISBNs. This can be reproduced with an
ISBN that has an invalid prefix, group code or publisher code. An example ISBN
would be "0788893777 (2 DVD 45th ed)".

When attempting to look up a record with such an ISBN, you will get an error
along the lines of: Can't call method "as_string" on an undefined value

Instead of checking for the BAD_ISBN state, we should be checking for the
GOOD_ISBN state vi the method is_valid.

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


More information about the Koha-bugs mailing list