Direct link in email fails when user not logged in

When an admin gets the notice that a ticket has been created, if they
follow the like provided in the email
http://www.example.com/rt/Tickets/Display.html?id=2
It takes them to the rt website. If they are not previously logged in it
kindly askes them to login. Once logged in it sends them to the page where
they were trying to go and returns the error “No Ticket specified” no
matter how many times they reload it doesn’t change. however if they cut
and paste the link in and hit return it works fine (after they have logged
in) does anyone know why that is?

It is the same if you bookmark a search and try to go to it before you
login it wont work right it only works right if you were already logged in.
(i figure its the same problem)

I have been looking through the WebRT/html files to see where this
happends…but have had no luck

Thanks John

<>< Proverbs 3:5 “Trust in the Lord with all your heart and lean not on
your own understanding;”

When an admin gets the notice that a ticket has been created, if they
follow the like provided in the email
http://www.example.com/rt/Tickets/Display.html?id=2
It takes them to the rt website. If they are not previously logged in it
kindly askes them to login. Once logged in it sends them to the page where
they were trying to go and returns the error “No Ticket specified” no
matter how many times they reload it doesn’t change.

Er, how many times /do/ they try before they realize it won’t change? :slight_smile:

It’s a fastcgi buglet (assuming you’re using fastcgi). Patch
against 2.0.14 below my .sig.

-Rich

Rich Lafferty --------------±----------------------------------------------
Ottawa, Ontario, Canada | Save the Pacific Northwest Tree Octopus!
http://www.lafferty.ca/ | http://zapatopi.net/treeoctopus.html
rich@lafferty.ca -----------±----------------------------------------------
— rt-2.0.14/bin/mason_handler.fcgi Thu Oct 3 21:12:16 2002
+++ rt-esmith/bin/mason_handler.fcgi Thu Oct 3 22:03:44 2002
@@ -127,6 +127,15 @@

 $HTML::Mason::Commands::ContentType = 'text/html';
  • CGI::param does not include query string in POST; let’s

  • keep it all in the same place like mod_perl does.

  • This stanza is not from ApacheHandler.pm.

  • if ($cgi->request_method eq ‘POST’) {
  •    foreach my $key ( $cgi->url_param ) {
    
  •   $cgi->param($key, $cgi->url_param($key)) unless $cgi->param($key);
    
  • }
  • }

    This routine comes from ApacheHandler.pm:

    my (%args, $cookie);
    foreach my $key ( $cgi->param ) {