Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 16006

Summary: Impossible to create "Zope Tutorial" object with zope 2.6.0-r2
Product: Gentoo Linux Reporter: Thomas Estaben <tom>
Component: Current packagesAssignee: net-zope (OBSOLETE) <net-zope+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Estaben 2003-02-19 10:54:19 UTC
After selection a type of "Zope Tutorial" object to create, we obtain the zope error : 
 
Zope has encountered an error while publishing this resource. 
 Error Type: Bad Request 
 Error Value: The ZGadflyDA product must be installed! 
 
The problem exist if the zope server is executed using the "zope" user, but doesn't 
when using "root". It seems the problem come from bad permissions somewhere...
Comment 1 Jason Shoemaker (RETIRED) gentoo-dev 2003-02-26 03:45:35 UTC
Hi,

This seems to be a problem with ZGadflyDA. It wants zope to run as -u root. I can't fix this, but I'll keep my eyes open for a patch.  If you could locate a patch, that would be great. :D  In the mean time the work-around is to set -u root.  Thank you for pointing this out.

--kutsuya
Comment 2 Svenne Krap 2003-05-24 12:43:23 UTC
A directory has a wrong owner.

QUICK FIX: as root "chown zope /var/lib/zope/<zope-instance>/var -R"

ie : 

chown zope /var/lib/zope/zope-2_6_1/var -R
Comment 3 Svenne Krap 2003-05-25 04:54:22 UTC
The supplied fix yesterday is a quite bad idea. Afterwards, Zope cannot start up if shut down. You can of course fix this by resetting ownership of ZOPE_INSTANCE_DIR/var to root.
Comment 4 Mark Gibson 2003-06-04 05:18:49 UTC
Hi, 
	I've encountered this problem too, and (before reading this bug report) 
performed the quick fix - eventually the restart failure occurred. 
 
I've got two suggestions for this (after changing var back to root owned): 
 
1, Add user 'zope' to group 'zope-2_6_1', this allows writing into the var directory. 
 or: 
2, chmod o+rwx /var/lib/zope/zope-2_6_1/var 
 
I'm currently going with the first option, and everything seems to be fine - zope 
starts ok, and the tutorial installs. 
I'm new to Zope, so I'm not sure what security implications either method has, 
esp. when several zope instances exist. 
 
Comment 5 Arthur Ward 2003-07-12 21:55:08 UTC
I'm no security expert, but while I was fighting this same problem, I noticed that  if you take the approach of making the zope user a member of the zope-2_6_1 group, you should probably make zope-2_6_1 the "inital group" (usermod -G zope-2_6_1 zope), as opposed to just adding the zope user to the zope-2_6_1 group. (usermod -g zope-2_6_1)  The difference is when I added ZGadflyDA and the ZopeTutorial, the gadfly files belonged to the users group, which sounds suspiciously like any other files that Zope might create later on will also be accessible to everyone in the users group, and that seems like a bad thing.
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-11 13:40:25 UTC
sorry, i don't understand your last comment copmletly, can you explain me
again the -G/-g thing ;)

*** This bug has been marked as a duplicate of 25636 ***