ZODB error when copy-pasting a blob file (zope.file)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ZODB |
Won't Fix
|
Medium
|
Christian Theune | ||
zope.copypastemove |
Confirmed
|
High
|
Christian Theune |
Bug Description
- I create a clean buildout with zopeproject (either as is, or pointing to the 3.4 KGS).
- I add zope.mimetype and zope.file in the setup.py and configure.zcml
- I replace the filestorage with a blobstorage in zope.conf:
<blobstorage>
blob-dir var/blob
<filestorage>
path var/Data.fs
</filestorage>
</blobstorage>
- I log into the zmi
- I add a zope.file object
- copy and paste it:
2008-06-16T14:28:13 ERROR SiteError http://
Traceback (most recent call last):
File "/home/
File "/home/
File "/home/
File "/home/
File "/home/
File "/home/
File "/home/
File "/home/
File "/home/
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'
Changed in zope3: | |
importance: | Undecided → High |
affects: | zope3 → zope.copypastemove |
Changed in zodb: | |
status: | Confirmed → Won't Fix |
A first fix is :
In ZODB/blob.py:85, replace: self.writers:
for ref in self.readers+
with
for ref in (self.readers or []) + (self.writers or []):
But that's not enough, the copied file is empty.