[Koha-bugs] [Bug 29437] New: 500 error when performing a catalog search for an ISBN13 with no valid ISBN10

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 8 20:24:14 CET 2021


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

            Bug ID: 29437
           Summary: 500 error when performing a catalog search for an
                    ISBN13 with no valid ISBN10
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Cataloging
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: m.de.rooy at rijksmuseum.nl

When performing a cataloging search we take the query and test to see if it is
a valid isbn:
If not, we perform a SQL search for the term as author or title
If so, we pass it to BreedingSearch as an ISBN - we then normailize it to ISBN
10 - then perform aSQL search for ISBN

In the ISBN case, if it cannot be converted to a 10 digit ISBN we nullify the
term - the SQL then has no where statement and fails in plack-error.log:
C4::Breeding::BreedingSearch(): DBI Exception: DBD::mysql::st execute failed:
You have an error in your SQL syntax; check the manual that corresponds to your
MariaDB server version for the right syntax to use near '' at line 5 at
/kohadevbox/koha/cataloguing/addbooks.pl line 117

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


More information about the Koha-bugs mailing list