My Perl script checks the HTTP output from Fossil looking for Redirect and Set-Cookie and replaces it with this:
Status: 200 OK Set-Cookie: fossil_login_3213c06d= anon%2F2455644; Path=/Fossil/Fossil.pl; Version=1 Cache-control: no-cache, no-store Content-Type: text/html; charset=utf-8 Content-Length: 192 <html> <title>Fossil</title> <body> <h1>Login/Logout Successul</h1> <form name="Continue" action="/Fossil/Fossil.pl/index" method="get"> <input type="submit" value="Continue" /> </form> </body> </html> This page says "Login Successful" or "Logout Successful" depending on whether the cookie is getting set or cleared and it contains a Continue button. I just needed to separate the redirection from the Set-Cookie. Now I can login, logout and jump around page-to-page. Hurray!!! This bug has been lurking in IIS since 3.0. Pathetic. Q: Are there any other pages, other than Login/Logout, where Fossil attempts to redirect and set a cookie all at once? Tony Perovic Compumation, Inc. ________________________________ From: Tony Perovic Sent: Wednesday, March 23, 2011 2:10 PM To: 'fossil-users@lists.fossil-scm.org' Subject: RE: [fossil-users] Fossil on IIS Same shit with IIS 7.5. Good news is that I won't have to upgrade the server. I'll have script around it somehow. So, clicking the Login button on the Login page returns this: Status: 302 Moved Temporarily Set-Cookie: fossil_login_3213c06d=anon%2F2455644... Path=/Fossil/Fossil.pl; expires=Wed, 23 Mar 2011 23:51:39 GMT; Version=1 Location: /Fossil/Fossil.pl/index Cache-control: no-cache, no-store Content-Type: text/html; charset=utf-8 Content-Length: 58 <html> <p>Redirect to /Fossil/Fossil.pl/index</p> </html> The browser never gets it. Instead, IIS redirects automatically but forgets to pass the cookie. Wouldn't this suffice? Status: 302 Moved Temporarily Set-Cookie: fossil_login_3213c06d=anon%2F2455644...; Path=/Fossil/Fossil.pl; expires=Wed, 23 Mar 2011 23:51:39 GMT; Version=1 Location: /Fossil/Fossil.pl/index All it needs to do is create the login cookie and redirect to the home page. In fact, that's probably how I'll script it assuming that IIS doesn't try to outsmart itself again. Tony Perovic Compumation, Inc. ________________________________ From: Tony Perovic Sent: Tuesday, March 22, 2011 2:08 PM To: 'fossil-users@lists.fossil-scm.org' Subject: RE: [fossil-users] Fossil on IIS Yes but, upgrading to IIS 7.x involves upgrading the server to Windows Server 2008. Not exactly a walk in the park. I think I'll setup a virtual machine with Windows Server 2008 and test it there before suggesting a server upgrade. I'll post the results in a couple days. Thanks, Tony Perovic Compumation, Inc. ________________________________ From: fossil-users-boun...@lists.fossil-scm.org [mailto:fossil-users-boun...@lists.fossil-scm.org] On Behalf Of Richard Hipp Sent: Tuesday, March 22, 2011 11:02 AM To: fossil-users@lists.fossil-scm.org Subject: Re: [fossil-users] Fossil on IIS On Tue, Mar 22, 2011 at 11:23 AM, Tony Perovic <tpero...@compumation.com<mailto:tpero...@compumation.com>> wrote: Apparently, the Fossil Login with never work with IIS 6.0: http://support.microsoft.com/kb/176113 Do I understand that the bug in question has been fixed in IIS 7.0 and that upgrading to IIS 7.0 will fix the issue? -- D. Richard Hipp d...@sqlite.org<mailto:d...@sqlite.org>
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users