Submitted by : 192.168.1.21 at: 2003-12-10T10:31:04+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Plone 1.0.5, Zope 2.6.2, Zwiki 0.25.0

It works when viewing as admin (who was the author) and as anonymous user, but not as an authenticated user.:

FS Page Template wikipage_view has errors: exceptions.RuntimeError.

function attributes not accessible in restricted mode
(Also, an error occurred while attempting to render the standard error message.)

Traceback (innermost last):
Module ZPublisher.Publish, line 150, in publish_module
Module ZPublisher.Publish, line 114, in publish
Module Zope.App.startup, line 199, in zpublisher_exception_hook
Module ZPublisher.Publish, line 98, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.ZWiki.ZWikiPage, line 238, in __call__
Module Products.ZWiki.CMF, line 123, in __call__
Module Shared.DC.Scripts.Bindings, line 252, in __call__
Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 167, in _exec
Module Products.PageTemplates.ZopePageTemplate, line 228, in _exec
Module Products.CMFCore.FSPageTemplate, line 150, in pt_render
RuntimeError: (see above)

pa@aliensolutions.com --Wed, 10 Dec 2003 10:33:04 -0800 reply

can't reproduce --simon, Sun, 28 Dec 2003 04:32:17 -0800 reply

Is there some problematic DTML code in your page, or are your permissions set strangely ? Can anyone else reproduce this problem ?

... --Tue, 30 Dec 2003 18:50:45 -0800 reply

I'm experiencing what I think is the same problem. The problem seems to depend on the user; some users have no problem and other users get this error when trying to access any wiki page. The problem is consistent with respect to users, a given user with either always fail or always work. Odd thing is that I can create a new user with the exact same roles as a user that fails and the new user will work OK.

I'm running Zope 2.6.2 on FreeBSD? 4.7-RELEASE with Python 2.1.3, CMF 1.3.2, Plone 1.0.5, and Archetypes 1.0.1.

Here's a traceback:

Traceback (innermost last):
 Module ZPublisher.Publish, line 98, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module Products.ZWiki.ZWikiPage, line 238, in __call__
 Module Products.ZWiki.CMF, line 123, in __call__
 Module Shared.DC.Scripts.Bindings, line 252, in __call__
 Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
 Module Products.CMFCore.FSPageTemplate, line 169, in _exec
 Module Products.PageTemplates.ZopePageTemplate, line 228, in _exec
 Module Products.CMFCore.FSPageTemplate, line 152, in pt_render
RuntimeError: FS Page Template wikipage_view has errors: exceptions.RuntimeError.<br>&lt;pre&gt;function attributes not accessible in restricted mode

VerboseSecurity? --SimonMichael, Wed, 31 Dec 2003 02:27:35 -0800 reply

If you can, please install VerboseSecurity? (and set the security policy var to PYTHON) and get it's report from your ErrorLog or EventLog. This might give more clues.

VerboseSecurity? --SimonMichael, Wed, 31 Dec 2003 02:42:00 -0800 reply

Or it might not, since this is not an AuthenticationError?..

VerboseSecurity? --bob, Wed, 31 Dec 2003 13:07:53 -0800 reply

After installing VerboseSecurity?, the user that works still works but the user that fails gets a completely different traceback:

Traceback (innermost last):
 Module ZPublisher.Publish, line 98, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module Products.ZWiki.ZWikiPage, line 238, in __call__
 Module Products.ZWiki.CMF, line 123, in __call__
 Module Shared.DC.Scripts.Bindings, line 252, in __call__
 Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
 Module Products.CMFCore.FSPageTemplate, line 169, in _exec
 Module Products.PageTemplates.ZopePageTemplate, line 228, in _exec
 Module Products.CMFCore.FSPageTemplate, line 141, in pt_render
 Module Products.PageTemplates.PageTemplate, line 95, in pt_render
  - <FSPageTemplate at /ebonrose/wikipage_view used for /ebonrose/zwiki/ZWiki>
 Module TAL.TALInterpreter, line 200, in __call__
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 703, in do_useMacro
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 682, in do_defineMacro
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 669, in do_condition
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 636, in do_loop_tal
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 414, in do_optTag_tal
 Module TAL.TALInterpreter, line 399, in do_optTag
 Module TAL.TALInterpreter, line 394, in no_tag
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 669, in do_condition
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 414, in do_optTag_tal
 Module TAL.TALInterpreter, line 399, in do_optTag
 Module TAL.TALInterpreter, line 394, in no_tag
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 703, in do_useMacro
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 669, in do_condition
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 669, in do_condition
 Module TAL.TALInterpreter, line 244, in interpret
 Module TAL.TALInterpreter, line 634, in do_loop_tal
 Module Products.PageTemplates.TALES, line 205, in setRepeat
 Module Products.PageTemplates.TALES, line 220, in evaluate
  - Line 17, Column 12
  - Expression: <PythonExpr [o for o in msgFolder.listFolderContents() if not getattr(o,'acknowledged',0) ]>
  - Names:
     {'container': <PloneSite instance at 9316bc0>,
      'default': <Products.PageTemplates.TALES.Default instance at 0x88c14cc>,
      'here': <ZWikiPage at /ebonrose/zwiki/ZWiki>,
      'loop': <SafeMapping instance at 94d0a80>,
      'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x88c1eac>,
      'nothing': None,
      'options': {'REQUEST': <HTTPRequest, URL=http://www.ebonrose.net/zwiki/ZWiki>,
                  'RESPONSE': ZServerHTTPResponse(''),
                  'args': (<ZWikiPage at /ebonrose/zwiki/ZWiki>,)},
      'repeat': <SafeMapping instance at 94d0a80>,
      'request': <HTTPRequest, URL=http://www.ebonrose.net/zwiki/ZWiki>,
      'root': <Application instance at 930eb40>,
      'template': <FSPageTemplate at /ebonrose/wikipage_view used for /ebonrose/zwiki/ZWiki>,
      'traverse_subpath': [],
      'user': Ninea}
 Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
  - __traceback_info__: [o for o in msgFolder.listFolderContents() if not getattr(o,'acknowledged',0) ]
 Module Python expression "[o for o in msgFolder.listFolderContents() if not getattr(o,'acknowledged',0) ]", line 2, in f
 Module AccessControl.ZopeGuards, line 47, in guarded_getattr

AttributeError?: messageslistFolderContents

VerboseSecurity? --SimonMichael, Fri, 02 Jan 2004 00:36:18 -0800 reply

Ah, very good. Have you customized wikipage_view ? I don't see 'o for o in msgFolder.listFolderContents() if not getattr(o,'acknowledged',0)' anywhere in Zwiki code.

It's in CMFMessage? --bob, Fri, 02 Jan 2004 17:35:02 -0800 reply

No, I haven't customized wikipage_view. That code comes from PCMFMessage?/skins/message/message_list_slot.pt. I've temporarily taken out the message box from the right_slots property on my zwiki folder and will see if that has fixed the problem. If so, there must be some interaction between ZWiki and the message box slot.

ah --SimonMichael, Sun, 04 Jan 2004 01:33:31 -0800 reply

That makes sense. I'd say message_list_slot is acquiring Zwiki's 'messages' method and getting confused.

property change --SimonMichael, Sun, 04 Jan 2004 01:46:38 -0800 reply

Title: 'IssueNo0663? Viewing a wiki page in plone errors with "function attributes not accessible in restrict' => 'IssueNo0663? viewing a page with CMFMessage? installed gives "function attributes not accessible" error ' Category: skins and content => non-zwiki

CMFMessage? needs to acquire more carefully, I think --simon, Wed, 07 Jan 2004 13:04:58 -0800 reply

Status: open => closed

property change --Wed, 07 Jan 2004 15:16:11 -0800 reply