Koha-clms/t/db_dependent/Koha
Jonathan Druart 1cb8d2a59d 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@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit b1af5a62cb)
2020-06-23 10:31:36 +02:00
..
Account Bug 23051: (QA follow-up) Missing curly and tabs and fix test 2020-03-06 10:03:41 +00:00
Acquisition Bug 24161: (follow-up) Fix failing test (when running slow) 2020-05-13 16:05:36 +01:00
Biblio
…
BiblioUtils Bug 23463: Replace AddItem calls with Koha::Item->store 2020-03-23 09:26:26 +00:00
Cash Bug 24815: Add additional tests 2020-04-29 16:17:53 +01:00
Charges Bug 22887: (RM follow-up) Fix Charges Test 2020-04-14 19:51:45 +01:00
Checkouts Bug 24507: Make Checkouts/ReturnClaim.t pass on MySQL 8 2020-01-24 15:20:18 +00:00
Club Bug 24546: Fix intentions of build_sample_item in Club/Hold.t 2020-01-31 13:55:55 +00:00
Config
…
Filter Bug 23793: Unit tests 2019-10-23 17:33:09 +01:00
IssuingRules Bug 18936: Fix IssuingRules/guess_article_requestable_itemtypes.t 2020-02-04 09:56:29 +00:00
Item
…
Library
…
Objects/Mixin Bug 23994: Fix random failure from AdditionalFields.t (U18) 2019-11-08 09:31:47 +00:00
Patron Bug 20443: Move C4::Members::AttributeTypes::GetAttributeTypes to Koha::Patron::Attribute::Types 2020-03-23 13:44:35 +00:00
Patrons Bug 18308: (RM follow-up) Fix failing tests 2020-05-05 10:49:07 +01:00
Plugins Bug 18308: (RM follow-up) Clarify intent of tests 2020-05-05 14:59:35 +01:00
REST Bug 25774: Handle utf8 chars in REST API queries 2020-06-23 10:31:36 +02:00
SearchEngine Bug 25278: add clear_search_fields_cache method 2020-05-18 15:28:42 +01:00
Subscription
…
Tags
…
Template/Plugin Bug 13547: (QA follow-up) Add basic tests 2020-05-12 11:44:52 +01:00
XSLT Bug 25641: Fix Koha/XSLT/Base.t failures on U20 2020-06-16 21:37:46 +00:00
Z3950Responder Bug 25277: Unit test 2020-05-18 15:27:22 +01:00
Account.t Bug 24818: (RM follow-up) Update tests for DATE -> TIMESTAMP change 2020-03-19 13:05:58 +00:00
ActionLogs.t Bug 24329: Add a test 2020-01-08 11:05:00 +00:00
ApiKeys.t
…
Authorities.t Bug 24823: Drop Catmandu dependency 2020-05-12 11:43:19 +01:00
Biblio.t Bug 25540: Use build_sample_item 2020-05-23 08:33:57 +01:00
BiblioFrameworks.t
…
Biblios.t Bug 23463: Replace AddItem calls with Koha::Item->store 2020-03-23 09:26:26 +00:00
Checkouts.t
…
CirculationRules.t Bug 24602: Tests for get_onshlefholds_policy 2020-02-10 08:56:30 +00:00
Cities.t
…
ClassSortRules.t
…
ClassSources.t
…
ClassSplitRules.t
…
CsvProfiles.t
…
Database.t Bug 22001: Add tests 2020-03-27 08:53:02 +00:00
Desks.t Bug 13881: Add desk management 2020-03-25 09:19:15 +00:00
GetDailyQuote.t
…
Holds.t Bug 24722: Add test 2020-03-17 16:48:52 +00:00
IssuingRules.t Bug 18936: (follow-up) Add cloning of circulation rules back to Koha 2020-02-04 09:56:29 +00:00
Item.t Bug 25421: Make ->pickup_locations only return an arrayref 2020-05-12 10:59:58 +01:00
ItemTypes.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Items.t Bug 23463: Replace AddItem calls with Koha::Item->store 2020-03-23 09:26:26 +00:00
KeyboardShortcuts.t
…
Libraries.t Bug 24368: Remove Koha::Libraries->pickup_locations 2020-05-13 10:30:41 +01:00
MarcSubfieldStructures.t
…
News.t
…
Notices.t
…
Object.t Bug 25638: Add tests for JSON conversion vs DBD::mysql 2020-06-16 21:47:07 +00:00
Objects.t Bug 25423: (follow-up) Unit tests 2020-05-08 15:42:37 +02:00
Old.t Bug 24150: Prevent random failure comparing updated_on 2020-01-07 16:27:54 +00:00
Patron.t Bug 24459: Regression tests 2020-01-23 09:07:07 +00:00
Patrons.t Bug 23495: Fix if no sms provider defined 2020-04-29 16:57:06 +01:00
Ratings.t
…
Reports.t
…
Reviews.t
…
SMS_Providers.t
…
SearchField.t Bug 20589: (RM follow-up) Fix Koha::SearchField.t 2019-10-03 14:17:32 +01:00
SharedContent.t Bug 23075: (RM follow-up) Update mock in tests 2019-11-07 07:56:17 +00:00
Statistics.t Bug 24149: Add tests 2020-01-23 10:40:24 +00:00
Subscription.t
…
Suggestion.t Bug 24419: Add Koha::Suggestion->suggester accessor 2020-01-20 16:37:22 +00:00
Suggestions.t Bug 23591: Add some useful methods to Koha::Suggestions 2020-04-14 16:36:13 +01:00
Tags.t
…
Z3950Servers.t
…