[rt-users] ShowNavigation broken in 3.2.2?

John Stoffel john.stoffel at taec.toshiba.com
Thu Jan 13 16:43:06 EST 2005



I've got a fresh install of RT 3.2.2 on FedoraCore 3, running httpd
2.0.52-3.1, perl 5.8.5, using mod_perl.  Everything works, but I'm
having trouble with turning on the 'ShowNavigation' feature in the
Element MyRequests (or any of the Elements for that matter).

I've copied MyRequests from
/var/lib/rt3/share/html/Elements/MyRequests to
/var/lib/rt3/local/html/Elements/MyRequests and changed the one line
with ShowNavigation from a '0' to a '1'.  

The main page shows up just fine when I reload it in the browser, but
when I click on the link, I get the following:

The requested URL /Order=DESC&Query=Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')&Rows=10&OrderBy=Created&Page=2&Format='<a href="/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#', '<a href="/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject', QueueName, ExtendedStatus, CreatedRelative, '<a href="/Ticket/Display.html?Action=Take&id=__id__">Take</a>/TITLE: ' was not found on this server.

The interesting thing is that the Link I clicked on is:

http://rt3.taec.toshiba.com/Order=DESC&Query=Owner%20%3D%20%27Nobody%27%20AND%20%28%20Status%20%3D%20%27new%27%20OR%20Status%20%3D%20%27open%27%29&Rows=10&OrderBy=Created&Page=2&Format=%27%3Ca%20href%3D%22%2FTicket%2FDisplay.html%3Fid%3D__id__%22%3E__id__%3C%2Fa%3E%2FTITLE%3A%23%27%2C%20%27%3Ca%20href%3D%22%2FTicket%2FDisplay.html%3Fid%3D__id__%22%3E__Subject__%3C%2Fa%3E%2FTITLE%3ASubject%27%2C%20QueueName%2C%20ExtendedStatus%2C%20CreatedRelative%2C%20%27%3Ca%20href%3D%22%2FTicket%2FDisplay.html%3FAction%3DTake%26amp%3Bid%3D__id__%22%3ETake%3C%2Fa%3E%2FTITLE%3A%26nbsp%3B%27%20

But the link at the top of the MyRequests section seems ot have:

http://rt3.taec.toshiba.com/Search/Results.html?Order=DESC&Query=Owner%20%3D%20%27Nobody%27%20AND%20%28%20Status%20%3D%20%27new%27%20OR%20Status%20%3D%20%27open%27%29&OrderBy=Priority

So I wonder if the way the Query is put together when the
ShowNavigation is turned on is broken somewhere?  Could there be an
issue with the Elements/TicketList code?  

    my $prev =  $m->comp('/Elements/QueryString',
			 Query => $Query,
			 Format => $Format,
			 Rows => $Rows,
			 OrderBy => $OrderBy,
			 Order => $Order,
			 Page => ($Page-1));

So it looks like I need to put in some code to include the PATH to the
"/Elements/SearchResults.html?" target, to base the query upon.  I see
that QueryString is just a filter to encode the arguements, but
wouldn't they already be encoded properly, since it's part of the RT
generated URLs?

I'm going to keep poking at this, I'll probably come upwith a solution
about 2 minutes after I send this problem report in...

Thanks,
John



More information about the rt-users mailing list