[ZPatterns] access denied error

Steve Spicklemire steve@spvi.com
Mon, 13 Aug 2001 01:38:45 -0500


Hi Joachim,

	Strange.. any chance you could pack up one of your "broken" =
cases=20
(the simpler the better) and post it somewhere that we can poke at it?

thanks,
-steve

On Monday, August 13, 2001, at 01:36 AM, Joachim Schmitz wrote:

> Hi Steve,
>
> after some rest during the weekend, back to this issue.
>
> I changed the storage-zclass for this specialist to an "old" zclasss,=20=

> which
> was created half a year ago with Zope 2.2, and the problem goes=20
> away !!!!!
>
> To answer you question below, the objects are stored in ZClasse, with=20=

> the
> Base Classes:
> ZObject, _ZClass_for_DataSkin
>
> this is the same for "old" and "new" ZClasses.
>
> On Fri, 10 Aug 2001, Steve Spicklemire wrote:
>
>>
>> Hi Joachim,
>>
>> 	What kind of objects are these? How do they subclass from =
DataSkin?
>>
>> -steve
>>
>> Joachim Schmitz wrote:
>>>
>>> During my search for the cause of this problem, I found a much =
easier=20
>>> way to
>>> reproduce it, though to me it makes even more strange.
>>>
>>> I wrote a little pythonscript to list the entries in my Rack:
>>>
>>> ## Script (Python) "listall"
>>> ##bind container=3Dcontainer
>>> ##bind context=3Dcontext
>>> ##bind namespace=3D_
>>> ##bind script=3Dscript
>>> ##bind subpath=3Dtraverse_subpath
>>> ##parameters=3D
>>> ##title=3D
>>> ##
>>>
>>> for I in context.getAllIds():
>>>     item =3D context.getItem(I)
>>>     print I,item.RechnungsNr
>>> return printed
>>>
>>> That pops up the authentication dialog, and if I quit it, I get:
>>>
>>> Traceback (innermost last):
>>>   File=20
>>> =
/usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/ZPublisher/Publish.=

>>> py, line 223, in publish_module
>>> ......
>>>   File=20
>>> =
/usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/AccessControl/Secur=
ityManager.
>>> py, line 144, in validate
>>>   File=20
>>> =
/usr/local/ZopePark/ZopeVersions/Zope-2.3.3/lib/python/AccessControl/ZopeS=
ecurityPolicy.
>>> py, line 168, in validate
>>> Unauthorized: RechnungsNr
>>>
>>> when I change the print line to:
>>>
>>>     print I,item.faellig
>>>
>>> I get:
>>>
>>> 080101 1970/01/01
>>> 080102 1970/01/01
>>>
>>> So it looks to me it cannot access the value "None", cause I get the
>>> Unauthorized error only for attributes, which happen to have no =
value.
>>>
>>> Mit freundlichen Gr=FC=DFen
>>>
>>> Joachim Schmitz
>>>
>>> AixtraWare, Ing. B=FCro f=FCr Internetanwendungen
>>> H=FCsgenstr. 33a, D-52457 Aldenhoven
>>> Telefon: +49-2464-8851, FAX: +49-2464-905163
>>>
>>> _______________________________________________
>>> ZPatterns mailing list
>>> ZPatterns@eby-sarna.com
>>> http://www.eby-sarna.com/mailman/listinfo/zpatterns
>>
>> _______________________________________________
>> ZPatterns mailing list
>> ZPatterns@eby-sarna.com
>> http://www.eby-sarna.com/mailman/listinfo/zpatterns
>>
>>
>
> Mit freundlichen Gr=FC=DFen
>
> Joachim Schmitz
>
> AixtraWare, Ing. B=FCro f=FCr Internetanwendungen
> H=FCsgenstr. 33a, D-52457 Aldenhoven
> Telefon: +49-2464-8851, FAX: +49-2464-905163