[ZCM] [ZC] 1205/ 2 Comment "Unable to get API help"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri Jan 30 04:49:00 EST 2004


Issue #1205 Update (Comment) "Unable to get API help"
 Status Pending, Zope/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1205

==============================================================
= Comment - Entry #2 by faassen on Jan 30, 2004 4:48 am

I can confirm this one. This seems to be related to the security fixes in recent versions of Zope 2.7.0. It simply throws up a login dialog.

Here's the text version of the traceback (unfortunately it does say '' in the source..):

Traceback (innermost last):
  Module ZPublisher.Publish, line 100, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Shared.DC.Scripts.Bindings, line 261, in __call__
  Module Shared.DC.Scripts.Bindings, line 292, in _bindAndExec
  Module App.special_dtml, line 175, in _exec
  Module DocumentTemplate.DT_In, line 703, in renderwob
  Module Shared.DC.Scripts.Bindings, line 275, in __render_with_namespace__
  Module Shared.DC.Scripts.Bindings, line 290, in _bindAndExec
  Module Shared.DC.Scripts.Bindings, line 1, in ?
  Module Shared.DC.Scripts.Bindings, line 224, in _getContext
  Module AccessControl.ImplPython, line 227, in validate
Unauthorized: You are not allowed to access '' in this context

________________________________________
= Request - Entry #1 by Anonymous User on Jan 26, 2004 5:52 pm

With a fresh, basic installation, using a downloaded Zope binary for windows, when i try to get an item in API reference of Zope API or Script (Python), i get the following error :
You are not allowed to access '' in this context.

When i try to get help from a Product's help folder (via Control Panel etc...),the content listing lists files with a .py extension.
When i click on a document, i always get the content of properties.
A View is not always available and when it's available, i get a login prompt, i can't get logged and if i hit cancel i receive the message indicated above.

Each time i get the message, i have two tracebacks, chronologically, the first one as Anonymous and the second one as authenticated user admin.

Here they are.

===FIRST ONE===

Time      2004/01/26 10:36:33.421 GMT-4
User Name (User Id)     Anonymous User (None)    <----------------------
Request URL http://localhost:8080/Control_Panel/Products/OFSP/Help/AccessControl.py/index_html
Exception Type     Unauthorized
Exception Value     You are not allowed to access '' in this context

Traceback (innermost last):

    * Module ZPublisher.Publish, line 100, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Shared.DC.Scripts.Bindings, line 261, in __call__
    * Module Shared.DC.Scripts.Bindings, line 292, in _bindAndExec
    * Module App.special_dtml, line 175, in _exec
    * Module DocumentTemplate.DT_In, line 703, in renderwob
    * Module Shared.DC.Scripts.Bindings, line 275, in __render_with_namespace__
    * Module Shared.DC.Scripts.Bindings, line 290, in _bindAndExec
    * Module Shared.DC.Scripts.Bindings, line 1, in ?
    * Module Shared.DC.Scripts.Bindings, line 224, in _getContext
    * Module AccessControl.ImplPython, line 227, in validate

Unauthorized: You are not allowed to access '' in this context

===SECOND ONE====

Time      2004/01/26 10:36:33.468 GMT-4
User Name (User Id)     admin (admin)    <------------------------------
Request URL http://localhost:8080/Control_Panel/Products/OFSP/Help/AccessControl.py/index_html
Exception Type     Unauthorized
Exception Value     You are not allowed to access '' in this context

Traceback (innermost last):

    * Module ZPublisher.Publish, line 100, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Shared.DC.Scripts.Bindings, line 261, in __call__
    * Module Shared.DC.Scripts.Bindings, line 292, in _bindAndExec
    * Module App.special_dtml, line 175, in _exec
    * Module DocumentTemplate.DT_In, line 703, in renderwob
    * Module Shared.DC.Scripts.Bindings, line 275, in __render_with_namespace__
    * Module Shared.DC.Scripts.Bindings, line 290, in _bindAndExec
    * Module Shared.DC.Scripts.Bindings, line 1, in ?
    * Module Shared.DC.Scripts.Bindings, line 224, in _getContext
    * Module AccessControl.ImplPython, line 227, in validate

Unauthorized: You are not allowed to access '' in this context.

HTH

André

==============================================================




More information about the Zope-Collector-Monitor mailing list