change proxy role permission
Hi, I've done quite a bit of searching for this problem I have. I get the following traceback from changing a role of a document to Manager: Forbidden You are not authorized to change addUser because you do not have proxy roles. Traceback (innermost last): File F:\WEB\PACTIV~1\lib\python\ZPublisher\Publish.py, line 151, in publish_module File F:\WEB\PACTIV~1\lib\python\ZPublisher\Publish.py, line 115, in publish File F:\WEB\PACTIV~1\lib\python\Zope\__init__.py, line 158, in zpublisher_exception_hook (Object: addUser) File F:\WEB\PACTIV~1\lib\python\ZPublisher\Publish.py, line 99, in publish File F:\WEB\PACTIV~1\lib\python\ZPublisher\mapply.py, line 88, in mapply (Object: manage_proxy) File F:\WEB\PACTIV~1\lib\python\ZPublisher\Publish.py, line 40, in call_object (Object: manage_proxy) File F:\WEB\PACTIV~1\lib\python\OFS\DTMLMethod.py, line 296, in manage_proxy (Object: addUser) File F:\WEB\PACTIV~1\lib\python\OFS\DTMLMethod.py, line 289, in _validateProxy (Object: addUser) Forbidden: (see above) That I don't have authorization to change the role. But I change granted owership of the permission to myself in the folder and also document security tabs. So, I've read as much advice that you have to own the role (Change Proxy roles), which I think I just did. I also have it set in the root. Something wrong? Thanks, Paul Zwarts
Paul Zwarts writes:
I've done quite a bit of searching for this problem I have. I get the following traceback from changing a role of a document to Manager:
Forbidden You are not authorized to change addUser because you do not have proxy roles. I think you must have the roles that the object uses as proxy to change the object in any way -- unless you are the Emergency User.
Dieter
Dieter, Thanks for the tip, It still doesn't work yet, so I'll just have to start mucking around much more... As T. Edison always said... But one thing worth mentioning that it doesn't work either as superuser... Also, do I need to change the rights of the object itself, or its supercedent folder, or in the Products section of the controlPanel? At this moment I'm just changing any rights that may have something to do with this, but none seem to work.. Thanks, Paz -----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Sunday, January 20, 2002 5:29 PM To: Paul Zwarts Cc: zope@zope.org Subject: Re: [Zope] change proxy role permission Paul Zwarts writes:
I've done quite a bit of searching for this problem I have. I get the following traceback from changing a role of a document to Manager:
Forbidden You are not authorized to change addUser because you do not have proxy roles. I think you must have the roles that the object uses as proxy to change the object in any way -- unless you are the Emergency User.
Dieter
I'm not sure whether it's the same problem, but once in a while I get something similar. What I do is copy the content of the method or document, delete it, create a fresh one, paste the content and set its proxy roles. It sounds ugly, but it works for me. Cornelis J. de Brabander ========================================== Department of Education, Leiden University P.O.Box 9555, NL-2300 RB Leiden +31 71 527 3422/3401 brabander@fsw.leidenuniv.nl ==========================================
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Paul Zwarts Sent: maandag 21 januari 2002 14:07 To: 'Dieter Maurer' Cc: zope@zope.org Subject: RE: [Zope] change proxy role permission
Dieter,
Thanks for the tip, It still doesn't work yet, so I'll just have to start mucking around much more... As T. Edison always said...
But one thing worth mentioning that it doesn't work either as superuser...
Also, do I need to change the rights of the object itself, or its supercedent folder, or in the Products section of the controlPanel? At this moment I'm just changing any rights that may have something to do with this, but none seem to work..
Thanks, Paz
-----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Sunday, January 20, 2002 5:29 PM To: Paul Zwarts Cc: zope@zope.org Subject: Re: [Zope] change proxy role permission
Paul Zwarts writes:
I've done quite a bit of searching for this problem I have. I get the following traceback from changing a role of a document to Manager:
Forbidden You are not authorized to change addUser because you do not have proxy roles. I think you must have the roles that the object uses as proxy to change the object in any way -- unless you are the Emergency User.
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Thanks for the tip Cornelis. I tried that also with no success, but do you think this trick is the same as taking ownership of the object as well? Cheers, Paz -----Original Message----- From: Cornelis J. de Brabander [mailto:brabander@fsw.LeidenUniv.nl] Sent: Monday, January 21, 2002 4:06 AM To: Paul Zwarts; 'Dieter Maurer' Cc: zope@zope.org Subject: RE: [Zope] change proxy role permission I'm not sure whether it's the same problem, but once in a while I get something similar. What I do is copy the content of the method or document, delete it, create a fresh one, paste the content and set its proxy roles. It sounds ugly, but it works for me. Cornelis J. de Brabander ========================================== Department of Education, Leiden University P.O.Box 9555, NL-2300 RB Leiden +31 71 527 3422/3401 brabander@fsw.leidenuniv.nl ==========================================
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Paul Zwarts Sent: maandag 21 januari 2002 14:07 To: 'Dieter Maurer' Cc: zope@zope.org Subject: RE: [Zope] change proxy role permission
Dieter,
Thanks for the tip, It still doesn't work yet, so I'll just have to start mucking around much more... As T. Edison always said...
But one thing worth mentioning that it doesn't work either as superuser...
Also, do I need to change the rights of the object itself, or its supercedent folder, or in the Products section of the controlPanel? At this moment I'm just changing any rights that may have something to do with this, but none seem to work..
Thanks, Paz
-----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Sunday, January 20, 2002 5:29 PM To: Paul Zwarts Cc: zope@zope.org Subject: Re: [Zope] change proxy role permission
Paul Zwarts writes:
I've done quite a bit of searching for this problem I have. I get the following traceback from changing a role of a document to Manager:
Forbidden You are not authorized to change addUser because you do not have proxy roles. I think you must have the roles that the object uses as proxy to change the object in any way -- unless you are the Emergency User.
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Thanks for the tip Cornelis. I tried that also with no success, but do you think this trick is the same as taking ownership of the object as well?
I'm not sure. The impossibility to change dtml methods because of proxy roles from Zope version 2.1.x. I remember however that locally adding myself with the role of owner did not help.
-----Original Message----- From: Cornelis J. de Brabander [mailto:brabander@fsw.LeidenUniv.nl] Sent: Monday, January 21, 2002 4:06 AM To: Paul Zwarts; 'Dieter Maurer' Cc: zope@zope.org Subject: RE: [Zope] change proxy role permission
I'm not sure whether it's the same problem, but once in a while I get something similar. What I do is copy the content of the method or document, delete it, create a fresh one, paste the content and set its proxy roles. It sounds ugly, but it works for me.
Cornelis J. de Brabander ========================================== Department of Education, Leiden University P.O.Box 9555, NL-2300 RB Leiden +31 71 527 3422/3401 brabander@fsw.leidenuniv.nl ==========================================
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Paul Zwarts Sent: maandag 21 januari 2002 14:07 To: 'Dieter Maurer' Cc: zope@zope.org Subject: RE: [Zope] change proxy role permission
Dieter,
Thanks for the tip, It still doesn't work yet, so I'll just have to start mucking around much more... As T. Edison always said...
But one thing worth mentioning that it doesn't work either as superuser...
Also, do I need to change the rights of the object itself, or its supercedent folder, or in the Products section of the controlPanel? At this moment I'm just changing any rights that may have something to do with this, but none seem to work..
Thanks, Paz
-----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Sunday, January 20, 2002 5:29 PM To: Paul Zwarts Cc: zope@zope.org Subject: Re: [Zope] change proxy role permission
Paul Zwarts writes:
I've done quite a bit of searching for this problem I have. I get the following traceback from changing a role of a document to Manager:
Forbidden You are not authorized to change addUser because you do not have proxy roles. I think you must have the roles that the object uses as proxy to change the object in any way -- unless you are the Emergency User.
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Paul, Paul Zwarts writes:
... But one thing worth mentioning that it doesn't work either as superuser... That sounds weird enough to start debugging:
add: import pdb; pdb.set_trace() in the function changing the proxy role (to be found via the traceback) Restart Zope in a way that it reads/write from a console (or pty, under Unix). Try to change the proxy role. Zope should stop and you should be able to use pdb (Python DeBugger) commands to find out precisely, why you are not able to change the proxy role. Dieter
participants (3)
-
Cornelis J. de Brabander -
Dieter Maurer -
Paul Zwarts