[Zope] Zope 2.5.0b3 and sessioning problems

Chris McDonough chrism@zope.com
Tue, 8 Jan 2002 10:23:11 -0500


Doh!

This is a dumb bug.

Please apply this patch to TemporaryStorage, and this bug will go away.

This will be in the next 2.5 beta release (or final if no betas in the
interim).

Index: TemporaryStorage.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file:
/cvs-repository/Zope/lib/python/Products/TemporaryFolder/TemporaryStorage=
.py
,v
retrieving revision 1.6
diff -r1.6 TemporaryStorage.py
106c106
<             data, t =3D self._conflict_cache.get((oid, serial), marker)
---
>             data =3D self._conflict_cache.get((oid, serial), marker)
109c109,110
<             return data
---
>             else:
>                 return data[0] # data here is actually (data, t)


----- Original Message -----
From: "Juan Carlos Coru=F1a" <jcoruna@ibdosnorte.com>
To: <zope@zope.org>
Sent: Tuesday, January 08, 2002 8:14 AM
Subject: [Zope] Zope 2.5.0b3 and sessioning problems


> Hello all,
>
> I have some problems using the Session Data Manager in Zope 2.5.0b3.
> Sometimes I become a Unpack error. Here is the traceback:
>
> Traceback:
>    Traceback (innermost last):
>   File
/home/zope/Zope-2.5.0b3-linux2-x86/lib/python/ZPublisher/Publish.py,
> line 103, in publish
>   File /home/zope/Zope-2.5.0b3-linux2-x86/lib/python/Zope/__init__.py,
line
> 172, in commit
>   File /home/zope/Zope-2.5.0b3-linux2-x86/lib/python/ZODB/Transaction.p=
y,
> line 233, in commit
>   File /home/zope/Zope-2.5.0b3-linux2-x86/lib/python/ZODB/Connection.py=
,
> line 347, in commit
>     (Info: (('BTrees.OOBTree', 'OOBucket'),
'\x00\x00\x00\x00\x00\x00\x00*',
> ''))
>   File
>
/home/zope/Zope-2.5.0b3-linux2-x86/lib/python/Products/TemporaryFolder/Te=
mpo
> raryStorage.py, line 125, in store
>     (Object: TemporaryStorage)
>   File
> /home/zope/Zope-2.5.0b3-linux2-x86/lib/python/ZODB/ConflictResolution.p=
y,
> line 104, in tryToResolveConflict
>     (Object: TemporaryStorage)
>   File
> /home/zope/Zope-2.5.0b3-linux2-x86/lib/python/ZODB/ConflictResolution.p=
y,
> line 36, in state
>     (Object: TemporaryStorage)
>   File
>
/home/zope/Zope-2.5.0b3-linux2-x86/lib/python/Products/TemporaryFolder/Te=
mpo
> raryStorage.py, line 106, in loadSerial
>     (Object: TemporaryStorage)
> ValueError: unpack list of wrong size
>
> What is the problem?
>
>
> _______________________________________________
> 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 )
>