[Koha-bugs] [Bug 22522] API authentication breaks with updated Mojolicious version

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 3 14:23:43 CEST 2020


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kyle at bywatersolutions.com

--- Comment #55 from Kyle M Hall <kyle at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #54)
> All the API related tests are failing for 18.11 and 19.05 (maybe 19.11 as
> well, I have just requested a new run 19.11_D9 #156).
> 
> Could that be related to this change?

I think so. At least, they are failing for me on koha-testing-docker,
presumably because the Mojo version is too new.

-    my $spec = $c->match->endpoint->pattern->defaults->{'openapi.op_spec'};
+    my $spec = $c->openapi->spec ||
$c->match->endpoint->pattern->defaults->{'openapi.op_spec'};

Fixes it for me.

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


More information about the Koha-bugs mailing list