Scrips and dynamic templates

My original goal was to change the scrip “On Create Autoreply To
Requestors with template Autoreply”.

I want to use one template if a certain custom field were non-null,
and the normal Autoreply template for the default case. And, I
thought I should do this for some queues, not all. (BTW, I have
modified the email internal code so it can parse the incoming
email for special commands and create a CF if needed. This is all
based on an RT2 mailgate for giving commands with email, worked
up for RT3. So in fact, the CF can exist during the initial
create transaction.)

I read through what docs (and wiki) I could find, but they seem a
bit sketchy. So I’d like to have some assertions confirmed, as
well as ask advice. (Sorry for the long note. If I can assemble
enough info, I’ll write a wiki article to help others that reach
my state of befuddlement.)

  • The wiki page talks about creating a scrip condition
    by adding code into a directory such as rt/local/lib/RT/Condition/

    Whereas most of the other comments have to do with putting custom
    code in the web page under “Scrips”.

    Assertion 1: Filling out the web page puts the code into
    the database. Obviously, writing new code in
    rt/local/lib/RT/Condition/ does not.

    Assertion 2: Writing a new condition into rt/local/lib/RT/Condition/
    would affect that condition only, and therefore all scrips
    that use that condition. Whereas putting a new condition
    into the database goes into the table Scrips, as opposed
    to ScripConditions, and therefore affects only the
    single condition-action-template combination specified.

  • If I write a custom condition on the web page, is that ANDed
    with something else like “OnCreate”, or does it only apply
    at all if I choose “UserDefined” ?

  • I presume “Custom action preparation” and "Custom action cleanup"
    run before and after the selected action from the dropdown box?

  • The database schema has columns for ConditionRules and ActionRules.
    I can’t match them to what I see on the web page. Are they used?

  • What is a “stage”, and what is the difference between TransactionCreate
    and TransactionBatch?

  • Are templates a strictly replace-the-variables kind of template,
    or can I have branches or loops, as with Template::Toolkit?

  • Can I override or turn off a Global Scrip for a specific queue?
    I’d prefer not to have to turn off the scrip globally,
    because then I’d have to define the replacement for every
    queue, including the ones I haven’t created yet. (Is there
    a condition OnQueueCreate ?)

Ok, now for the advice. I see several potential options.
Which is cleanest?

  1. Modify template with a branch, depending on value of
    a custom field. If so, how?

  2. Modify condition so that it somehow dynamically modifies
    the scrip it is in, to choose one template or the other.

  3. Replace the Autoreply scrip with two scrips,
    OnCreate with CF-non-null, use template Autoreply-special
    OnCreate with CF–null, use template Autoreply-default

    (And can I add the CF check to the existing OnCreate condition,
    or do I have to fully make new conditions?)

Thanks much for any help.

bobg

Sorry for only answering the small part I know…On Sun, Jun 20, 2004 at 12:45:18PM -0500, Bob Goldstein wrote:

  • Are templates a strictly replace-the-variables kind of template,
    or can I have branches or loops, as with Template::Toolkit?

Templates are Text::Template
(Text::Template - Expand template text with embedded Perl - metacpan.org) templates. It is
basically Perl embeded in the text and doesn’t require learning a
whole new template language.

Michael
Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

Sorry for only answering the small part I know…

Thanks, that’s already useful!

Unfortunately, it doesn’t look like Text::Template
will let me put blocks of templated text between
control structures. I can do this:

{
if (…) {
$OUT .= “stuff”;
} else {
$OUT .= “other stuff”;
}
}

But not this:

[ if (…) { ]
stuff

[ } else { ]

   other stuff

[}]

Oh, well. At least I can get done what I need to,
even if not pretty. I realized after I sent my note,
Mason would have been a better choice than Template::Toolkit,
since RT already uses it.

bobg

But not this:

[ if (…) { ]

Don’t do that. That’s a Template::Toolkitism. Text::Template uses
normal Perl as in your first example.

Oh, well. At least I can get done what I need to,
even if not pretty.

It may not look “pretty” to you, but its a whole heck of a lot easier
to understand instead of having to learn another “language.”

I realized after I sent my note,
Mason would have been a better choice than Template::Toolkit,
since RT already uses it.

RT only uses Mason for the UI. Text::Template is used for the message
templates.

Michael
Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”

Bob Goldstein О©╫О©╫О©╫О©╫О©╫:

My original goal was to change the scrip “On Create Autoreply To
Requestors with template Autoreply”.

I want to use one template if a certain custom field were non-null,
and the normal Autoreply template for the default case. And, I
thought I should do this for some queues, not all. (BTW, I have
modified the email internal code so it can parse the incoming
email for special commands and create a CF if needed. This is all
based on an RT2 mailgate for giving commands with email, worked
up for RT3. So in fact, the CF can exist during the initial
create transaction.)

http://wiki.bestpractical.com/index.cgi?HowTos

I read through what docs (and wiki) I could find, but they seem a
bit sketchy. So I’d like to have some assertions confirmed, as
well as ask advice. (Sorry for the long note. If I can assemble
enough info, I’ll write a wiki article to help others that reach
my state of befuddlement.)

  • The wiki page talks about creating a scrip condition
    by adding code into a directory such as rt/local/lib/RT/Condition/

    Whereas most of the other comments have to do with putting custom
    code in the web page under “Scrips”.

    Assertion 1: Filling out the web page puts the code into
    the database. Obviously, writing new code in
    rt/local/lib/RT/Condition/ does not.

    Assertion 2: Writing a new condition into rt/local/lib/RT/Condition/
    would affect that condition only, and therefore all scrips
    that use that condition. Whereas putting a new condition
    into the database goes into the table Scrips, as opposed
    to ScripConditions, and therefore affects only the
    single condition-action-template combination specified.
    When you put condition into module under …/lib/RT/Condition/ then you
    should register this module in DB.

  • If I write a custom condition on the web page, is that ANDed
    with something else like “OnCreate”, or does it only apply
    at all if I choose “UserDefined” ?
    Last. Only if “UserDefined”

  • I presume “Custom action preparation” and “Custom action cleanup”
    run before and after the selected action from the dropdown box?
    No. RT doesn’t support running scrip code before action.
    Request Tracker Wiki

  • The database schema has columns for ConditionRules and ActionRules.
    I can’t match them to what I see on the web page. Are they used?

  • What is a “stage”, and what is the difference between TransactionCreate
    and TransactionBatch?
    In 3.0.x stage select box appear by incident :slight_smile: I can’t explain all
    issues you should look at source code. Patch was on devel list and was
    approved for 3.2. I hope it’s there :slight_smile: didn’t look yet.

  • Are templates a strictly replace-the-variables kind of template,
    or can I have branches or loops, as with Template::Toolkit?
    perldoc Text::Template
  • Can I override or turn off a Global Scrip for a specific queue?
    I’d prefer not to have to turn off the scrip globally,
    because then I’d have to define the replacement for every
    queue, including the ones I haven’t created yet. (Is there
    a condition OnQueueCreate ?)
    One of the most desired feature. Dirk Pape has patch that add this feature.

Hi,

I want to change the default logo in RT (3.0.11)
I already did the following:
Copy the RT file share/html/Elements/Header into
local/html/Elements/Header
Edit that new file changing
<%$RT::WebImagesURL%>/bplogo.gif" alt="" width="230"
height=“50”>
to your logo.

However, the logo does not display. It just does the normal placeholder,
when the image can’t be found. When I view the source, it is correct (the
file is where it should, and the attributes are the same as bplogo.gif

We use RT 3.0.11 with fastcgi, and Apache 2.0.48, on Fedora Core 2, and Perl
5.8.0
And when I look at the logs, it picks up the file where it should.
What could be the problem?

Thanks
Werner Morgenstern

Hi,
We use RT 3.0.11 with fastcgi, Perl 5.8.0, Apache 2.0.48, on Fedora Core 2.

I have set up the mailgate (which works very well). It sents all new
tickets (which come in via email) to the GENERAL Queue.
Now I want to set up a scrip (or condition), that when a new ticket comes in
via email (it won’t be needed for the Web Interface), the scrip will scan
the email (subject and maybe first line of body) for certain keywords, and
then it will put the new ticket into the queue associated with that Keyword.
E.g. when a Ticket comes in, that email is not working, it will go into the
queue EMAIL PROBLEMS.

How do I do that? Are there examples?

Thanks
Werner Morgenstern

Werner Morgenstern wrote:

Hi,
We use RT 3.0.11 with fastcgi, Perl 5.8.0, Apache 2.0.48, on Fedora Core 2.

I have set up the mailgate (which works very well). It sents all new
tickets (which come in via email) to the GENERAL Queue.
Now I want to set up a scrip (or condition), that when a new ticket comes in
via email (it won’t be needed for the Web Interface), the scrip will scan
the email (subject and maybe first line of body) for certain keywords, and
then it will put the new ticket into the queue associated with that Keyword.
E.g. when a Ticket comes in, that email is not working, it will go into the
queue EMAIL PROBLEMS.

How do I do that? Are there examples?
Request Tracker Wiki
Code snippets chapter has an example “Change ticket’s queue with target
queue name”

Keywords checks you can do with simple regexps.

So what is the object name for the Email Subject and Body (only first line)?
How do I determine between if the ticket was added via email or Web
Interface?
Thanks
Werner

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.From: Ruslan U. Zakirov [mailto:cubic@acronis.ru]
Sent: Wednesday, June 23, 2004 11:17 AM
To: wmorgenstern@coopoptical.com
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Scrip to move new ticket into correct queue

Werner Morgenstern wrote:

Hi,
We use RT 3.0.11 with fastcgi, Perl 5.8.0, Apache 2.0.48, on Fedora Core

I have set up the mailgate (which works very well). It sents all new
tickets (which come in via email) to the GENERAL Queue.
Now I want to set up a scrip (or condition), that when a new ticket
comes in via email (it won’t be needed for the Web Interface), the
scrip will scan the email (subject and maybe first line of body) for
certain keywords, and then it will put the new ticket into the queue
associated with that Keyword.
E.g. when a Ticket comes in, that email is not working, it will go
into the queue EMAIL PROBLEMS.

How do I do that? Are there examples?
Request Tracker Wiki
Code snippets chapter has an example “Change ticket’s queue with target
queue name”

Keywords checks you can do with simple regexps.

Thanks
Werner Morgenstern

Try to find a graphic that displays properly, and copy the variable
attributes and display that image. If it works move your image to the
directory where the working graphic is stored. I ended up getting it to
work with the following code located in /rt/local/html/Elements/Header, and
placing the graphic in /rt/share/html/NoAuth/pgr.gif

Hopefully that helps.

Jeff

                  "Werner Morgenstern"                                                                                                         
                  <wmorgenstern@coopoptical.com         To:      <rt-users@lists.bestpractical.com>                                            
                  >                                     cc:                                                                                    
                  Sent by:                              Subject: [rt-users] Change Logo                                                        
                  rt-users-bounces@lists.bestpr                                                                                                
                  actical.com                                                                                                                  
                                                                                                                                               
                                                                                                                                               
                  06/23/2004 10:57 AM                                                                                                          
                  Please respond to                                                                                                            
                  wmorgenstern                                                                                                                 

Hi,

I want to change the default logo in RT (3.0.11)
I already did the following:
Copy the RT file share/html/Elements/Header into
local/html/Elements/Header
Edit that new file changing
<%$RT::WebImagesURL%>/bplogo.gif" alt=“” width=“230”
height=“50”>
to your logo.

However, the logo does not display. It just does the normal placeholder,
when the image can’t be found. When I view the source, it is correct (the
file is where it should, and the attributes are the same as bplogo.gif

We use RT 3.0.11 with fastcgi, and Apache 2.0.48, on Fedora Core 2, and
Perl
5.8.0
And when I look at the logs, it picks up the file where it should.
What could be the problem?

Thanks
Werner Morgenstern

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and Frankfurt
this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

I tried that. When I am displaying the image directly (putting in the image URL in the browser bar), it get this error:

System error

error: Error during compilation of /opt/rt3/share/html/NoAuth/coop.gif:
Unrecognized character \x12 at /opt/rt3/share/html/NoAuth/coop.gif line 30.

Stack:
[/opt/rt3/share/html/NoAuth/coop.gif:30]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:534]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:311]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:198]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:166]
[/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:265]
[/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:343]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:213]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:207]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:127]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:76]
[/opt/rt3/bin/mason_handler.fcgi:55]

context: …
26: Àp ©ÀWìBG€p»ª ©P Ô‘
27: Š° CÀBXµQP+€´‹QR xˆo@ }€ˆnû©5ùø Dk@ |@½Dÿð?@pùt @¸á‹ ²§±B ,…qU4]P'“[!¿pQIp3¿?àh@ ~p»-«{A Cýö@ÜkÓ;¨¹yk0wÐ ~à Hà –Çcb ¼w@ ª+„ÆûAppuÐWf ×ÅDP t j0
28: ¦© vp™ÒFŽcàÂ0, h—OŠ0¨îqF§A$^ÂD€ÀlPóKh[@¹½| $† TP‡0nG° V¼Âץ訹tbÀt@ Ì74&m s0D@2,]àd€RÜ7¿Ô’M\×b fpdà‡[ÿ0ÈNZbÀ
29: :*¢±•UW°ÈBÐÈ
30: <? @ÌÐ²Ü góÇÕR+]cg^¬qå ùÀ«C°e0AvRÉc€nð ]ÕaÀ¬AS ÅfAÀË16cb@dBPa°‡¶È…JËçqÇ{ŠÜ·‡P'Y\¢ˆÙU^° ÆÀ£[;/Ã,Î]ðÍfJdÃlp˜–ñ3±ÍŠÜU–5ê ÷ôÐS Ð$@аðÐý$À?0ÐÔQ¢^°Ð ý(p+À^0¾ÔôT†–Èubω"Ã\ƒÑ‹ôÒ0ÿ]Ée Fàe¬‚. Óƒ¡#›ì ›âe Á‹”ŃJÝPÀP@àÔ pP° ð  pd½ðM píÔàÕ\ݐÕM½M+„F+w‘ÍSVc5Ti }ì1ØJd4X7@$P-+@!àÐtMÖdm¢m ]Ú¦ Ú §MÖ 31: 0Ö¦­«Û 32: Pאl+Ø71X ÈApÈ÷ã t ­\F[YR0Ù°ðpPÛe WÛ Ú½Ú°ÿÝݪ Ú ÝÝÝÝrM ý*>q¼X@MÔì®Ó @"iÝ©ÝÚ­MÞýÝâ-
33: @0Út-àoÝÛ ÖtýÖ®½Ú à ðÕå­Ý-:€9ÑÓ0€*@*€eÝ[MÚڝÚڍà @â "àÙ0Ö ð àá € 0L®E)Ð 34: #àÙÎßu}åampÖÀÚdýðÖ^žÝŽÚ¨MâeÜ71ØV£2~N}Öj=ÚÚü½bMÖ€4@NîÙ#€)ÀÿèK EŽ€p»”^é0RIð û)ÐéR>0ê5PåN®’5Ðé5åsá Àá¾ãк=:@ðå³ÞáeÍçÀ³½á@× Î¥ž5€ 4Á|Ð }°;0í{Ð še»€€éû¤à%È4îÈ„ ñu xíœé·«é˜îí·;ê£~»#E5°4^æ ã§}Õ°9ÀÒ4!!ðÜÚü­ pÝ3¾ã#À"pxžžêªžò—µp h‚&ˆè {€ vp – )Ltœ+w òkŒîåÿÎdoÐmËËÅj€h°n tL ­P µ @ 9ôt éNíåþò¦’îÌ{»5î¨nþÚne@Þhàeé"p zPòx03Ð öîî#¥

code stack: /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:317
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:198
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:166
/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:265
/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:343
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:213
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:207
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:127
/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:76
/opt/rt3/bin/mason_handler.fcgi:55

raw error

Error during compilation of /opt/rt3/share/html/NoAuth/coop.gif:
Unrecognized character \x12 at /opt/rt3/share/html/NoAuth/coop.gif line 30.

Stack:
[/opt/rt3/share/html/NoAuth/coop.gif:30]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:534]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:311]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:198]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:166]
[/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:265]
[/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:343]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:213]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:207]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:127]
[/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:76]
[/opt/rt3/bin/mason_handler.fcgi:55]

Trace begun at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm line 580
HTML::Mason::Interp::_compilation_error(‘HTML::Mason::Interp=HASH(0xa54f4d0)’, ‘/opt/rt3/share/html/NoAuth/coop.gif’, ‘Error during compilation of :^JUnrecognized character \x12 at /opt/rt3/share/html/NoAuth/coop.gif line 30.^J^JStack:^J [/opt/rt3/share/html/NoAuth/coop.gif:30]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:534]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:311]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:198]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:166]^J [/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:265]^J [/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:343]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:213]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:207]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:127]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:76]^J [/opt/rt3/bin/mason_handler.fcgi:55]^J^J^JStack:^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:311]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:198]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm:166]^J [/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:265]^J [/usr/lib/perl5/site_perl/5.8.3/Class/Container.pm:343]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:213]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm:207]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:127]^J [/usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm:76]^J [/opt/rt3/bin/mason_handler.fcgi:55]^J’) called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm line 317
HTML::Mason::Interp::load(‘HTML::Mason::Interp=HASH(0xa54f4d0)’, ‘/NoAuth/coop.gif’) called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 198
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 186
HTML::Mason::Request::_initialize(‘HTML::Mason::Request::CGI=HASH(0xaa287c0)’) called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Request.pm line 166
HTML::Mason::Request::new(‘HTML::Mason::Request::CGI’, ‘error_mode’, ‘output’, ‘error_format’, ‘html’, ‘autoflush’, 1, ‘cgi_request’, ‘HTML::Mason::FakeApache=HASH(0xaa308f0)’, ‘out_method’, ‘CODE(0xa8ff6f4)’, ‘interp’, ‘HTML::Mason::Interp=HASH(0xa54f4d0)’, ‘comp’, ‘/NoAuth/coop.gif’, ‘args’, ‘ARRAY(0xaa42c94)’, ‘container’, ‘HASH(0xa9b37c8)’) called at /usr/lib/perl5/site_perl/5.8.3/Class/Container.pm line 265
Class::Container::call_method(‘HTML::Mason::Interp=HASH(0xa54f4d0)’, ‘request’, ‘new’, ‘interp’, ‘HTML::Mason::Interp=HASH(0xa54f4d0)’, ‘comp’, ‘/NoAuth/coop.gif’, ‘args’, ‘ARRAY(0xaa42c94)’, ‘container’, ‘HASH(0xa9b37c8)’) called at /usr/lib/perl5/site_perl/5.8.3/Class/Container.pm line 343
Class::Container::create_delayed_object(‘interp’, ‘HTML::Mason::Interp=HASH(0xa54f4d0)’, ‘comp’, ‘/NoAuth/coop.gif’, ‘args’, ‘ARRAY(0xaa42c94)’, ‘container’, ‘HASH(0xa9b37c8)’) called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm line 213
HTML::Mason::Interp::make_request(‘HTML::Mason::Interp=HASH(0xa54f4d0)’, ‘comp’, ‘/NoAuth/coop.gif’, ‘args’, ‘ARRAY(0xaa42c94)’) called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/Interp.pm line 207
HTML::Mason::Interp::exec(undef, undef) called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm line 127
eval {…} at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm line 127
HTML::Mason::CGIHandler::_handler(‘HTML::Mason::CGIHandler=HASH(0xa548974)’, ‘HASH(0xaa3fc34)’) called at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/CGIHandler.pm line 76
HTML::Mason::CGIHandler::handle_cgi_object(‘HTML::Mason::CGIHandler=HASH(0xa548974)’, ‘CGI::Fast=HASH(0xa64d8c0)’) called at /opt/rt3/bin/mason_handler.fcgi line 55
eval {…} at /opt/rt3/bin/mason_handler.fcgi line 55From: Jeff_Leach@Progressive.com [mailto:Jeff_Leach@Progressive.com]
Sent: Wednesday, June 23, 2004 11:26 AM
To: wmorgenstern@coopoptical.com
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Change Logo

Try to find a graphic that displays properly, and copy the variable attributes and display that image. If it works move your image to the directory where the working graphic is stored. I ended up getting it to work with the following code located in /rt/local/html/Elements/Header, and placing the graphic in /rt/share/html/NoAuth/pgr.gif

Hopefully that helps.

Jeff

                  "Werner Morgenstern"                                                                                                         
                  <wmorgenstern@coopoptical.com         To:      <rt-users@lists.bestpractical.com>                                            
                  >                                     cc:                                                                                    
                  Sent by:                              Subject: [rt-users] Change Logo                                                        
                  rt-users-bounces@lists.bestpr                                                                                                
                  actical.com                                                                                                                  
                                                                                                                                               
                                                                                                                                               
                  06/23/2004 10:57 AM                                                                                                          
                  Please respond to                                                                                                            
                  wmorgenstern                                                                                                                 

Hi,

I want to change the default logo in RT (3.0.11) I already did the following:
Copy the RT file share/html/Elements/Header into local/html/Elements/Header
Edit that new file changing
<%$RT::WebImagesURL%>/bplogo.gif" alt=“” width=“230”
height=“50”>
to your logo.

However, the logo does not display. It just does the normal placeholder, when the image can’t be found. When I view the source, it is correct (the file is where it should, and the attributes are the same as bplogo.gif

We use RT 3.0.11 with fastcgi, and Apache 2.0.48, on Fedora Core 2, and Perl 5.8.0 And when I look at the logs, it picks up the file where it should.
What could be the problem?

Thanks
Werner Morgenstern

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

Werner Morgenstern wrote:

I tried that. When I am displaying the image directly (putting in the image URL in the browser bar), it get this error:

System error

error: Error during compilation of /opt/rt3/share/html/NoAuth/coop.gif:
Unrecognized character \x12 at /opt/rt3/share/html/NoAuth/coop.gif line 30.

You should place it in images subdir.

I even tried that. The same.

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.From: Ruslan U. Zakirov [mailto:cubic@acronis.ru]
Sent: Wednesday, June 23, 2004 11:45 AM
To: wmorgenstern@coopoptical.com
Cc: Jeff_Leach@Progressive.com; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Change Logo

Werner Morgenstern wrote:

I tried that. When I am displaying the image directly (putting in the
image URL in the browser bar), it get this error:

System error

error: Error during compilation of /opt/rt3/share/html/NoAuth/coop.gif:
Unrecognized character \x12 at /opt/rt3/share/html/NoAuth/coop.gif line

You should place it in images subdir.

In httpd.conf
<Location /NoAuth/images >
SetHandler none

Werner Morgenstern wrote:

That did not do it either.

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.From: Ruslan U. Zakirov [mailto:cubic@acronis.ru]
Sent: Wednesday, June 23, 2004 12:27 PM
To: wmorgenstern@coopoptical.com
Cc: Jeff_Leach@Progressive.com; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Change Logo

In httpd.conf
<Location /NoAuth/images >
SetHandler none

Werner Morgenstern wrote:

I even tried that. The same.

The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the
sender and delete the material from any computer.

-----Original Message-----
From: Ruslan U. Zakirov [mailto:cubic@acronis.ru]
Sent: Wednesday, June 23, 2004 11:45 AM
To: wmorgenstern@coopoptical.com
Cc: Jeff_Leach@Progressive.com; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Change Logo

Werner Morgenstern wrote:

I tried that. When I am displaying the image directly (putting in the

image URL in the browser bar), it get this error:

System error

error: Error during compilation of /opt/rt3/share/html/NoAuth/coop.gif:
Unrecognized character \x12 at /opt/rt3/share/html/NoAuth/coop.gif
line

You should place it in images subdir.

Hi,

On changing logo, I have read some of the messages/thread on the mailing
list. I am seeing the custom Logo on RT 3.8.7 on the top left position.
The issue that I am having is that the logo is overlapping with rest of
the web page.

Requesting help in resolving the overlap, such that the logo is on top
and the rest of the page is below the logo. I have been unsuccessful
with the layout.css modifications of top-margin values.

Kamber Dalal