Permissions & MS OS's
I have searched the archives for platform dependencies on security but did not find this problem. In FreePM I can add instances of the Employee ZClass (which adds a Zope user to FreePM/acl_users) on Linux as a Manager but on Win98SE, WinME & NT (others not tested) I get a permission error on manage_users. This traceback is from a WinME (don't ask why <g>) installation. --------------------------------------------------------------------------------- Site Error An error was encountered while publishing this resource. Unauthorized You are not authorized to access manage_users. Traceback (innermost last): File C:\Program Files\FreePM\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\Program Files\FreePM\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Program Files\FreePM\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Program Files\FreePM\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\OFS\DTMLMethod.py, line 189, in __call__ (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval (Object: acl_users.manage_users(submit='Add', REQUEST=REQUEST )) (Info: acl_users) File <string>, line 0, in ? File C:\Program Files\FreePM\lib\python\DocumentTemplate\DT_Util.py, line 138, in careful_getattr File C:\Program Files\FreePM\lib\python\OFS\DTMLMethod.py, line 261, in validate (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\AccessControl\SecurityManager.py, line 144, in validate File C:\Program Files\FreePM\lib\python\AccessControl\ZopeSecurityPolicy.py, line 199, in validate Unauthorized: (see above) ------------------------------------------------------------------------------ Thanks! -- Tim Cook, President - Free Practice Management, Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
There *should* be absolutely no difference. Are these the same version / product etc? Cheers. -- Andy McKay. ----- Original Message ----- From: "Tim Cook" <twcook@iswt.com> To: "Zope List" <zope@zope.org> Sent: Tuesday, July 17, 2001 2:31 PM Subject: [Zope] Permissions & MS OS's
I have searched the archives for platform dependencies on security but did not find this problem.
In FreePM I can add instances of the Employee ZClass (which adds a Zope user to FreePM/acl_users) on Linux as a Manager but on Win98SE, WinME & NT (others not tested) I get a permission error on manage_users.
This traceback is from a WinME (don't ask why <g>) installation.
--------------------------------------------------------------------------
Site Error
An error was encountered while publishing this resource.
Unauthorized
You are not authorized to access manage_users.
Traceback (innermost last): File C:\Program Files\FreePM\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\Program Files\FreePM\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Program Files\FreePM\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Program Files\FreePM\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\OFS\DTMLMethod.py, line 189, in __call__ (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\DocumentTemplate\DT_String.py, line 538, in __call__ (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\DocumentTemplate\DT_Util.py, line 334, in eval (Object: acl_users.manage_users(submit='Add', REQUEST=REQUEST )) (Info: acl_users) File <string>, line 0, in ? File C:\Program Files\FreePM\lib\python\DocumentTemplate\DT_Util.py, line 138, in careful_getattr File C:\Program Files\FreePM\lib\python\OFS\DTMLMethod.py, line 261, in validate (Object: add_employeeProcessor) File C:\Program Files\FreePM\lib\python\AccessControl\SecurityManager.py, line 144, in validate File C:\Program Files\FreePM\lib\python\AccessControl\ZopeSecurityPolicy.py, line 199, in validate Unauthorized: (see above)
--------------------------------------------------------------------------
Thanks!
-- Tim Cook, President - Free Practice Management, Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
_______________________________________________ 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 )
Andy McKay wrote:
There *should* be absolutely no difference. Are these the same version / product etc?
Cheers. -- Andy McKay.
I got that *should* part, but... <s> Yep. Exactly the same. If anyone wants to verify it you can download it here: http://www.freepm.org:8080/freepm_download/fpm_downloads FreePM-1.0b1-Plus.zip includes the required open source products. ---- moments later ---- I just thought to check. I can add users to Zope via the ZMI. Now to figure out why 'my' code works on Linux and not on MS OS's ???? <sigh> -- Tim Cook, President - Free Practice Management, Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
Tim Cook wrote:
I just thought to check. I can add users to Zope via the ZMI. Now to figure out why 'my' code works on Linux and not on MS OS's ???? <sigh>
I commented out the call to manage_users and put in a <dtml-var REQUEST> (my favorite troubleshooting method <s>). Both REQUEST stacks look exactly the same in all the place that they should. I was assigning domains as an empty list ( [''] ) and changed it to <input type="hidden" name="domains:tokens" value=""> so it matched the ZMI form. No effect though. Still Clueless! -- Tim Cook, President - Free Practice Management, Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
For those MS diehards who haven't used the <dtml-war> tag, here's the MS equivalent version as built by MS Word 97. Note the kindly conversion of unknown tags to Courier New and the passing mention of Microsoft's name (twice) in the code: <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> <META NAME="Generator" CONTENT="Microsoft Word 97"> <TITLE>> <dtml-war flame></TITLE> </HEAD> <BODY> <FONT FACE="Courier New" SIZE=2><P>> <dtml-war flame></P> <P>> Maybe your code is intelligent and just refuses to run on MS OS's.</P> <P>> </dtml-war></P></FONT></BODY> </HTML><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> <META NAME="Generator" CONTENT="Microsoft Word 97"> <TITLE>> <dtml-war flame></TITLE> </HEAD> <BODY> <FONT FACE="Courier New" SIZE=2><P>> <dtml-war flame></P> <P>> Maybe your code is intelligent and just refuses to run on MS OS's.</P> <P>> </dtml-war></P></FONT></BODY> </HTML> :) That's why I build all my code with Microsoft Notepad.exe.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jerome Alet Sent: Wednesday, July 18, 2001 2:23 AM To: tim@freepm.org Cc: zope@zope.org Subject: Re: [Zope] Permissions & MS OS's
On Tue, 17 Jul 2001, Tim Cook wrote:
Now to figure out why 'my' code works on Linux and not on MS OS's
<dtml-war flame> Maybe your code is intelligent and just refuses to run on MS OS's. </dtml-war>
;-)
Jerome Alet
_______________________________________________ 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 )
Alan Capesius wrote:
For those MS diehards who haven't used the <dtml-war> tag, here's the MS equivalent version as built by MS Word 97. Note the kindly conversion of unknown tags to Courier New and the passing mention of Microsoft's name (twice) in the code:
Well I didn't understand this about the dtml-war tag, but anyway.... Thanks to a suggestion by R. David Murray on irc I solved this problem. Apparently something went ary in the original Win98 installation (where all the others originated). Per David's suggestion I copied my Linux based Data.fs to the Windows machine and all is well in FreePM land again. <s> {still have no clue what the problem was though}. -- Tim Cook, President - Free Practice Management, Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
Tim Cook wrote:
In FreePM I can add instances of the Employee ZClass (which adds a Zope user to FreePM/acl_users) on Linux as a Manager but on Win98SE, WinME & NT (others not tested) I get a permission error on manage_users.
Forgot to say that this is Zope 2.3.2 w/ Python 1.5.2 on both platforms. -- Tim Cook, President - Free Practice Management, Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
participants (4)
-
Alan Capesius -
Andy McKay -
Jerome Alet -
Tim Cook