Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles
Hi, I'm getting the following error when I try to run a script via a non-manager proxy role (running the script as a manager works fine): *Error Type: Unauthorized* *Error Value: You are not allowed to access 'manage_copyObjects' in this context* *I'm using v2.8.1*, and there is no traceback about this error in the event log. Any help would be appreciated. TIA, AnThu
----- Original Message ----- From: "AnThu Nguyen" <Anthu.Nguyen@Sun.COM> To: <zope@zope.org> Sent: Monday, July 17, 2006 11:45 AM Subject: [Zope] Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles
Hi,
I'm getting the following error when I try to run a script via a non-manager proxy role (running the script as a manager works fine):
*Error Type: Unauthorized* *Error Value: You are not allowed to access 'manage_copyObjects' in this context*
*I'm using v2.8.1*, and there is no traceback about this error in the event log.
To view 'unauthorized' errors you need to go to the error_log (ZMI, root folder) and remove the 'Unauthorized' entry from 'Ignored exceptions types'. Jonathan
Thanks for the instructions Jonathan. The user does have "Copy or Move" permissions from /Products/ on down. Here's the traceback: Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 29, in dd_add - <PythonScript at /Products/snewt_edit/dd_add used for /Products/Aproduct2/DD/1/nta20060711161944Folder> - Line 29 Unauthorized: You are not allowed to access 'manage_copyObjects' in this context TIA, AnThu Jonathan wrote On 07/17/06 08:53 AM,:
----- Original Message ----- From: "AnThu Nguyen" <Anthu.Nguyen@Sun.COM> To: <zope@zope.org> Sent: Monday, July 17, 2006 11:45 AM Subject: [Zope] Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles
Hi,
I'm getting the following error when I try to run a script via a non-manager proxy role (running the script as a manager works fine):
*Error Type: Unauthorized* *Error Value: You are not allowed to access 'manage_copyObjects' in this context*
*I'm using v2.8.1*, and there is no traceback about this error in the event log.
To view 'unauthorized' errors you need to go to the error_log (ZMI, root folder) and remove the 'Unauthorized' entry from 'Ignored exceptions types'.
Jonathan _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
----- Original Message ----- From: "AnThu Nguyen" <Anthu.Nguyen@Sun.COM> To: "Jonathan" <dev101@magma.ca>; <zope@zope.org> Sent: Monday, July 17, 2006 12:21 PM Subject: Re: [Zope] Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles
Thanks for the instructions Jonathan.
The user does have "Copy or Move" permissions from /Products/ on down. Here's the traceback:
Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 29, in dd_add - <PythonScript at /Products/snewt_edit/dd_add used for /Products/Aproduct2/DD/1/nta20060711161944Folder> - Line 29 Unauthorized: You are not allowed to access 'manage_copyObjects' in this context
I have a vague recollection of encountering a similar problem in the past. I never discovered the cause of the problem, but the work-around was easy, at least it was in my use case: instead of doing a cut/paste I did a read old object/delete old object/create new object which worked ok. If you do pursue and solve the problem, post the solution! Jonathan
Hi Jonathan, Can you give some pointers on how to read old object / create new object? I have a File-type ZClass and can easily create a new one using an upload form. But how do I read, then pass to manage_add? I've searched the mail archives and can only find references to reading the uploaded files, but not the File object. context.manage_addProduct['myObjectFolder'].myZClass.createInObjectManager(id,context.REQUEST) Thanks, AnThu Jonathan wrote On 07/17/06 10:23 AM,:
----- Original Message ----- From: "AnThu Nguyen" <Anthu.Nguyen@Sun.COM> To: "Jonathan" <dev101@magma.ca>; <zope@zope.org> Sent: Monday, July 17, 2006 12:21 PM Subject: Re: [Zope] Access error with "manage_copyObjects / manage_pasteObjects" with proxy roles
Thanks for the instructions Jonathan.
The user does have "Copy or Move" permissions from /Products/ on down. Here's the traceback:
Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 29, in dd_add - <PythonScript at /Products/snewt_edit/dd_add used for /Products/Aproduct2/DD/1/nta20060711161944Folder> - Line 29 Unauthorized: You are not allowed to access 'manage_copyObjects' in this context
I have a vague recollection of encountering a similar problem in the past. I never discovered the cause of the problem, but the work-around was easy, at least it was in my use case: instead of doing a cut/paste I did a read old object/delete old object/create new object which worked ok.
If you do pursue and solve the problem, post the solution!
Jonathan
participants (2)
-
AnThu Nguyen -
Jonathan