[Koha-bugs] [Bug 25504] Wrong API spec breaks plack without meaningful error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 27 15:45:26 CEST 2020


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #106011|0                           |1
        is obsolete|                            |

--- Comment #20 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 109227
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109227&action=edit
Bug 25504: Improve REST API spec loading errors

Test plan:
1. Introduce a typo in swagger.json or another spec json file.
2. Restart plack if used or try to access the REST APIs
3. Without the patch, verify that  an incomplete error message and potentially
lots of stack trace are logged.
4. With the patch, verify that much more meaningful error messages are logged
and stack trace is omitted.
5. Fix the problem introduced in step 1 and verify that no messages are logged,
or only warning about bundle is logged with Debian Stretch.
6. Repeat with a REST API plugin.

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


More information about the Koha-bugs mailing list