Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532812 - www-apps/otrs-3.2.12 fails to handle non latin-1 characters in email body - open body: Invalid argument at /var/lib/otrs/Kernel/cpan-lib/MIME/Entity.pm line 1878.
Summary: www-apps/otrs-3.2.12 fails to handle non latin-1 characters in email body - o...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-17 12:15 UTC by Bas Couwenberg
Modified: 2020-07-09 12:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated ebuild to apply the patch for this issue (otrs-3.2.12.ebuild,4.07 KB, text/plain)
2014-12-17 18:17 UTC, Bas Couwenberg
Details
Patch from OTRS git repo fixing this issue (otrs-perl-5.18-MIME-Entity-532812.patch,2.94 KB, patch)
2014-12-17 18:19 UTC, Bas Couwenberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bas Couwenberg 2014-12-17 12:15:02 UTC
After upgrading perl to 5.18.2-r2 OTRS 3.2.12 no longer handles non latin-1 characters in emails. otrs.PendingJobs.pl reports the following error, this is error is also logged in the apache error_log when replying to an email containing non latin-1 characters.

 open body: Invalid argument at /var/lib/otrs/Kernel/cpan-lib/MIME/Entity.pm line 1878.

This issue was also reported in Debian Bug #726600 which contains a command to reproduce the issue:

"
It can be reduced to this:

  % perl -w -MMIME::Entity -e 'print MIME::Entity->build(Data => "\x{2660}")->body_as_string'
  Strings with code points over 0xFF may not be mapped into in-memory file handles
  open body: Invalid argument at /usr/share/perl5/MIME/Entity.pm line 1878.

or just

  % perl -w -MMIME::Body -e 'MIME::Body::InCore->new("\x{2660}")->open("r") or die "open failed: $!"'
  Strings with code points over 0xFF may not be mapped into in-memory file handles
  open failed: Invalid argument at -e line 1.
"

See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726600#122

This issue was fixed upstream in OTRS in the following commits, which is not yet part of OTRS 3.2.12 (which is also no longer supported)

https://github.com/OTRS/otrs/commit/3200f38e4ece3b73c1d8f98642b0bf30f5e39043
https://github.com/OTRS/otrs/commit/eda2b2b9a19eeaf513be3d214ab5b680d87c49e3

Updating the OTRS ebuild should resolve this issue, the ebuild upgrade is discussed in: https://bugs.gentoo.org/show_bug.cgi?id=506052

Backporting the upstream fix for the 3.2.12 ebuild may be a quicker fix than updating OTRS to 3.3.x or newer.
Comment 1 Bas Couwenberg 2014-12-17 18:17:52 UTC
Created attachment 391866 [details]
Updated ebuild to apply the patch for this issue
Comment 2 Bas Couwenberg 2014-12-17 18:19:26 UTC
Created attachment 391868 [details, diff]
Patch from OTRS git repo fixing this issue

I've updated the otrs-3.2.12 ebuild to apply the patch OTRS upstream commited in their rel_3.2 branch.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-09 12:45:46 UTC
Removed in 934a47e2dfc9eb2ff6a38198622584ef458f028d, following last-rites in bug 664326, bug 692398.