cubicweb #13519541 Migration to BFSS storage failed when a Bytes attributes is not defined [validation pending]

Traceback (most recent call last)
File "/usr/lib/python2.7/dist-packages/unittest2/case.py", line 67, in testPartExecutor
yield
File "/usr/lib/python2.7/dist-packages/unittest2/case.py", line 625, in run
testMethod()
File "/home/alex/hg/clients/nemo/cubicweb/cubicweb/server/test/unittest_migractions2.py", line 771, in test_storage_changed
mh.cmd_storage_changed('Personne', 'photo')
File "/home/alex/hg/clients/nemo/cubicweb/cubicweb/server/migractions.py", line 1370, in cmd_storage_changed
storage.migrate_entity(entity, attribute)
File "/home/alex/hg/clients/nemo/cubicweb/cubicweb/server/sources/storages.py", line 262, in migrate_entity
self.entity_added(entity, attribute)
File "/home/alex/hg/clients/nemo/cubicweb/cubicweb/server/sources/storages.py", line 164, in entity_added
self._writecontent(fd, binary)
File "/home/alex/hg/clients/nemo/cubicweb/cubicweb/server/sources/storages.py", line 138, in _writecontent
binary.to_file(fileobj)
AttributeError: 'NoneType' object has no attribute 'to_file'

prioritynormal
typebug
done in3.23.0
load left0.000
closed by#c655e19cbc35 [server,bfss] fix storage migration when Bytes attributes is None (closes #13519541)
patch[server,bfss] fix storage migration when Bytes attributes is None (closes #13519541) [applied]