Error by handling Attachment in dhandler/1.1.2.4 RT2

hi,
i have hier RT2 with dhandler/1.1.2.4 and a question:

  1. when i click on an attachment, the html-page was deliver as
    text not html.
  2. the attachment was not found: "Bad transaction number for
    attachment."
    this can i found in the html source.

Is there such a bugfix for this problem?

my second problem, i have fixed this in :
…rt2/WebRT/html/Ticket/Attachment/dhandler
[root@rt Attachment]# diff dhandler dhandler.old
4,7d3
< #
< # URL: http://server.de/Ticket/Attachment/307/245/
< # Arg: 307/245
< #
9,10c5,6
< $trans = $1;
< $attach = $2;

    $trans = $2;
    $attach = $3;

19c15
< Abort(“Bad transaction number ($trans) for attachment.”);

    Abort("Bad transaction number for attachment.");

with this fix, i have found the next problem: the mimetype and filename
for
the attachment was not set correct…

can everbody help me ?

regards
Dirk Haenelt
IT-Leitstelle JVA Dresden

it looks like you’re running an out of date copy of RT. what rev of
RT did that autohandler come from? This was fixed a while back, to the best
of my knowledge.On Thu, Aug 02, 2001 at 01:15:16PM +0200, Dirk Haenelt wrote:

hi,
i have hier RT2 with dhandler/1.1.2.4 and a question:

  1. when i click on an attachment, the html-page was deliver as
    text not html.
  2. the attachment was not found: "Bad transaction number for
    attachment."
    this can i found in the html source.

Is there such a bugfix for this problem?

my second problem, i have fixed this in :
…rt2/WebRT/html/Ticket/Attachment/dhandler

[root@rt Attachment]# diff dhandler dhandler.old
4,7d3
< #
< # URL: http://server.de/Ticket/Attachment/307/245/
< # Arg: 307/245
< #
9,10c5,6
< $trans = $1;
< $attach = $2;

    $trans = $2;
    $attach = $3;

19c15
< Abort(“Bad transaction number ($trans) for attachment.”);

    Abort("Bad transaction number for attachment.");

with this fix, i have found the next problem: the mimetype and filename
for
the attachment was not set correct…

can everbody help me ?

regards

Dirk Haenelt
IT-Leitstelle JVA Dresden


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

that’s security the same way that asking for directions to topeka and
being told that a seal is a mammal is informative
-robin@apocalypse.org

Jesse schrieb:

it looks like you’re running an out of date copy of RT. what rev of
RT did that autohandler come from? This was fixed a while back, to the best
of my knowledge.

hm,
its look like a version 1-3-80. is this a rt2 version ?

regards
Dirk Haenelt
IT-Leitstelle JVA Dresden

That was a pre-release version of RT 2.0. You probably want to upgrade
to 2.0.4On Fri, Aug 03, 2001 at 08:22:31AM +0200, Dirk Haenelt wrote:

Jesse schrieb:

it looks like you’re running an out of date copy of RT. what rev of
RT did that autohandler come from? This was fixed a while back, to the best
of my knowledge.

hm,
its look like a version 1-3-80. is this a rt2 version ?

regards

Dirk Haenelt
IT-Leitstelle JVA Dresden

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

Any e-mail sent to the SLA will immediately become the intellectual property
of the SLA and the author of said message will enter into a period of
indentured servitude which will last for a period of time no less than seven
years.

Jesse schrieb:

That was a pre-release version of RT 2.0. You probably want to upgrade
to 2.0.4

thanks, now i have upgraded to the version 2-0-4 .

but i have an error:

raw error:

     error while executing /Search/Listing.html:
     Can't locate object method "FreezeLimits" via package

“RT::Tickets” at /opt/rt2/WebRT/data/obj/Search/Listing.html line 126.
HTML::Mason::Interp::ANON(‘Can’t locate object method
"FreezeLimits" via package "RT::Tick…’) called at
/opt/rt2/WebRT/data/obj/Search/Listing.html line 126
HTML::Mason::Commands::ANON(‘ValueOfQueue’, 5,
‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’, ‘QueueOp’, ‘=’,
…) called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Component.pm
line 131

HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9fff474)’,
‘ValueOfQueue’, 5, ‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’,
‘QueueOp’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653

HTML::Mason::Request::comp(‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’,
‘HTML::Mason::Component::FileBased=HASH(0x9fff474)’, ‘ValueOfQueue’, 5,
‘ValueOfStatus’,
‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 316

HTML::Mason::Request::call_next(‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’)
called at /opt/rt2/WebRT/data/obj/autohandler line 52
HTML::Mason::Commands::ANON(‘ValueOfQueue’, 5,
‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’, ‘QueueOp’, ‘=’,
…) called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Component.pm
line 131

HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9929d94)’,
‘ValueOfQueue’, 5, ‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’,
‘QueueOp’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653

HTML::Mason::Request::comp(‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’,
‘HASH(0xa0ca6a4)’, ‘HTML::Mason::Component::FileBased=HASH(0x9929d94)’,
‘ValueOfQueue’, 5,
‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 159
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 159

HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’,
’/Search/Listing.html’, ‘ValueOfQueue’, 5, ‘ValueOfStatus’,
‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line
914

HTML::Mason::ApacheHandler::handle_request_1(‘HTML::Mason::ApacheHandler=HASH(0x9e857ec)’,
‘Apache=SCALAR(0x9ee3610)’,
‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’, undef)
called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm
line 560
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560

HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(0x9e857ec)’,
‘Apache=SCALAR(0x9ee3610)’) called at /opt/rt2/bin/webmux.pl line 148
RT::Mason::handler(‘Apache=SCALAR(0x9ee3610)’) called at
/dev/null line 0
require 0 called at /dev/null line 0

Dirk Haenelt
IT-Leitstelle JVA Dresden

you didn’t follow the upgrade procedure. especially the bit about checking and
fixing perl dependencies.On Fri, Aug 03, 2001 at 08:39:10AM +0200, Dirk Haenelt wrote:

Jesse schrieb:

That was a pre-release version of RT 2.0. You probably want to upgrade
to 2.0.4

thanks, now i have upgraded to the version 2-0-4 .

but i have an error:

raw error:

     error while executing /Search/Listing.html:
     Can't locate object method "FreezeLimits" via package

“RT::Tickets” at /opt/rt2/WebRT/data/obj/Search/Listing.html line 126.
HTML::Mason::Interp::ANON(‘Can’t locate object method
"FreezeLimits" via package "RT::Tick…’) called at
/opt/rt2/WebRT/data/obj/Search/Listing.html line 126
HTML::Mason::Commands::ANON(‘ValueOfQueue’, 5,
‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’, ‘QueueOp’, ‘=’,
…) called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Component.pm
line 131

HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9fff474)’,
‘ValueOfQueue’, 5, ‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’,
‘QueueOp’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653

HTML::Mason::Request::comp(‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’,
‘HTML::Mason::Component::FileBased=HASH(0x9fff474)’, ‘ValueOfQueue’, 5,
‘ValueOfStatus’,
‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 316

HTML::Mason::Request::call_next(‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’)
called at /opt/rt2/WebRT/data/obj/autohandler line 52
HTML::Mason::Commands::ANON(‘ValueOfQueue’, 5,
‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’, ‘QueueOp’, ‘=’,
…) called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Component.pm
line 131

HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0x9929d94)’,
‘ValueOfQueue’, 5, ‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’,
‘QueueOp’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 653

HTML::Mason::Request::comp(‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’,
‘HASH(0xa0ca6a4)’, ‘HTML::Mason::Component::FileBased=HASH(0x9929d94)’,
‘ValueOfQueue’, 5,
‘ValueOfStatus’, ‘ARRAY(0x9ffa88c)’, ‘StatusOp’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 159
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/Request.pm line 159

HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’,
’/Search/Listing.html’, ‘ValueOfQueue’, 5, ‘ValueOfStatus’,
‘ARRAY(0x9ffa88c)’, ‘StatusOp’, ‘=’, …) called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line
914

HTML::Mason::ApacheHandler::handle_request_1(‘HTML::Mason::ApacheHandler=HASH(0x9e857ec)’,
‘Apache=SCALAR(0x9ee3610)’,
‘HTML::Mason::Request::ApacheHandler=HASH(0x9ff9960)’, undef)
called at /usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm
line 560
require 0 called at
/usr/lib/perl5/site_perl/5.6.0/HTML/Mason/ApacheHandler.pm line 560

HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(0x9e857ec)’,
‘Apache=SCALAR(0x9ee3610)’) called at /opt/rt2/bin/webmux.pl line 148
RT::Mason::handler(‘Apache=SCALAR(0x9ee3610)’) called at
/dev/null line 0
require 0 called at /dev/null line 0


Dirk Haenelt
IT-Leitstelle JVA Dresden

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

I admit that X is the second worst windowing system in the world, but all the
others I’ve used are tied for first.

Jesse schrieb:

you didn’t follow the upgrade procedure. especially the bit about checking and
fixing perl dependencies.

i have upgaded all requ. perl modules:
(and a few new installed)
/usr/bin/perl ./tools/testdeps -warn mysql
Checking for DBI 1.18 …found
Checking for DBIx::DataSource 0.02 …found
Checking for DBIx::SearchBuilder 0.40 …found
Checking for HTML::Entities…found
Checking for MLDBM…found
Checking for Net::Domain…found
Checking for Net::SMTP…found
Checking for Params::Validate 0.02 …found
Checking for HTML::Mason 0.896 …found
Checking for CGI::Cookie 1.06 …found
Checking for Apache::Cookie…found
Checking for Apache::Session 1.53 …found
Checking for Date::Parse…found
Checking for Date::Format…found
Checking for MIME::Entity 5.108 …found
Checking for Mail::Mailer 1.20 …found
Checking for Getopt::Long 2.24 …found
Checking for Tie::IxHash…found
Checking for Text::Wrapper…found
Checking for Text::Template…found
Checking for File::Spec 0.8 …found
Checking for Errno…found
Checking for FreezeThaw…found
Checking for File::Temp…found
Checking for Log::Dispatch 1.6 …found
Checking for DBD::mysql 2.0416 …found

than i have upgraded the rt2 again, but this error
come’s over and over…

error in file:
/opt/rt2/WebRT/data/obj/Search/Listing.html

     line 126: 
         Can't locate object method "FreezeLimits" via package

“RT::Tickets”

context:

122:
$_out->(’/Search/Listing.html?ClearRestrictions=1">New
search

123:
<A HREF="’);
124:
$_out->($_escape->(( $RT::WebPath),‘h’));
125:
$_out->(’/Search/Listing.html?Bookmark=’);
126:

$_out->($_escape->(($session{‘tickets’}->FreezeLimits()),‘u’,‘h’));
127:
$_out->(’&TicketsSortBy=’);
128:
$_out->($_escape->(($session{‘tickets_sort_by’}),‘h’));
129:
$_out->(’&TicketsSortOrder=’);
130:
$_out->($_escape->(($session{‘tickets_sort_order’}),‘h’));

component stack:
/Search/Listing.html
/autohandler
code stack:
/opt/rt2/WebRT/data/obj/Search/Listing.html:126
/opt/rt2/WebRT/data/obj/autohandler:52
Dirk Haenelt
IT-Leitstelle JVA Dresden

That looks like you didn’t restart apache after upgrading.On Fri, Aug 03, 2001 at 09:11:48AM +0200, Dirk Haenelt wrote:

Jesse schrieb:

you didn’t follow the upgrade procedure. especially the bit about checking and
fixing perl dependencies.

i have upgaded all requ. perl modules:
(and a few new installed)
/usr/bin/perl ./tools/testdeps -warn mysql
Checking for DBI 1.18 …found
Checking for DBIx::DataSource 0.02 …found
Checking for DBIx::SearchBuilder 0.40 …found
Checking for HTML::Entities…found
Checking for MLDBM…found
Checking for Net::Domain…found
Checking for Net::SMTP…found
Checking for Params::Validate 0.02 …found
Checking for HTML::Mason 0.896 …found
Checking for CGI::Cookie 1.06 …found
Checking for Apache::Cookie…found
Checking for Apache::Session 1.53 …found
Checking for Date::Parse…found
Checking for Date::Format…found
Checking for MIME::Entity 5.108 …found
Checking for Mail::Mailer 1.20 …found
Checking for Getopt::Long 2.24 …found
Checking for Tie::IxHash…found
Checking for Text::Wrapper…found
Checking for Text::Template…found
Checking for File::Spec 0.8 …found
Checking for Errno…found
Checking for FreezeThaw…found
Checking for File::Temp…found
Checking for Log::Dispatch 1.6 …found
Checking for DBD::mysql 2.0416 …found

than i have upgraded the rt2 again, but this error
come’s over and over…

error in file:
/opt/rt2/WebRT/data/obj/Search/Listing.html

     line 126: 
         Can't locate object method "FreezeLimits" via package

“RT::Tickets”

context:

122:
$_out->(’/Search/Listing.html?ClearRestrictions=1">New
search

123:
<A HREF="’);
124:
$_out->($_escape->(( $RT::WebPath),‘h’));
125:
$_out->(’/Search/Listing.html?Bookmark=’);
126:

$_out->($_escape->(($session{‘tickets’}->FreezeLimits()),‘u’,‘h’));
127:
$_out->(’&TicketsSortBy=’);
128:
$_out->($_escape->(($session{‘tickets_sort_by’}),‘h’));
129:
$_out->(’&TicketsSortOrder=’);
130:
$_out->($_escape->(($session{‘tickets_sort_order’}),‘h’));

component stack:
/Search/Listing.html
/autohandler
code stack:
/opt/rt2/WebRT/data/obj/Search/Listing.html:126
/opt/rt2/WebRT/data/obj/autohandler:52

Dirk Haenelt
IT-Leitstelle JVA Dresden

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

Computer games don’t affect kids; I mean if Pac-Man affected us as
kids, we’d all be running around in darkened rooms, munching magic
pills and listening to repetitive electronic music.
%
IP networks were intended to survive nuclear attack, but 12 year old
kids with PCs were not part of the threat model. – mycroft

Jesse schrieb:

That looks like you didn’t restart apache after upgrading.

oh man guy, that was it !

many thanks !!!
Dirk Haenelt
IT-Leitstelle JVA Dresden