Hi All, I bashed my head against GenericUserFolder for three hours tonight trying to get the simplest of scenarios up and running - no luck so I'm turning to the list for help. My exact problem shows up in the archives with advice from Zen:
got the simple login screen. I entered the values 'jorge' for the username and 'secret' for the password. When I pressed Ok, I didn't see the index_html file for the folder, instead I got the login screen once again. Can someone help me out with some ideas on what I might have done wrong (or not done at all?)
Sounds like you havn't granted permission for user jorge to view the documents. Simple way to test this is to edit userRoles so that jorge is a member of the Manager role.
I've done both this and explicitly returning _.int('1') in the userAuthenticate method. Same problem. Turning debug on in the GUF source yields: 2000-02-29T13:30:46 PROBLEM(100) GUF URL is http://127.0.0.1:8080/Test2 in validate ------ 2000-02-29T13:30:46 INFO(0) GUF Successful authentication for user ost124 (http://127.0.0.1:8080/Test2/acl_users) ------ 2000-02-29T13:30:46 PROBLEM(100) GUF gufid = ------ 2000-02-29T13:30:46 PROBLEM(100) GUF URL is http://127.0.0.1:8080/Test2 ------ 2000-02-29T13:30:46 PROBLEM(100) GUF Returning ost124 from http://127.0.0.1:8080/Test2/acl_users validate (roles=('Anonymous', 'Manager')) ------ 2000-02-29T13:30:46 PROBLEM(100) GUF URL is http://127.0.0.1:8080/Test2 in validate ------ 2000-02-29T13:30:46 PROBLEM(100) GUF Failed to authenticate with http://127.0.0.1:8080/Test2/acl_users - crawling up ------ 2000-02-29T13:30:46 PROBLEM(100) GUF Failed Authentication with http://127.0.0.1:8080/acl_users As the user is explicitly given the manager role which has all possible permissions checked, how can I possibly fail authentication? Any help is much appreciated. Cheers, Darran.
On Wed, 1 Mar 2000, Darran Edmundson wrote:
I've done both this and explicitly returning _.int('1') in the userAuthenticate method. Same problem. Turning debug on in the GUF source yields:
2000-02-29T13:30:46 PROBLEM(100) GUF Returning ost124 from http://127.0.0.1:8080/Test2/acl_users validate (roles=('Anonymous', 'Manager'))
This means your authenticate code is working fine.
2000-02-29T13:30:46 PROBLEM(100) GUF URL is http://127.0.0.1:8080/Test2 in validate
Now the authentication machinery is kicking in again. My guess is either the URL you are attempting to access doesn't exist, or something is screwed in your docLoginSuccess method (or possibly docLogin, as variables are set in here that docLoginSuccess wants). At this point, I would suggest installing the Logger product, and putting some debugging messages in your hooks. In this way, you can see exactly how far things are getting. -- ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
Hi, I created a POIDocumentClass (ZClass based on DTML Document; meta type PIO Document) . Than I created an instance of this POIDocumentClass id 'MyDoc' title 'My Document'. Now when I try to find all POIDocumentClass instances in a Folder I do the following: <dtml-with aq_parent> <!--#in "objectItems(['POI Document','DTML Document'])"--> <!--#if "AUTHENTICATED_USER.has_permission('View',_.getitem('id',1))"--> <a href="<!--#var "absolute_url()"-->"><!--#var title--></a><BR> <!--#/if--> <!--#/in--> </dtml-with> I get back the right title 'My Document' but absolute_url() returns http://myserver:8080/foo/%3cstring%3e instead of http://myserver:8080/foo/MyDoc When I create a DTML Document instance within the same Folder absolute_url() works fine. I suspect there is something wrong with my POIDocumentClass :-( Can anybody please explain this behaviour ? -- _________________________________________________________ Andreas Heckel andreas@aHIT.de
From: "Andreas" <andreas@aHIT.de>
Hi,
I created a POIDocumentClass (ZClass based on DTML Document; meta type PIO Document) . Than I created an instance of this POIDocumentClass id 'MyDoc' title 'My Document'.
Now when I try to find all POIDocumentClass instances in a Folder I do the following:
<dtml-with aq_parent> <!--#in "objectItems(['POI Document','DTML Document'])"--> <!--#if "AUTHENTICATED_USER.has_permission('View',_.getitem('id',1))"--> <a href="<!--#var "absolute_url()"-->"><!--#var title--></a><BR> <!--#/if--> <!--#/in--> </dtml-with>
I get back the right title 'My Document' but absolute_url() returns http://myserver:8080/foo/%3cstring%3e instead of http://myserver:8080/foo/MyDoc
When I create a DTML Document instance within the same Folder absolute_url() works fine. I suspect there is something wrong with my POIDocumentClass :-( Can anybody please explain this behaviour ?
A bug. See: http://www.zope.org/Members/AlexR/ZClassIDBug Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
participants (4)
-
Andreas -
Darran Edmundson -
Martijn Pieters -
Stuart 'Zen' Bishop