[Koha-bugs] [Bug 22522] New: ILL API breaks with updated Mojolicious version

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 15 16:15:04 CET 2019


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

            Bug ID: 22522
           Summary: ILL API breaks with updated Mojolicious version
 Change sponsored?: ---
           Product: Koha
           Version: 18.05
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: ILL
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: jose-mario.monteiro-santos at inlibro.com
                CC: andrew.isherwood at ptfs-europe.com,
                    philippe.blouin at inlibro.com
  Target Milestone: ---

When we tried to setup the ILL module using FreeForm as its backend, the ILL
requests page in our staff client would not load any of the requests. We would
get an error message saying that there was a problem with missing content in
the Datable.

Upon investigation, we discovered that the calls made to the API were returning
"Malformed query" errors. When validating the query, Auth.pm checks for
authorized parameters in openapi.op_spec, which wasn't defined anywhere in our
case. After a quick discussion with Andrew Isherwood on IRC, we downgraded
Mojolicious (from 8.02 to 7.21), JSON::Validator (from 3.02 to 0.97) and
Mojolicious::Plugin::OpenAPI (from 2.08 to 1.15) and everything worked.

Isn't this problematic ? If these modules aren't installed or don't meet the
minimum version required by Koha, cpan will install the most recent versions
and the API won't work. While this was experienced with the ILL module, I
assume that other API calls can and will break in the same way.

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


More information about the Koha-bugs mailing list