[Rt-devel] Another bug report for RT 3.8
Jesse Vincent
jesse at bestpractical.com
Mon Jul 28 09:25:03 EDT 2008
On Jul 28, 2008, at 6:48 AM, Richard Hartmann wrote:
> On Sun, Jul 27, 2008 at 01:46, Jesse Vincent
> <jesse at bestpractical.com> wrote:
>
>> Can you paste the snippet that went awry? I have an idea of
>> something that
>> may make you happy and be a fairly reasonable middle ground, but I
>> need to
>> know more about exactly how you got it to fail so badly.
>
> The minimal snippet, as in my initial mail, is
>
> $Ticket->QueueObj->Tag
>
> which makes RT complain with
>
> [Mon Jul 14 21:03:01 2008] [error]: Template parsing error:
> RT::Queue::Tag Unimplemented in Text::Template::GEN0. (template line
> 10)
>
What I'd like to see is a patch that wraps each of the template's
blocks in an 'eval {}' such that we could trap a failing block and
keep going. I suspect it's going to be necessary to subclass
Text::Template and override a sub.
> Stack:
> [/usr/local/share/perl/5.8.8/DBIx/SearchBuilder/Record.pm:495]
> [template:10]
> [/usr/local/rt3/bin/../lib/RT/Template_Overlay.pm:432]
> [/usr/local/rt3/bin/../lib/RT/Template_Overlay.pm:336]
> [/usr/local/rt3/bin/../lib/RT/Template_Overlay.pm:312]
> [/usr/local/rt3/bin/../lib/RT/Action/SendEmail.pm:158]
> [/usr/local/rt3/bin/../lib/RT/Action/Autoreply.pm:66]
> [/usr/local/rt3/bin/../lib/RT/ScripAction_Overlay.pm:230]
> [/usr/local/rt3/bin/../lib/RT/Scrip_Overlay.pm:435]
> [/usr/local/rt3/bin/../lib/RT/Scrips_Overlay.pm:240]
> [/usr/local/rt3/bin/../lib/RT/Transaction_Overlay.pm:169]
> [/usr/local/rt3/bin/../lib/RT/Record.pm:1419]
> [/usr/local/rt3/bin/../lib/RT/Ticket_Overlay.pm:648]
> [/usr/local/rt3/bin/../lib/RT/Interface/Email.pm:1352]
> [/usr/local/rt3/share/html/REST/1.0/NoAuth/mail-gateway:61]
> (/usr/local/rt3/bin/../lib/RT/Template_Overlay.pm:427)
>
> Said variable was in line 10 of the template.
>
>
> If there is any more info you need, please poke me :)
>
> Richard
>
More information about the Rt-devel
mailing list