- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 19
Open
Labels
Description
Plone 5.1/5.2
This error occurs when you create an object with image content over plone.restapi where you do not specify an explicit filename for the image. Neither Plone nor plone.restapi check the existence of a filename for image content. Not passing a filename leads to this error when trying to edit -> save the related content object.
Perhaps the condition should be an and condition
I am not sure about the overall impact or the overall importance of the filename value in general.
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module plone.z3cform.layout, line 63, in __call__
  Module plone.z3cform.layout, line 47, in update
  Module plone.dexterity.browser.edit, line 58, in update
  Module plone.z3cform.fieldsets.extensible, line 65, in update
  Module plone.z3cform.patch, line 30, in GroupForm_update
  Module z3c.form.group, line 141, in update
  Module z3c.form.group, line 52, in update
  Module z3c.form.group, line 48, in updateWidgets
  Module z3c.form.field, line 277, in update
  Module z3c.form.browser.text, line 36, in update
  Module z3c.form.browser.widget, line 171, in update
  Module Products.CMFPlone.patches.z3c_form, line 47, in _wrapped
  Module z3c.form.widget, line 88, in update
  Module plone.formwidget.namedfile.widget, line 273, in extract
  Module plone.namedfile.utils, line 42, in safe_basename
AttributeError: 'NoneType' object has no attribute 'rfind'