[request-tracker-maintainers] Bug#654755: Bug#654755: request-tracker4: simple search for ticket number fails

Dominic Hargreaves dom at earth.li
Thu Jan 5 20:06:25 UTC 2012


On Thu, Jan 05, 2012 at 03:04:10PM +0000, Philip wrote:
> When a ticket number is input into a simple search a page not found error occurs.
> This is caused by a fault in line 97 of /usr/share/request-tracker4/html/Search/Simple.html
> the line says:-
> RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Ticket/Display.html?id=".$1);
> the line should say (in my opinion):-
> RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."/Ticket/Display.html?id=".$1);
> adding the "/" fixes the issue on my installation

This looks wrong: /usr/share/request-tracker4/etc/RT_Config.pm has:

"Usually you don't want to set these options. The only obvious reason
is if RT is accessible via https protocol on a non standard port, e.g.
'https://rt.example.com:9999'. In all other cases these options are
computed using C<$WebDomain>, C<$WebPort> and C<$WebPath>.
[...]
C<$WebURL> is the C<$WebBaseURL>, C<$WebPath> and trailing /, for
example: 'http://www.example.com/rt/'.
"

If you are setting $WebURL manually, it should include a trailing /
as per the docs.

Cheers,
Dominic.

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)





More information about the pkg-request-tracker-maintainers mailing list