[Zope] Need a clue with UserDb

Tony McDonald tony.mcdonald@ncl.ac.uk
Fri, 20 Aug 1999 12:31:15 +0100


Hmmm...I need some help here.

I have a folder, Upload whose contents are
index_html (no acquired permission on 'view', Anonymous User 'view' = 
no, Owner 'view' = yes). This is the DTML Document that does all the 
good stuff like listing files and allowing uploads. ie it's the 
'guts' of the system.
acl_users (a UserDb folder)
some assorted methods, ZSQL methods etc.

If I go to the URL like so
.../Upload/ (thereby calling the index_html DTML Document) I get the 
following traceback:
(in the body if the page)

An error has occurred.

and in the comment...

<!--
Traceback (innermost last):
   File 
/home/nnle/Zope-2.0.0b5-solaris-2.6-sparc/lib/python/ZPublisher/Publis 
h.py, line 209, in publish_module
   File 
/home/nnle/Zope-2.0.0b5-solaris-2.6-sparc/lib/python/ZPublisher/Publis 
h.py, line 179, in publish
   File 
/home/nnle/Zope-2.0.0b5-solaris-2.6-sparc/lib/python/Zope/__init__.py, 
line 199, in zpublisher_exception_hook
     (Object: ElementWithAttributes)
   File 
/home/nnle/Zope-2.0.0b5-solaris-2.6-sparc/lib/python/ZPublisher/Publis 
h.py, line 151, in publish
   File 
/home/nnle/Zope-2.0.0b5-solaris-2.6-sparc/lib/python/ZPublisher/BaseRe 
quest.py, line 426, in traverse
   File lib/python/Products/UserDb/UserDb.py, line 287, in validate
     (Object: RoleManager)
   File lib/python/Products/UserDb/UserDb.py, line 282, in cookie_validate
     (Object: RoleManager)
LoginRequired: (see above)

-->

However, if I use a URL like so
../Upload/acl_users/docLogin
I get the lovely docLogin page that I composed and the person can 
authenticate happily, and as I made the ACTION part of the docLogin 
method to be /Upload/index_html the person can then start doing 
authenticated things.

I can also call ../Upload/acl_users/logout and the docLogout document 
is called and the cookie crumbles.

I thought I understood that UserDb would make authentication required 
for those users who don't have the 'view' role (ie Anonymous Users 
would get redirected to the docLogin document), obviously I *didn't* 
understand!

Is my problem due to the Zen-Void in my nut or have I found a ... bug!

Zope2.0b5, binary distribution, Solaris 5.6, ZMySQL adaptor.

ta
tone.
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2