Bug 32143

Summary: background_jobs fails when special charset
Product: Koha Reporter: Hugo Agud <hagud>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: jonathan.druart
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Hugo Agud 2022-11-09 07:18:19 UTC
We have realized that in koha 22.05 and probably newer koha versions, any process that runs on background_jobs (specially batchitems= it fails if the home branch name includes non english charset

example: 'í'
{"interface":"intranet","id":"Odigital","shibboleth":"0","desk_id":null,"branchname":"Enríquez XXX - Universidad del XXXX","desk_name":null,"cardnumber":"OREX_DIGITAL","flags":"1","number":"25055","register_name":null,"branch":"UNICARIBE","emailaddress":"","surname":"Digital","firstname":"Orex","register_id":null}

causes 500 error

On logs


worker-output.log:malformed UTF-8 character in JSON string, at character offset 212 (before "\x{fffd}ez ...") at /usr/share/koha/lib/Koha/BackgroundJob.pm line 170.

If we change the name and restart servicess (cache and plack) worka again.
Comment 1 Jonathan Druart 2022-11-09 09:11:16 UTC
Looks like a duplicate of bug 31351.

*** This bug has been marked as a duplicate of bug 31351 ***
Comment 2 Jonathan Druart 2022-11-09 09:11:59 UTC
Please upgrade to 22.05.06