https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44329 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212772 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212772&action=edit Bug 44329: Do not log the SUSHI api_key when a harvest fails Bug 44329: Do not log the SUSHI api_key when a harvest fails When a SUSHI service answers with an HTTP error, harvest_sushi() warns and dies with the full request URL. That URL carries &api_key=<key>, so the provider's key ended up in the log and in the background job's error for every failed harvest. The URL is now logged and shown with the api_key value masked (api_key=*****). The request itself is unchanged. The patch also corrects two POD headings that did not match their sub's name (_sushi_code_is_error, _handle_sushi_request), which the QA tools report for a touched file. Test plan: 1. Apply only the test file change and run prove t/db_dependent/Koha/ERM/EUsage/UsageDataProvider.t The new subtest "harvest_sushi() does not log the api_key" fails: the warning and the error contain SECRET-KEY-123. 2. Apply the whole patch and run it again: it passes. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.