[Koha-bugs] [Bug 25774] REST API searches don't handle correctly utf8 characters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 19 21:47:34 CEST 2020


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

--- Comment #13 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 106110
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106110&action=edit
Bug 25774: Handle utf8 chars in REST API queries

We must utf8 encode the string before json decoding it.

Test plan:
Use "❤" and play with the library search (bug 25288) and Postman to
generate queries using it.

This patch prevents 500:
[2020/06/16 14:11:37] [ERROR] GET /api/v1/libraries: unhandled exception
(Mojo::Exception)<<Wide character in subroutine entry at
/kohadevbox/koha/Koha/REST/Plugin/Objects.pm line 107.>>
Koha::REST::Plugin::Exceptions::__ANON__
/kohadevbox/koha/Koha/REST/Plugin/Exceptions.pm (73)

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list