Hi, I did an upgrade last week, from zope 2.1.6 to 2.2.1, using Debian packages. Almost everything was correct, but site access no longer works. My setup is: 1. apache virtual host with rewrite rules: <VirtualHost my_ip_goes_here:80> SSLEngine off ServerAdmin mario@localhost ServerName agilizearede.myserver.com SetEnv SERVER_URL http://agilizearede.myserver.com <IfModule mod_rewrite.c> RewriteEngine on RewriteLog /var/log/apache/rewrite_log RewriteLogLevel 3 RewriteRule ^/static/(.*) /var/www/agilize/$1 [L] RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /usr/lib/cgi-bin/Zope/$1 \ [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] </IfModule> </VirtualHost> 2. I use pcgi, also used to work, and is working now! 3. each virtual host has its folder and each one its SiteRoot; Zope root has a DTML method that split the HTTP_HOST env. variable and call REQUEST for TraversalRequestNameStack append (from howto). Then I had a access rule in Zope root to call the DTML method. 4. My problem is that I can't no longer add a Access Rule to Zope root. It complains with the following msg: ----------- Zope has encountered an error while publishing this resource. ERROR TYPE: ATTRIBUTEERROR ERROR VALUE: 'STRING' OBJECT HAS NO ATTRIBUTE 'NAME' ---------------- the html source relevant part is: <!-- Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: www/AccessRuleAdd) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: www/AccessRuleAdd) File /usr/lib/zope/lib/python/App/special_dtml.py, line 120, in __call__ (Object: www/AccessRuleAdd) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: www/AccessRuleAdd) File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: manage_getAccessRule(this())) (Info: manage_getAccessRule) File <string>, line 0, in ? File /usr/lib/zope/lib/python/Products/SiteAccess/AccessRule.py, line 76, in getAccessRule (Object: ApplicationDefaultPermissions) AttributeError: (see above) --> Can somebody help me to fix this? Any suggestion is very welcome as I'm lost! []s, Mario O.de Menezes "Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br
On Mon, Sep 25, 2000 at 01:52:26PM -0300, Mario Olimpio de Menezes wrote:
I did an upgrade last week, from zope 2.1.6 to 2.2.1, using Debian packages. Almost everything was correct, but site access no longer works.
Zope 2.2 requires SiteAccess 2 to work. SiteAccess 1 will not work with Zope 2.2, but unfortunately the Debian package for SiteAccess 1 doesn't list this restriction. This is probably due to Debian policy not to allow changes to packages in stable releases unless it is a security fix. You can download a Debian package of SiteAccess 2 from http://www.debian.org/Packages/unstable/web/zope-siteaccess.html -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
Quoting Martijn Pieters <mj@digicool.com>:
On Mon, Sep 25, 2000 at 01:52:26PM -0300, Mario Olimpio de Menezes wrote:
I did an upgrade last week, from zope 2.1.6 to 2.2.1, using Debian packages. Almost everything was correct, but site access no longer works.
Zope 2.2 requires SiteAccess 2 to work.
Well, I forgot to say that, but of course, I'm using SiteAccess 2. Any other suggestion? Thanks! []s Mario O.de Menezes "Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br
On Tue, Sep 26, 2000 at 03:55:58PM -0300, mario@curiango.ipen.br wrote:
Quoting Martijn Pieters <mj@digicool.com>:
On Mon, Sep 25, 2000 at 01:52:26PM -0300, Mario Olimpio de Menezes wrote:
I did an upgrade last week, from zope 2.1.6 to 2.2.1, using Debian packages. Almost everything was correct, but site access no longer works.
Zope 2.2 requires SiteAccess 2 to work.
Well, I forgot to say that, but of course, I'm using SiteAccess 2. Any other suggestion? Thanks!
Looking over your mail again, it seems that there is already an AccessRule registered, but it is of the wrong type. You can't remove it with the Add interface, because that triggers the error. Instead, you'll have to do this in your Zope root directory (I am assuming that the MOnitor client is running at it's default port of 8099): cat access # copy everything after the first ':'. This is your monitor password. python ZServer/medusa/monitor_client.py localhost 8099 # paste the monitor password import Zope from Products.SiteAccess.AccessRule import manage_addAccessRule app=Zope.app() manage_addAccessRule(app) get_transaction().commit() The Access Rule is now cleared. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
On Tue, 26 Sep 2000, Martijn Pieters wrote:
Looking over your mail again, it seems that there is already an AccessRule registered, but it is of the wrong type. You can't remove it with the Add interface, because that triggers the error.
how could it happens? I did a fresh install of zope 2.2.1! I purged the entire directory tree (/usr/lib/zope) before installing! []s, Mario O.de Menezes "Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br
On Wed, Sep 27, 2000 at 02:44:41PM -0300, Mario Olimpio de Menezes wrote:
On Tue, 26 Sep 2000, Martijn Pieters wrote:
Looking over your mail again, it seems that there is already an AccessRule registered, but it is of the wrong type. You can't remove it with the Add interface, because that triggers the error.
how could it happens? I did a fresh install of zope 2.2.1! I purged the entire directory tree (/usr/lib/zope) before installing!
I assumed you were using your old Data.fs file here. The AccessRule instance that is in the way comes from your ODB, not from the class definitions provided by your clean Zope code. I worked out your instructions with a clean 2.2.1 install I still had around, and it works fine with SiteAccess. If you can reproduce this problem with a clean 2.2.1 install with the clean ODB (the one with te QuickStart folder and the "Welcome to Zope" page), then you should report a bug. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
On Wed, 27 Sep 2000, Martijn Pieters wrote: Hi Martijn, Thanks for you assistance! Well, before installing zope 2.2.1 I purged everything from my disk (/var/lib/zope, /usr/lib/zope, etc). I'll do it again and see if I can reproduce or if it fixes the problem. Thanks again
I assumed you were using your old Data.fs file here. The AccessRule instance that is in the way comes from your ODB, not from the class definitions provided by your clean Zope code.
I worked out your instructions with a clean 2.2.1 install I still had around, and it works fine with SiteAccess. If you can reproduce this problem with a clean 2.2.1 install with the clean ODB (the one with te QuickStart folder and the "Welcome to Zope" page), then you should report a bug.
[]s, Mario O.de Menezes "Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br
On Wed, 27 Sep 2000, Martijn Pieters wrote:
I worked out your instructions with a clean 2.2.1 install I still had around, and it works fine with SiteAccess. If you can reproduce this problem with a clean 2.2.1 install with the clean ODB (the one with te QuickStart folder and the "Welcome to Zope" page), then you should report a bug.
I was able to reproduce the problem here. BTW I'm using zope and siteaccess from Debian packages. I'll try with tarball siteaccess and see what happens! thanks again []s Mario O.de Menezes "Many are the plans in a man's heart, but IPEN-CNEN/SP is the Lord's purpose that prevails" http://curiango.ipen.br/~mario Prov. 19.21 http://www.revistalinux.com.br
participants (3)
-
Mario Olimpio de Menezes -
mario@curiango.ipen.br -
Martijn Pieters