add_blogentry.html form error already has attachment

Bug #779870 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Low
Chris Rossi

Bug Description

OSF error monitor:

Exception when processing https://karl.soros.org/communities/jendela-tifa/blog/add_blogentry.html
Referer: https://karl.soros.org/communities/jendela-tifa/blog/add_blogentry.html
...
 File "/srv/osfkarl/production/16/eggs/repoze.bfg.formish-0.3-py2.6.egg/repoze/bfg/formish/zcml.py", line 213, in submitted
    result = getattr(controller, handler)(converted)
  File "/srv/osfkarl/production/16/eggs/karl-3.57-py2.6.egg/karl/content/views/blog.py", line 386, in handle_submit
    relocate_temp_images(blogentry, request)
  File "/srv/osfkarl/production/16/eggs/karl-3.57-py2.6.egg/karl/utilities/image.py", line 83, in relocate_temp_images
    doc.text = TMP_IMG_RE.sub(relocate, doc.text)
  File "/srv/osfkarl/production/16/eggs/karl-3.57-py2.6.egg/karl/utilities/image.py", line 72, in relocate
    name = make_name(attachments, image.filename)
  File "/srv/osfkarl/production/16/eggs/karl-3.57-py2.6.egg/karl/views/utils.py", line 137, in make_name
    raise ValueError(msg)
ValueError: The name 'untitled.jpg' already exists in folder 'attachments'

Tags: r3.67
Changed in karl3:
milestone: m55 → m56
Changed in karl3:
milestone: m56 → m58
Changed in karl3:
milestone: m58 → m60
Changed in karl3:
milestone: m60 → m59
Changed in karl3:
milestone: m59 → m60
Changed in karl3:
milestone: m60 → m61
Changed in karl3:
milestone: m61 → m62
Changed in karl3:
status: New → Fix Committed
JimPGlenn (jpglenn09)
tags: added: r3.67
Revision history for this message
JimPGlenn (jpglenn09) wrote :

fixed

Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.