[Zope-CMF] Auto-redirect to login page page is broken

Dave Lehman davelehman@loewen.com
Wed, 7 Nov 2001 08:09:23 -0600


>> I've done some extensive customizations on my CMF site, and somewhere in
>> the process, have broken the feature which auto-redirects a visitor to
the
>> login_form if they don't have access to something. At this point, all my
>> site does is pop-up the ugly authentication dialog.
>>
>> Any ideas on why it is broken or how to fix it? (or a better way to
>> redirect to the login page?)
>
>The CookieCrumbler has an "Auto Login Form" property -- if you set that
>to 'login_form', then it will automatically redirect "Unauthorized"
exceptions
>there.  Note that you likely cleared the value in order to get WebDAV /
FTP
>to work;  they aren't compatible with cookie-based auth.

Good idea-- unfortunately, I already checked this, and the "auto login
form" is filled in as expected. I even created a dummy login page and tried
putting that method name in there (test_login_form) but it's still not
working.

Is there some security permission that I have screwed up that is preventing
the CookieCrumbler from redirecting? What else could it be?

Note: I don't think this matters, but I have a "SiteRoot" object in the
same directory as my CookieCrumbler (that is, the "portal" folder). So my
CMF site is in a folder called "portal", but my domain name makes this look
like the root. So a url will refer to objects relative to this folder
(www.mysite.com/somemethod) but my Zope Catalog still recognizes is as the
full pathname (/portal/somemethod). Is there any chance this is screwing up
the CookieCrumbler? I'm assuming it should just find the "login_form"
method through aquisition in my "custom" skin folder...

--dave