Silva 'Unauthorized' error
Bas Leeflang <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Organization | Bijvoet Center |
| Message-ID | <[email protected]> |
Dear developpers,
We have a Silva environment where 'Authors' have access to a limited
area of Silva. Such a user can interact with the SMI. He can use the
'Up-tree' button to go beyond his own area, where he has rights to use
the SMI. Obviously a new login pop-up window appears. Our 'author' does
not have the a password here, and presses 'Cancel'
The the follow horific error message appears. Note that these 'authors'
are basically unfamiliar with the SMI....
Any suggestion to catch this 'error' and handle it in an elegant manner
is welcome to post it to the list, to me or to Guido at Infrae.
Kindest regards,
Bas
Site Error
An error was encountered while publishing this resource.
*Unauthorized*
Sorry, a site error occurred.
Traceback (innermost last):
* Module ZPublisher.Publish, line 175, in publish_module_standard
* Module ZPublisher.Publish, line 132, in publish
* Module Zope.App.startup, line 204, in zpublisher_exception_hook
* Module ZPublisher.Publish, line 101, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 39, in call_object
* Module Shared.DC.Scripts.Bindings, line 306, in __call__
* Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
* Module Products.FileSystemSite.FSPageTemplate, line 191, in _exec
* Module Products.FileSystemSite.FSPageTemplate, line 124, in pt_render
* Module Products.PageTemplates.PageTemplate, line 96, in pt_render
*<FSPageTemplate at
/silva-euromar/service_views/Silva/edit/Container/tab_edit used
for /silva-euromar/service_views/Silva/edit/Container/Publication>*
* Module TAL.TALInterpreter, line 190, in __call__
* Module TAL.TALInterpreter, line 234, in interpret
* Module TAL.TALInterpreter, line 407, in do_optTag_tal
* Module TAL.TALInterpreter, line 389, in no_tag
* Module TAL.TALInterpreter, line 234, in interpret
* Module TAL.TALInterpreter, line 671, in do_useMacro
* Module TAL.TALInterpreter, line 234, in interpret
* Module TAL.TALInterpreter, line 460, in do_setLocal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
*Line 13, Column 0*
*Expression: standard:'model/security_trigger'*
*Names:*
{'container': <DirectoryViewSurrogate instance at b3b88170>,
'context': <DirectoryViewSurrogate instance at b3b88a40>,
'default': <Products.PageTemplates.TALES.Default instance at 0xb76d85ac>,
'here': <DirectoryViewSurrogate instance at b3b88a40>,
'loop': <SafeMapping instance at b3fa6a10>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb76d806c>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at b3fa6a10>,
'request': <HTTPRequest, URL=http://bijvoet.chem.uu.nl:10080/silva-euromar/participants/edit/tab_edit>,
'root': <Application instance at b43dd290>,
'template': <FSPageTemplate at /silva-euromar/service_views/Silva/edit/Container/tab_edit used for /silva-euromar/service_views/Silva/edit/Container/Publication>,
'traverse_subpath': [],
'user': Anonymous User}
* Module Products.PageTemplates.Expressions, line 201, in __call__
* Module Products.PageTemplates.Expressions, line 189, in _eval
* Module Products.PageTemplates.Expressions, line 145, in _eval
__traceback_info__: model
* Module Products.PageTemplates.Expressions, line 340, in
restrictedTraverse
__traceback_info__: {'path': ['security_trigger'],
'TraversalRequestNameStack': []}
Unauthorized: You are not allowed to access 'security_trigger' in this
context (Also, an error occurred while attempting to render the standard
error message.)
------------------------------------------------------------------------
--
Dr. Bas R. Leeflang
Bijvoet Center for Biomolecular Research Tel : +31.30.253.3498
Utrecht University Fax : +31.30.254.0980
Padualaan 8, NL-3584 CH Utrecht Email: [email protected]
The Netherlands http://www.bijvoet-center.nl