Bug report: creating ticket children

So I create two tickets, each in a separate queue, right?

I can add the parent ticket’s url to the child ticket.

And in fact, I can add the child ticket’s url to the parent ticket, but
when I click Display for the parent ticket, instead of the links to the
child ticket, instead I see:

Children:

            * System error

            error:  Can't call method "Id" on an undefined value at
            /usr/share/request-tracker3/html/Ticket/Elements/ShowMembers line 28.
            context:        
            ...     
            24:             % if ($members->Count) {
            25:     <UL>
            26:             % while (my $link = $members->Next) {
            27:     % my $member= $link->BaseObj;
            28:             <LI><a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: <%$member->Subject%> [<%loc($member->Status)%>]<br>
            29:     % if ($depth < 8) {
            30: <&/Ticket/Elements/ShowMembers, Ticket => $member, depth => ($depth+1) &>
            31:     % }
            32: % }
            ...     
            code
            stack:
            /usr/share/request-tracker3/html/Ticket/Elements/ShowMembers:28
            /usr/share/request-tracker3/html/Ticket/Elements/ShowLinks:57
            /usr/share/request-tracker3/html/Ticket/Elements/ShowSummary:65
            /usr/share/request-tracker3/html/Ticket/Display.html:33
            /usr/share/request-tracker3/html/autohandler:196
            raw error

So I create two tickets, each in a separate queue, right?

I can add the parent ticket’s url to the child ticket.

It helps to tell us which verion of RT you’re running…

Hello,

I wrote a script for sending an email for password retrieval. Since the user
is not logged in RT when this email is being sent, I have to do some stuff
manually (which normally RT is doing for me). So I use something like this:

my $template = RT::Template->new( $self->CurrentUser );
$template->LoadGlobalTemplate(‘Password Change’);

my $parsed = $template->_ParseContent();

my $entity = MIME::Entity->build(
From => $from,
To => $email,
‘X-RT-Loop-Prevention’ => $RT::rtname,
Type => “text/plain”,
Charset => “utf-8”,
Subject => loc(“Trouble Ticket New
Password”),
Data => [$parsed]
);

RT::I18N::SetMIMEEntityToEncoding( $entity, $RT::EmailOutputEncoding,
‘mime_words_ok’ );
open (MAIL, “|$RT::SendmailPath $RT::SendmailArguments”) || return(0);
print MAIL $entity->as_string;
close(MAIL);

The problem is that even tough the email body has the correct encoding
(shift-jis in my case), the email subject is still broken. I tried many
tricks but had no luck.
Could anybody tell me what I’m doing wrong?

Thanks!

Dimitry

So I create two tickets, each in a separate queue, right?

I can add the parent ticket’s url to the child ticket.

It helps to tell us which verion of RT you’re running…

Sorry… the request-tracker3 package in Debian testing, which is:

Version: 3.0.11-1

Nobody can help me with that???-----Original Message-----
From: Dimitry Faynerman [mailto:dimitry.faynerman@hypermediasystems.com]
Sent: Thursday, July 08, 2004 7:21 AM
To: ‘rt-users@lists.bestpractical.com’
Subject: encoding of the email subject

Hello,

I wrote a script for sending an email for password retrieval. Since the user
is not logged in RT when this email is being sent, I have to do some stuff
manually (which normally RT is doing for me). So I use something like this:

my $template = RT::Template->new( $self->CurrentUser );
$template->LoadGlobalTemplate(‘Password Change’);

my $parsed = $template->_ParseContent();

my $entity = MIME::Entity->build(
From => $from,
To => $email,
‘X-RT-Loop-Prevention’ => $RT::rtname,
Type => “text/plain”,
Charset => “utf-8”,
Subject => loc(“Trouble Ticket New
Password”),
Data => [$parsed]
);

RT::I18N::SetMIMEEntityToEncoding( $entity, $RT::EmailOutputEncoding,
‘mime_words_ok’ );
open (MAIL, “|$RT::SendmailPath $RT::SendmailArguments”) || return(0);
print MAIL $entity->as_string;
close(MAIL);

The problem is that even tough the email body has the correct encoding
(shift-jis in my case), the email subject is still broken. I tried many
tricks but had no luck.
Could anybody tell me what I’m doing wrong?

Thanks!

Dimitry

Dimitry Faynerman wrote:

Nobody can help me with that???
Broken? In which way? Corrupted? Is it in B or in Q MIME headers
encoding or it’s not encoded at all?

IMHO It’s not RT. Try next
require Encode;
my $entity = MIME::Entity->build( …

Subject => Encode::encode(“MIME-B”, loc(…) ),


Subject => Encode::encode(“MIME-B”, loc(…) ),

Well, that helped, thanks, but… now it shows correctly only in Outlook.
But when I send an email to yahoo, the body is shown as shift-jis (which is
what I need), but the subject is in Unicode…
How can I fix this?

Thanks,

Dimitry