Bug 32143 - background_jobs fails when special charset
Summary: background_jobs fails when special charset
Status: RESOLVED DUPLICATE of bug 31351
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low major (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-09 07:18 UTC by Hugo Agud
Modified: 2022-11-09 11:18 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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