[Zope] Not able to log in with exUserFolder

Jakub Wi¶niowski jakub.wisniowski@euro.coig.pl
Sun, 23 Mar 2003 22:33:10 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_006E_01C2F18C.2F1BC620
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Hi all

    I have got a problem with using exUserFolder. The situation is:
   =20
    - Zope 2.6.1 on Win2000, and newest version of XUF
    - I've got a folder 'test' with exUserFolder's acl_users. An =
authentication source is defined as PostgreSQL Auth Source, and there =
are null property and membership sources.
    - XUF properties are set to cookie based auht or secure cookie based =
auth - when I set it to standard basic auth everything is ok.
    - In my 'test' folder I have created 'secured' (it's a name) folder =
and removed permissions to 'access content data' and 'view' for =
anonymous users.

    Everybody is allowed to view test's folder index_html and then to =
click on a link to 'secured' folder. After user selects the link I =
expect Zope to redirect to a login page (default docLogin at =
acl_users/contents), log the user in and then redirect to secured's =
folder index_html. But althought this works with my favourite Opera =
browser it doesn't work with MSIE (I have tested it with v.6.0), which =
states that there is: HTTP 500 - Internal server error. The next thing =
is that in Zope's error log I get the following:

Exception Type: LoginRequired
Exception Value: <HTML> <HEAD> <TITLE>Logging In</TITLE> <META =
HTTP-EQUIV=3DExpires CONTENT=3D"2003-03-22"> <META HTTP-EQUIV=3DRefresh =
CONTENT=3D"0; URL=3Dhttp://localhost:8080/ex/secured/acl_users/ =
redirectToLogin?destination=3Dhttp://localhost:8080/ex/secured/index_html=
"> </HEAD> <BODY> </BODY></HTML>

Traceback (innermost last):=20

Module ZPublisher.Publish, line 89, in publish
Module ZPublisher.BaseRequest, line 409, in traverse
Module Products.exUserFolder.exUserFolder, line 1026, in validate
Module Products.exUserFolder.exUserFolder, line 938, in cookie_validate

LoginRequired: <HTML> <HEAD> <TITLE>Logging In</TITLE> <META =
HTTP-EQUIV=3DExpires CONTENT=3D"2003-03-22"> <META HTTP-EQUIV=3DRefresh =
CONTENT=3D"0; =
URL=3Dhttp://localhost:8080/ex/secured/acl_users/redirectToLogin?destinat=
ion=3Dhttp:// localhost:8080/ex/secured/index_html"> </HEAD> <BODY> =
</BODY></HTML>

Why? Something is wrong with cookie_validate? I don't think so. But, in =
the case, what is wrong? And one more thing - after i click the link to =
'secured' (Opera) then for a short time i can see a page that states =
that 'there was error while rendering standard error template'.=20
Any ideas?

Last question - I have read somewhere that I can define 'LoginForm' ZPT =
in my 'test' folder, and XUF should use it instead (??) of it's internal =
docLogin. Am I right? What for is it? To allow customization of =
docLogin?

Jakub Wisniowski

------=_NextPart_000_006E_01C2F18C.2F1BC620
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I have got a problem =
with using=20
exUserFolder. The situation is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; - Zope 2.6.1 on =
Win2000, and=20
newest&nbsp;version of&nbsp;XUF</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; - I've got a folder =
'test' with=20
exUserFolder's acl_users. An authentication source is defined as =
PostgreSQL Auth=20
Source, and there are null property and membership sources.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; - XUF properties are =
set to=20
cookie based auht or secure cookie based auth - when I set it to =
standard basic=20
auth everything is ok.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; - In my 'test' =
folder I have=20
created&nbsp;'secured' (it's a name) folder and removed permissions to =
'access=20
content data' and 'view' for anonymous users.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Everybody is allowed =
to view=20
test's folder index_html and then to click on a link to 'secured' =
folder. After=20
user selects the link I expect Zope to redirect to a login page (default =

docLogin at acl_users/contents), log the user in and then&nbsp;redirect =
to=20
secured's folder index_html. But althought this works with my favourite =
Opera=20
browser it doesn't work with MSIE (I have tested it with v.6.0), which =
states=20
that there is: HTTP 500 - Internal server error. The next thing is that =
in=20
Zope's error log I get the following:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Exception Type: =
LoginRequired</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Exception Value: &lt;HTML&gt; =
&lt;HEAD&gt;=20
&lt;TITLE&gt;Logging In&lt;/TITLE&gt; &lt;META HTTP-EQUIV=3DExpires=20
CONTENT=3D"2003-03-22"&gt; &lt;META HTTP-EQUIV=3DRefresh CONTENT=3D"0;=20
URL=3Dhttp://localhost:8080/ex/secured/acl_users/=20
redirectToLogin?destination=3Dhttp://localhost:8080/ex/secured/index_html=
"&gt;=20
&lt;/HEAD&gt; &lt;BODY&gt; &lt;/BODY&gt;&lt;/HTML&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Traceback (innermost last): =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Module ZPublisher.Publish, line 89, in=20
publish<BR>Module ZPublisher.BaseRequest, line 409, in =
traverse<BR>Module=20
Products.exUserFolder.exUserFolder, line 1026, in validate<BR>Module=20
Products.exUserFolder.exUserFolder, line 938, in =
cookie_validate</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LoginRequired: &lt;HTML&gt; =
&lt;HEAD&gt;=20
&lt;TITLE&gt;Logging In&lt;/TITLE&gt; &lt;META HTTP-EQUIV=3DExpires=20
CONTENT=3D"2003-03-22"&gt; &lt;META HTTP-EQUIV=3DRefresh CONTENT=3D"0;=20
URL=3Dhttp://localhost:8080/ex/secured/acl_users/redirectToLogin?destinat=
ion=3Dhttp://=20
localhost:8080/ex/secured/index_html"&gt; &lt;/HEAD&gt; &lt;BODY&gt;=20
&lt;/BODY&gt;&lt;/HTML&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Why? Something is wrong with =
cookie_validate? I=20
don't think so. But, in the case, what is wrong? </FONT><FONT =
face=3DArial=20
size=3D2>And one more thing - after i click the link to 'secured'=20
(Opera)&nbsp;then&nbsp;for a short time i can see a page that states =
that 'there=20
was error while rendering standard error template'. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Any ideas?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Last&nbsp;question -&nbsp;I have read =
somewhere=20
that I can define 'LoginForm' ZPT in my 'test' folder, and XUF should =
use it=20
instead (??) of it's internal docLogin. Am I right? What for is it? To =
allow=20
customization of docLogin?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jakub =
Wisniowski</FONT></DIV></BODY></HTML>

------=_NextPart_000_006E_01C2F18C.2F1BC620--