[Koha-bugs] [Bug 23864] New: Viewing list of ILL requests gives 400 from the API

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 22 10:05:56 CEST 2019


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

            Bug ID: 23864
           Summary: Viewing list of ILL requests gives 400 from the API
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: ILL
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: magnus at libriotech.no

On current master, when I try to view the list of ILL requests on
<intranet>/cgi-bin/koha/ill/ill-requests.pl, the table is empty. 

JS Console says:

GET
http://localhost:8081/api/v1/illrequests?embed=metadata,patron,capabilities,library,status_alias,comments,requested_partners
400 (Bad Request)

Plack error log says:

[2019-10-22 09:56:28.65973] [4790] [debug] [55fbc1aa] GET "/api/v1/illrequests"
[2019-10-22 09:56:28.66872] [4790] [debug] [55fbc1aa] Routing to controller
"Koha::REST::V1::Auth" and action "under"
Use of uninitialized value $_[2] in hash element at
/usr/local/share/perl/5.24.1/Mojolicious/Plugin/OpenAPI.pm line 275.
[2019-10-22 09:56:28.71873] [4790] [debug] [55fbc1aa] 400 Bad Request
(0.058955s, 16.962/s)

Line 275 of /usr/local/share/perl/5.24.1/Mojolicious/Plugin/OpenAPI.pm looks
like this:

sub _parameters_for { $_[0]->{parameters_for}{$_[2]}{lc($_[1])} || [] }

Plack access log says:

10.0.2.2 - - [22/Oct/2019:09:57:30 +0200] "GET /intranet/ill/ill-requests.pl
HTTP/1.1" 200 38845 "http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl"
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu
Chromium/77.0.3865.90 Chrome/77.0.3865.90 Safari/537.36"
10.0.2.2 - - [22/Oct/2019:09:57:31 +0200] "GET
/api/v1/app.pl/api/v1/illrequests?embed=metadata,patron,capabilities,library,status_alias,comments,requested_partners
HTTP/1.1" 400 - "http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl"
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu
Chromium/77.0.3865.90 Chrome/77.0.3865.90 Safari/537.36"
10.0.2.2 - - [22/Oct/2019:09:57:31 +0200] "GET /intranet/errors/404.pl
HTTP/1.1" 404 16726 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
(KHTML, like Gecko) Ubuntu Chromium/77.0.3865.90 Chrome/77.0.3865.90
Safari/537.36"

Could perhaps be a data problem, but I am pretty sure this used to work with
the same data. 

I tried to apply the patches from bug 23529, but that did not fix things.

-- 
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