[Zope-dev] Debugging woes...

Brian Brown brian@sis-inc.com
Fri, 23 Apr 1999 14:16:28 -0600


On April 19th I posted a problem try to get the ZOracleDA working, and
am continuing to troubleshoot - I am running the Zope Debugger via the
following script:

python /opt/Zope/lib/python/ZPublisher/Test.py
    -e id="Oracle_database_connection" -e title="Z Oracle Database
Connection"
    -e connection_string="system/manager@openview"
    -e check="YES"
    -e AUTHENTICATED_USER=formus
    -d /opt/Zope/lib/python/Main /manage_addZOracleConnection

(I added the carriage returns to make it easier to read). This is the
output I recieve:

--------------------------
root:(/opt/Zope)#sh dbtest
* Type "s<cr>c<cr>" to jump to beginning of real publishing process.
* Then type c<cr> to jump to the beginning of the URL traversal
  algorithm.
* Then type c<cr> to jump to published object call.
> <string>(0)?()
pdb> s
> <string>(1)?()
pdb> c
> /opt/Zope/lib/python/ZPublisher/Publish.py(312)publish()
-> def publish(self, module_name, after_list, published='web_objects',
pdb> c
> /opt/Zope/lib/python/ZPublisher/Publish.py(312)ModulePublisher()
-> def publish(self, module_name, after_list, published='web_objects',
pdb> c
> /opt/Zope/lib/python/ZPublisher/Publish.py(598)ModulePublisher()
-> def call_object(self,object,args):
pdb> c
Status: 401 Unauthorized
Www-Authenticate: basic realm="Main"
Bobo-Exception-File: /opt/Zope/lib/python/ZPublisher/Publish.py
Bobo-Exception-Type: Unauthorized
Content-Type: text/html
Bobo-Exception-Value: <strong>You are not authorized to access this
resource.</strong>
Content-Length: 417
Bobo-Exception-Line: 297

<html><head></head>
<strong>You are not authorized to access this resource.</strong>
<!--
Traceback (innermost last):
  File /opt/Zope/lib/python/ZPublisher/Publish.py, line 877, in
publish_module
  File /opt/Zope/lib/python/ZPublisher/Publish.py, line 531, in publish
    (Info: /manage_addZOracleConnection)
  File /opt/Zope/lib/python/ZPublisher/Publish.py, line 297, in
unauthorized
Unauthorized: (see above)

-->--Return--
> <string>(1)?()->None
pdb> exit
-----------------------------------------
I at first tried it without the AUTHENTICATED_USER variable, but it
gives me the same output. I don't understand how to get access to the
method - I've even changed the zope permissions to allow an anonymous
user to add ZOracleDA Connections and view management screens.

Any ideas???

In need,

Brian