[rt-users] Promblems using URI2HTTP
Douglas E. Warner
dwarner at ctinetworks.com
Sat Nov 2 14:35:48 EST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
So, I've read about this wonderful variable named 'URI2HTTP' that will allow
me to link to far-away websites and do magic things; but I can't make it
work.
Besides http, https, and ftp which were aleady in config.pm, I can't get any
of the others to work (or see them fail, for that matter). I'm trying to add
a 'wiki' link currently, but plan to move on to add 'cktid' (circuit id) and
others. Here is my current URI2HTTP:
%URI2HTTP=
(
'http' => sub {return @_;},
'https' => sub {return @_;},
'ftp' => sub {return @_;},
'wiki' => sub { return @_; },
# 'wiki' => sub { @_ =~ |wiki://(\S+)|i; return
"http://url.to.wiki.com/wiki/index.cgi?$1"; },
'fsck.com-rt' => sub {warn "stub!";},
'mozilla.org-bugzilla' => sub {warn "stub!"},
'fsck.com-kb' => sub {warn "stub!"}
);
As you can see, I've commented out the 'real' wiki link until I figure it out,
and was using a 'fake' wiki link similar to ftp and http - but even this one
fails (to create a link, that is - no error in my logs). Even linking to a
false protocol doesn't create a warning as it should (in
RT::Link.pm->AsHREF()) and putting 'fsck.com-rt://stuff' in my ticket won't
make a 'stub!' warning either.
Thanks for any help or examples on the 'correct' way to get this work. I'm
using rt 2.0.13, in case it matters - and I am restart-ing (not reload or
graceful) httpd to get config changes to take - if this is wrong, let me
know.
- -Doug
- --
Douglas E. Warner <dwarner at ctinetworks.com> Network Engineer
CTI/PAdotNET http://ctinetworks.com +1 717 975 9000
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9xCkUJV36su0A0xIRAsrpAKCGvsktI6/62NCVJZ07IWoh9+ernQCffDom
dpqqNc0Bjd/2MV8Grh3w2h4=
=4Bpn
-----END PGP SIGNATURE-----
More information about the rt-users
mailing list