[rt-users] Direct link in email fails when user not logged in

Rich Lafferty rich+rt at lafferty.ca
Fri Dec 6 19:58:49 EST 2002


On Fri, Dec 06, 2002 at 02:29:27PM -0800, John Gedeon <jgedeon at qualcomm.com> wrote:
> 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? :-)

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 at 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 ) {



More information about the rt-users mailing list