[Zope] Zope 2.2.0a1 permission problems

Cary O'Brien cobrien@Radix.Net
Thu, 18 May 2000 19:30:36 -0400 (EDT)


Kyler wrote..

> <200005171841.NAA21044@gunsmoke.ecn.purdue.edu>
> Date: Thu, 18 May 2000 08:03:58 EST
> From: "Kyler B. Laird" <laird@ecn.purdue.edu>
> 
> 
> >>I just installed release 2.2.0a1 on a glibc Linux box, but I keep
> >>getting a permission problem when accessing a database query.
> >
> >I have encountered the same problem using ZOracleDA
> >under SPARC Solaris.
> 
> >    File /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py,
> > line 602, in renderwb
> >      (Object: jis_query)
> >  Unauthorized: 0	
> 

I've had identical problems with PostgreSQL queries.  I posted
two fairly detailed posts describing the problem.  I guess I'll
try your brute force method.

[snip some frustration]

> After beating on this over the last day or so trying to
> understand what was happening at the Web interface level
> (thinking that I must have just screwed up a permissions
> setting somewhere), I finally looked at the code and
> simply commented out line 602 in
> 	/data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py
> 
> 	# raise ValidationError, index
> 
> Ta da!  It works...for now.  This little patch will get
> me up and going.  I trust that someone will fix whatever
> problem necessitated this in a future release and I
> won't need this awful kludge, but it sure is nice to be
> able to use it now.
> 

Anyone know what the real fix is?

-- cary