logo       

Problem with CAP::Authentication/CGI::App::Dispatch, and redirects: msg#00041

Subject: Problem with CAP::Authentication/CGI::App::Dispatch, and redirects
Wanted to e-mail the list and see if I'm just doing something wrong, or if 
other people have encountered similar issues...

I'm using CAP::Authentication in an app right now, along with 
CGI::Application::Dispatch, all running under mod_perl2.  What happens is 
that any time that CAP::Authentication does a redirect, I get back "200 - OK" 
HTTP response headers instead of "302 - Moved" headers...  This causes the 
unfortunate problem of showing a "Document has moved 'here'" page each time 
someone logs in/out, instead of doing the actual redirect.

From digging a bit further into CAP::Authentication I see that the "Location" 
header gets set up properly when doing redirects, but the HTTP Status 
is --not-- set up.

What I'm doing right now is patching "authen_dummy_redirect" as follows, which 
works for me.  It looks like "authen_dummy_redirect" gets called whenever 
CAP::Authentication needs to do a redirect, so I've got it setting 
the "header_type" like this:

  sub authen_dummy_redirect {
    my $self = shift;
    $self->header_type('redirect');
    return '';
  }

Has anyone else experienced similar problems?

Although the above gets things working for me, I'm wondering if this is 
something more specific to my particular environment than it being a bug in 
CAP::Authentication; otherwise I expect that many others would be piping up 
and wondering why its not redirecting properly.

Just me?

-- 
Graham TerMarsch
Howling Frog Internet Development, Inc.

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe