Koha-clms/Koha/REST/V1
Jonathan Druart 855e09163a
Bug 32923: Fix x-koha-embed from EHoldings/*/*
We were validating twice the input and it broke the x-koha-embed header.
I don't really know what's happening, but here is how to recreate the
problem:
1. Edit Koha/REST/V1/ERM/EHoldings/Packages/EBSCO.pm
2. Add the following lines in Koha/REST/V1/ERM/EHoldings/Packages/EBSCO.pm, in the list method
    warn $c->req->headers->header('x-koha-embed');
3. curl -v -s -u koha:koha --request GET http://kohadev-intra.mydnsname.org:8081/api/v1/erm/eholdings/ebsco/packages --header "x-koha-embed: resources+count,vendor"

=> There is no vendor in the response
=> The warn displays "resources+count"

If you apply this patch you will notice that "vendor" is part of the
response and the warn displays "resources+count, vendor"

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-02-27 11:07:19 -03:00
..
Acquisitions Bug 32030: rename filter_by_have_subpermission with filter_by_have_permission 2022-11-08 09:43:35 -03:00
Auth Bug 30962: (QA follow-up) Rename attribute and simplify tests 2023-02-03 10:30:13 -03:00
Biblios Bug 24857: API spec 2022-07-08 15:59:55 -03:00
CashRegisters Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Clubs Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
Config/SMTP Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ERM Bug 32923: Fix x-koha-embed from EHoldings/*/* 2023-02-27 11:07:19 -03:00
OAuth Bug 32178: Remove security breach introduced in bug 31378 2022-11-15 18:43:45 -03:00
Patrons Bug 27342: Remove dbh from C4::Auth 2022-08-16 10:45:41 -03:00
AdvancedEditorMacro.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ArticleRequests.pm Bug 27947: (QA follow-up) Make parameters a hashref 2021-10-06 10:09:54 +02:00
Auth.pm Bug 30588: Add the option to require 2FA setup on first staff login 2022-10-21 11:36:57 -03:00
BackgroundJobs.pm Bug 30982: (QA follow-up) Spelling 2022-09-23 08:57:50 -03:00
Biblios.pm Bug 29939: Use the REST API for ratings 2022-08-22 11:31:15 -03:00
Checkouts.pm Bug 30275: Add `/api/v1/checkouts/{checkout_id}/renewals` 2022-07-05 09:46:04 -03:00
CirculationRules.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Cities.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ERM.pm Bug 32030: ERM - Users 2022-11-08 09:43:36 -03:00
Holds.pm Bug 24860: Implement reserves.item_group_id 2022-11-04 19:39:55 -03:00
Illbackends.pm Bug 22615: Fix perlcritic 2020-03-05 13:03:46 +00:00
Illrequests.pm Bug 29032: Pre-load ILL backends to speed up response 2021-09-21 20:22:56 +02:00
ImportBatchProfiles.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ImportRecordMatches.pm Bug 30855: Rename /import => /import_batches 2022-06-02 13:42:28 -03:00
Items.pm Bug 31797: Add DELETE /items/:item_id endpoint 2023-01-30 12:20:44 -03:00
Libraries.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
OAuth.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Patrons.pm Bug 22993: Handle default messaging preferences during patron creation from API 2022-03-08 23:03:34 -10:00
Quotes.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ReturnClaims.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
SearchFilter.pm Bug 17170: (QA follow-up) Spec cleanup 2022-10-21 11:15:22 -03:00
Stage.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Static.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Suggestions.pm Bug 32030: rename filter_by_have_subpermission with filter_by_have_permission 2022-11-08 09:43:35 -03:00
TransferLimits.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
TwoFactorAuth.pm Bug 30588: Add the option to require 2FA setup on first staff login 2022-10-21 11:36:57 -03:00