#8 — ValueError when using Plone4 (Blobstorage) and collective.flowplayer 3.0rc2

State Resolved
Version: 3.0rc2
Area Functionality
Issue type Bug
Severity Important
Submitted by Mathias Leimgruber
Submitted on Dec 29, 2010
Responsible Radim Novotny
Target release:
I got a ValueError("Can't commit with opened blobs.") if I modify or delete a flashmovie in my Plone4 site.

I think it's a caching issue in events.py -> ChangeFileView -> file_handle. This method has property.Lazy descriptor
114 # For blobs
115 file_handle = file_object.getIterator()
116 except AttributeError:
117 file_handle = StringIO(str(file_object.data))
118 import pdb; pdb.set_trace( )
119 -> return file_handle
(Pdb) file_handle
<plone.app.blob.iterators.BlobStreamIterator object at 0x10d300ad0>

In case of using blobs file_handle returns a BlobStreamIterator.

I'm not really sure how to fix this issue, perhaps something like that.

file_handle = StringIO(file_object.getIterator().blob.read())

In my case in ends up in a warning for large files (8MB)

[warn] [/metadata/entry[1]] Error when getting size of 'item[8]': Field /metadata/entry[1]/item[8]/attr[]/key is too large!

For now I go back to 3.0rc1.
Steps to reproduce:
Plone 4 Site - Install collective.flowplayer - add a flv-file - try to modify or delete it
Added by Fred van Dijk on Jan 17, 2011 05:24 PM
I'm running into this issue as well, although deleting the ATBlob goes fine.
traceback.txt — text/plain, 0 Kb
Added by John Habermann on Mar 15, 2011 10:52 PM
I am also getting this issue with 3.0rc2 on plone 4.0.4.
traceback.txt — text/plain, 0 Kb
Added by Dominik Ruf on May 05, 2011 07:52 AM
Added by Radim Novotny on May 23, 2011 06:38 PM
Issue state: UnconfirmedResolved
Severity: MediumImportant
Responsible manager: (UNASSIGNED)naro
Thanks all for bug reports. I've released collective.flowplayer rc3 with a bugfix (hopefully).

See changeset at https://dev.plone.org/[…]/trunk

No responses can be added.