#1 ASTS v2.0: cannot get to personal project edit page

closed
John Lemcke
None
5
2012-09-22
2006-08-22
Ken Yap
No

At line 67 in timesheet.pl there was this:

print $q->redirect($uri, -cookie => $cookie);

Unfortunately it doesn't work with the -cookie, it just
causes a blank page. So I removed it and it works.
Maybe CGI.pm changed since 2003.

I'm using the CGI bundled in Perl 5.8.5 on Centos 4.3,
with Firefox 1.5.0.6, if it matters.

Discussion

  • John Lemcke
    John Lemcke
    2006-08-23

    Logged In: YES
    user_id=289795

    Ken,
    Thanks for the report.
    Are you installing ASTS on a MSIIS server? This sounds very
    much like the problem referred to in the following extract
    from the perl CGI man page. If not could you see if you can
    find any useful output in your server log file?
    In any case I don't think the cookie is required for the
    redirect so just removing it is probably a reasonable thing
    to do.


    The Microsoft Internet Information Server requires NPH mode.
    As of
    version 2.30, CGI.pm will automatically detect when the
    script is
    running under IIS and put itself into this mode. You do not
    need to do
    this manually, although it wont hurt anything if you do.
    However,
    note that if you have applied Service Pack 6, much of the
    functionality
    of NPH scripts, including the ability to redirect while
    setting a
    cookie, do not work at all on IIS without a special patch
    from Microsoft.
    See
    http://support.microsoft.com/support/kb/articles/Q280/3/41.ASP
    : Non-Parsed Headers Stripped From CGI Applications
    That Have nph- Prefix in Name.


     
  • Ken Yap
    Ken Yap
    2006-08-23

    Logged In: YES
    user_id=23461

    No, Centos 4.3 is Linux and the web server is Apache 2.0.x.

    There were no interesting messages in the error log, and the
    output of the redirect was completely empty. Oh and the
    toolbar remained on the timesheet.pl page.

     
  • John Lemcke
    John Lemcke
    2007-08-06

    Logged In: YES
    user_id=289795
    Originator: NO

    Removed the cookie argument. Included in release 2.1.

     
  • Sourceforge.. Not so bad :)