[Koha-bugs] [Bug 23653] Plack stopped working - JSON validation timeout

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 24 05:15:02 CEST 2020


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

--- Comment #10 from Mason James <mtj at kohaaloha.com> ---
hmm, this does look like a legitimate bug, caused by 22522

the 'try' block always fails with...

 Can't locate object method "bundle" via package
"JSON::Validator::OpenAPI::Mojolicious" at /kohadevbox/koha/Koha/REST/V1.pm
line 76.


...and the 'catch' block calls validator->load_and_validate_schema() which does
a lookup to swagger.io


./Koha/REST/V1.pm
 72
 73     # Try to load and merge all schemas first and validate the result just
once.
 74     my $spec;
 75     try {
 76         $spec = $validator->bundle(
 77             {
 78                 replace => 1,
 79                 schema =>
$self->home->rel_file("api/v1/swagger/swagger.json")
 80             }
 81         );
 82

100     }
101     catch {
102         # Validation of the complete spec failed. Resort to validation
one-by-one
103         # to catch bad ones.
104         $validator->load_and_validate_schema(
105             $self->home->rel_file("api/v1/swagger/swagger.json"),
106             {
107                 allow_invalid_ref  => 1,
108             }
109         );

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


More information about the Koha-bugs mailing list