[rt-users] Attachment Problems

Steven Hollingsworth steven at aznc.com
Wed Apr 18 11:52:55 EDT 2007


Hello list, I tried to debug/solve this but had no luck.

I'm trying to attach a 90k file to a ticket, and get a 27b file with the wrong encoding
([application/x-crossover-pdf 27b]) inside the ticket.

I've followed the instructions outlined on the wiki regarding
attachments. Changed my.cnf and RT_SiteConfig.pm

Google was not my friend on this one (searched encode error at end of
this e-mail) +RT +"Encode::Guess failed"

Attached is the info for my current setup.

Thanks,

~ stevo

=====================
Output of System Configuration
=====================

Loaded perl modules

Perl v5.8.8 under linux 
  Apache2::Access v2.000003;
  Apache2::Connection v2.000003;
  Apache2::Const v2.000003;
  Apache2::Log v2.000003;
  Apache2::Module v2.000003;
  Apache2::RequestIO v2.000003;
  Apache2::RequestRec v2.000003;
  Apache2::RequestUtil v2.000003;
  Apache2::Response v2.000003;
  Apache2::ServerRec v2.000003;
  Apache2::ServerUtil v2.000003;
  Apache2::Status v4.00;
  Apache::DBI v1.06;
  Apache::Session v1.80;
  Apache::Session::File v1.54;
  Apache::Session::Generate::MD5 v2.1;
  Apache::Session::Lock::File v1.02;
  Apache::Session::Serialize::Storable v1.00;
  Apache::Session::Store::File v1.02;
  APR v0.009000;
  APR::Const v0.009000;
  APR::Pool v0.009000;
  APR::Status v0.009000;
  APR::Table v0.009000;
  AutoLoader v5.60;
  base v2.07;
  Benchmark v1.07;
  bytes v1.02;
  Cache::Simple::TimedExpiry v0.27;
  capitalization v0.03;
  Carp v1.04;
  CGI v3.27;
  CGI::Cookie v1.27;
  CGI::Util v1.5;
  Class::Container v0.12;
  Class::Data::Inheritable v0.06;
  Class::ReturnValue v0.53;
  Clone v0.22;
  constant v1.05;
  Cwd v3.24;
  Data::Dumper v2.121_08;
  Date::Format v2.22;
  Date::Parse v2.27;
  DBD::mysql v3.0008;
  DBI v1.53;
  DBIx::SearchBuilder v1.48;
  DBIx::SearchBuilder::Union v0;
  DBIx::SearchBuilder::Unique v0.01;
  Devel::StackTrace v1.13;
  Devel::StackTraceFrame v0.6;
  Devel::Symdump v2.0604;
  Digest::base v1.00;
  Digest::MD5 v2.36;
  DynaLoader v1.05;
  Encode v2.12;
  Encode::Alias v2.04;
  Encode::Config v2.01;
  Encode::Encoding v2.02;
  Errno v1.0901;
  Exception::Class v1.23;
  Exception::Class::Base v1.2;
  Exporter v5.58;
  Exporter::Heavy v5.58;
  Fcntl v1.05;
  File::Basename v2.74;
  File::Glob v1.05;
  File::Path v1.08;
  File::Spec v3.24;
  File::Spec::Functions v1.3;
  File::Spec::Unix v1.5;
  File::Temp v0.17;
  FileHandle v2.01;
  HTML::Element v3.23;
  HTML::Entities v1.35;
  HTML::Formatter v2.04;
  HTML::FormatText v2.04;
  HTML::Mason v1.35;
  HTML::Mason::ApacheHandler v1.69;
  HTML::Mason::Exception v1.1;
  HTML::Mason::Exception::Abort v1.1;
  HTML::Mason::Exception::Compilation v1.1;
  HTML::Mason::Exception::Compilation::IncompatibleCompiler v1.1;
  HTML::Mason::Exception::Compiler v1.1;
  HTML::Mason::Exception::Decline v1.1;
  HTML::Mason::Exception::Params v1.1;
  HTML::Mason::Exception::Syntax v1.1;
  HTML::Mason::Exception::System v1.1;
  HTML::Mason::Exception::TopLevelNotFound v1.1;
  HTML::Mason::Exception::VirtualMethod v1.1;
  HTML::Mason::Exceptions v1.43;
  HTML::Parser v3.55;
  HTML::Scrubber v0.08;
  HTML::Tagset v3.10;
  HTML::TreeBuilder v3.23;
  HTTP::Date v1.47;
  I18N::LangTags v0.35;
  integer v1.00;
  IO v1.22;
  IO::File v1.13;
  IO::Handle v1.25;
  IO::InnerFile v2.110;
  IO::Lines v2.110;
  IO::Scalar v2.110;
  IO::ScalarArray v2.110;
  IO::Seekable v1.1;
  IO::Wrap v2.110;
  IO::WrapTie v2.110;
  IPC::Open2 v1.02;
  IPC::Open3 v1.02;
  lib v0.5565;
  List::Util v1.19;
  Locale::Maketext v1.10;
  Locale::Maketext::Fuzzy v0.02;
  Locale::Maketext::Lexicon v0.62;
  Locale::Maketext::Lexicon::Gettext v0.15;
  Log::Dispatch v2.14;
  Log::Dispatch::Base v1.09;
  Log::Dispatch::Output v1.26;
  Log::Dispatch::Screen v1.17;
  Log::Dispatch::Syslog v1.18;
  Mail::Address v1.74;
  Mail::Field v1.74;
  Mail::Field::AddrList v1.74;
  Mail::Field::Date v1.74;
  Mail::Header v1.74;
  Mail::Internet v1.74;
  MIME::Base64 v3.07;
  MIME::Body v5.420;
  MIME::Decoder v5.420;
  MIME::Entity v5.420;
  MIME::Field::ContDisp v5.420;
  MIME::Field::ConTraEnc v5.420;
  MIME::Field::ContType v5.420;
  MIME::Field::ParamVal v5.420;
  MIME::Head v5.420;
  MIME::Parser v5.420;
  MIME::QuotedPrint v3.07;
  MIME::Tools v5.420;
  MIME::Words v5.420;
  mod_perl v2.000003;
  mod_perl2 v2.000003;
  ModPerl::Const v2.000003;
  ModPerl::Global v2.000003;
  ModPerl::Registry v1.99;
  ModPerl::RegistryCooker v1.99;
  ModPerl::Util v2.000003;
  Module::Versions::Report v1.02;
  overload v1.04;
  Params::Validate v0.86;
  POSIX v1.09;
  re v0.05;
  Regexp::Common v2.120;
  Regexp::Common::delimited v2.104;
  RT v3.6.3;
  RT::Interface::Email v2;
  Scalar::Util v1.19;
  SelectSaver v1.01;
  Socket v1.78;
  Storable v2.15;
  strict v1.03;
  Symbol v1.06;
  Sys::Syslog v0.18;
  Text::Autoformat v1.13;
  Text::Quoted v1.8;
  Text::Reform v1.11;
  Text::Tabs v2007.0711;
  Text::Template v1.44;
  Text::Wrapper v1.000;
  Time::HiRes v1.9;
  Time::JulianDay v2003.1125;
  Time::Local v1.13;
  Time::ParseDate v2006.0814;
  Time::Timezone v2006.0814;
  Time::Zone v2.22;
  UNIVERSAL v1.01;
  UNIVERSAL::require v0.11;
  URI v1.35;
  URI::Escape v3.28;
  URI::URL v5.03;
  URI::WithBase v2.19;
  utf8 v1.06;
  vars v1.01;
  warnings v1.05;
  warnings::register v1.01;
  XSLoader v0.06;



RT Variables
RT::AmbiguousDayInPast 	1
RT::BasePath 	//var/www/localhost/rt-3.6.3
RT::BinPath 	//var/www/localhost/rt-3.6.3/bin
RT::CORE_CONFIG_FILE 	//var/www/localhost/rt-3.6.3/etc/RT_Config.pm
RT::CommentAddress 	RT_CommentAddressNotSet
RT::CorrespondAddress 	RT_CorrespondAddressNotSet
RT::DatabaseHost 	localhost
RT::DatabaseName 	rt3
RT::DatabasePassword 	Password not printed
RT::DatabaseRTHost 	localhost
RT::DatabaseType 	mysql
RT::DatabaseUser 	someuser
RT::DateDayBeforeMonth 	1
RT::DefaultSearchResultFormat 	'<B><A HREF="/Ticket/Display.html?id=__id__">__id__</a></B>/TITLE:#', '<B><A HREF="/Ticket/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject', Status, QueueName, OwnerName, Priority, '__NEWLINE__', '', '<small>__Requestors__</small>', '<small>__CreatedRelative__</small>', '<small>__ToldRelative__</small>', '<small>__LastUpdatedRelative__</small>', '<small>__TimeLeft__</small>'
RT::DefaultSummaryRows 	10
RT::EmailOutputEncoding 	utf-8
RT::EtcPath 	//var/www/localhost/rt-3.6.3/etc
RT::FriendlyFromLineFormat 	"%s via RT" <%s>
RT::FriendlyToLineFormat 	"%s of host.example.com Ticket #%s":;
RT::LocalEtcPath 	//var/www/localhost/rt-3.6.3/local/etc
RT::LocalLexiconPath 	//var/www/localhost/rt-3.6.3/local/po
RT::LocalPath 	//var/www/localhost/rt-3.6.3/local
RT::LogDir 	//var/www/localhost/rt-3.6.3/var/log
RT::LogToFileNamed 	rt.log
RT::LogToScreen 	error
RT::LogToSyslog 	debug
RT::LogoURL 	/NoAuth/images/bplogo.gif
RT::LoopsToRTOwner 	1
RT::MailCommand 	sendmailpipe
RT::MasonComponentRoot 	//var/www/localhost/htdocs/rt
RT::MasonDataDir 	//var/www/localhost/rt-3.6.3/var/mason_data
RT::MasonLocalComponentRoot 	//var/www/localhost/rt-3.6.3/local/html
RT::MasonSessionDir 	//var/www/localhost/rt-3.6.3/var/session_data
RT::MaxAttachmentSize 	10000000
RT::MaxInlineBody 	13456
RT::MessageBoxWidth 	72
RT::MessageBoxWrap 	HARD
RT::MinimumPasswordLength 	5
RT::OldestTransactionsFirst 	1
RT::Organization 	host.example.com
RT::OwnerEmail 	root
RT::RTAddressRegexp 	^rt\@example.com$
RT::RecordOutgoingEmail 	1
RT::RedistributeAutoGeneratedMessages 	privileged
RT::SITE_CONFIG_FILE 	//var/www/localhost/rt-3.6.3/etc/RT_SiteConfig.pm
RT::SendmailArguments 	-oi -t
RT::SendmailBounceArguments 	-f "<>"
RT::SendmailPath 	/usr/sbin/sendmail
RT::ShowTransactionImages 	1
RT::StrictLinkACL 	1
RT::Timezone 	US/Pacific
RT::UseFriendlyFromLine 	1
RT::VERSION 	3.6.3
RT::VarPath 	//var/www/localhost/rt-3.6.3/var
RT::WebBaseURL 	http://rt.local:8082
RT::WebDefaultStylesheet 	3.5-default
RT::WebFlushDbCacheEveryRequest 	1
RT::WebImagesURL 	/NoAuth/images/
RT::WebPort 	8082
RT::WebSessionClass 	Apache::Session::File
RT::WebURL 	http://rt.local:8082/
RT::rtname 	host.example.com
Perl configuration

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.6.16-gentoo-r1, archname=i686-linux
    uname='linux host 2.6.16-gentoo-r1 #1 smp wed may 31 07:35:01 pdt 2006 i686 intel(r) pentium(r) 4 cpu 3.40ghz gnulinux '
    config_args='-des -Darchname=i686-linux -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=i686-pc-linux-gnu-gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-O2 -march=pentium4 -fomit-frame-pointer -Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1 -Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.

=====================
Log Entries, no errors in mysql.log, no logs in rt/var/logs
=====================

Apr 18 06:47:54 host RT: Encode::Guess failed: ; fallback to iso-8859-1 (//var/www/localhost/rt-3.6.3/lib/RT/I18N.pm:414)
Apr 18 06:47:54 host RT: Encode::Guess failed: ; fallback to iso-8859-1 (//var/www/localhost/rt-3.6.3/lib/RT/I18N.pm:414)
Apr 18 06:47:55 host RT: <rt-3.6.3-16654-1176904075-526.15-3-0 at host.example.com> #15/147 - Scrip 3  (//var/www/localhost/rt-3.6.3/lib/RT/Action/SendEmail.pm:243)
Apr 18 06:47:55 host RT: <rt-3.6.3-16654-1176904075-526.15-3-0 at host.example.com> sent  To: steven at example.com (//var/www/localhost/rt-3.6.3/lib/RT/Action/SendEmail.pm:274)
Apr 18 06:47:55 host RT: <rt-3.6.3-16654-1176904075-1649.15-4-0 at host.example.com> #15/147 - Scrip 4  (//var/www/localhost/rt-3.6.3/lib/RT/Action/SendEmail.pm:243)
Apr 18 06:47:55 host RT: <rt-3.6.3-16654-1176904075-1649.15-4-0 at host.example.com> No recipients found. Not sending. (//var/www/localhost/rt-3.6.3/lib/RT/Action/SendEmail.pm:255)
Apr 18 06:47:55 host RT: Ticket 15 created in queue 'General' by steven (//var/www/localhost/rt-3.6.3/lib/RT/Ticket_Overlay.pm:754)

----- End forwarded message -----



More information about the rt-users mailing list