Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76970 - rt-3.2.1 errors when trying to view ... Believe has to do with MIME::QuotedPrint and MIME-tools
Summary: rt-3.2.1 errors when trying to view ... Believe has to do with MIME::QuotedPr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Renat Lumpau (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-06 17:33 UTC by Ryan Roland
Modified: 2005-06-12 13:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Roland 2005-01-06 17:33:00 UTC
I ran into some problems viewing www-apps/rt-3.2.1 web interface.  I got a 500 Internal Server Error.  Which is why I began investigating this.  
Please keep in mind that I know very little about the perl environment structure so I'm kinda guessing on some of this

Facts:
-	rt-3.2.1 requires >= MIME-tools-5.411a-r2
-	MIME-tools is considered stable (x86) up to 5.415, so this version is installed
-	MIME-tools 5.415 requires MIME-Base64 v3.05 or greater
-	MIME-Base64 v3.01 and v3.05 are both ~x86
-	perl v5.8.5-r2 itself loads MIME::QuotedPrint v3.01
-	MIME-Base64 v3.05 brings in MIME::QuotedPrint v3.03 (into vendor_perl/)
-	MIME-tools requires MIME::QuotedPrint v3.03 since 5.412
	 (see 2004-09-08 @ http://search.cpan.org/src/DSKOLL/MIME-tools-5.412/ChangeLog )

Theories:
-	mod_perl 1.27 (which rt uses) seems to use MIME::QuotedPrint v3.01
-	Perhaps rt tells mod_perl to use that one (?)

Basis for theory:
-	rt ebuild recommends creating a .htaccess file
-	this htaccess file has directive "PerlSetEnv PERL5LIB /usr/lib"
-	when try to access rt web interface, receive server error
-	/var/log/apache/error_log says:

[Thu Jan  6 20:23:32 2005] [alert] [client XXX.XXX.XXX.XXX] 
/var/www/localhost/htdocs/rt/.htaccess: MIME::QuotedPrint version 3.03 required--this is only version 3.01 at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Words.pm line 86.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Words.pm line 86.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Head.pm line 123.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Head.pm line 123.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Entity.pm line 235.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Entity.pm line 235.
Compilation failed in require at /usr/lib/RT/I18N.pm line 44.
BEGIN failed--compilation aborted at /usr/lib/RT/I18N.pm line 44.
Compilation failed in require at /usr/lib/RT.pm line 29.
BEGIN failed--compilation aborted at /usr/lib/RT.pm line 29.
Compilation failed in require at /usr/bin/webmux.pl line 43.
BEGIN failed--compilation aborted at /usr/bin/webmux.pl line 43.
Compilation failed in require at (eval 9) line 1.



Now, I'm not sure how to prove my Theory other than the errors I'm seeing


(Possible) Solution:
There is a new version of MIME-tools: 5.416

http://search.cpan.org/~dskoll/MIME-tools-5.416/

This version is supposed to fix some problems working with older versions of MIME::QuotedPrint

This *MAY* fix my issue as well as possibly:

http://bugs.gentoo.org/show_bug.cgi?id=69625
and 
http://bugs.gentoo.org/show_bug.cgi?id=69625

I'm not sure how much different than 5.415 a 5.416 ebuild needs to be.  However, it would seem you may be able to drop the requirement for MIME-Base64 >= 3.05.

If anyone else can confirm/deny/disprove/explain what I'm experiencing better, I'd appreciate it.

Also let me know if there is any additional information you need.

Thanks,

Ryan

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chris Covington 2005-02-16 08:56:37 UTC
I can confirm this problem on my system as well when using rt-mailgate with the latest ebuilds of Apache 1.33 and mod_perl 1.27:

(temporary failure. Command output: RT server error.  The RT server which handled your email did not behave as expected. It said:     <html><body>  <p align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><b>System error</b></font></p> <table border="0" cellspacing="0" cellpadding="1">  <tr>   <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>error:</b>&nbsp;</font></td>   <td align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">Undefined subroutine &amp;MIME::Decoder::QuotedPrint::encode_qp_threearg called at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Decoder/QuotedPrint.pm line 95.<br></font></td>  </tr>  <tr>   <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>context:</b>&nbsp;</font></td>   <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">    <table border="0" cellpadding="0" cellspacing="0">      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>...</b>&nbsp;</font></td>      <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"></font></td>     </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>91:</b>&nbsp;</font></td>      <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"># and storage of messages.  WARNING: we can only do this if the line won't</font></td>     </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>92:</b>&nbsp;</font></td>      <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"># grow beyond 76 characters!</font></td>     </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>93:</b>&nbsp;</font></td>      <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">#</font></td>     </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>94:</b>&nbsp;</font></td>      <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">sub encode_qp_really {</font></td>     </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>95:</b>&nbsp;</font></td>      <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><font color=red>    my $enc = encode_qp_threearg(shift, undef, not shift);</font></font></td>     </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>96:</b>&nbsp;</font></td>      <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">    if (length($enc) &lt; 74) {</font></td>     </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>97:</b>&nbsp;</font></td>      <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> $enc =~ s/^\.\n/=2E\n/g;      # force encoding of /^\.$/</font></td>     </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>98:</b>&nbsp;</font></td>      <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> $enc =~ s/^From /=46rom /g;   # force encoding of /^From /</font></td>     </tr>      <tr>      <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>99:</b>&nbsp;</font></td>      <td align="left" vali)

I do have MIME-tools: 5.416
Comment 2 Chris Covington 2005-02-16 14:42:40 UTC
ps - I fixed this problem by doing an:

emerge =MIME-tools-5.411a-r2

Chris
Comment 3 Steph L 2005-04-26 10:26:22 UTC
MIME-tools-5.411a-r2 is really old and many fixes have been included in 
recent MIME-tools version. 
Try to get rt working with the latest one (5.416) .
The latest one in CPAN is 5.417 . Try to build a local ebuild for
this release and check if the problem is solved. 

Look if you didn't install several versions of MIME-tools and/or
MIME-base64 (some manually or CPAN and some others with 
ebuild).
I don't have any issue on ppc with 5.416
Comment 4 Renat Lumpau (RETIRED) gentoo-dev 2005-06-12 13:25:47 UTC
Thanks for filing the bug. Please try with rt-3.4.2 and reopen if the problem
persists.