An attempt to clear a icon fails to clear the icon

Bug #881091 reported by John Pugh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Developer registration portal
Fix Released
Medium
Danny Tamez

Bug Description

When submitting an application, I added a 32px icon inadvertently. When attempting to remove the 32px icon, I check the clear box and submit the changes. The icon remains.

Expected behavior: Check the "clear" checkbox, save, icon is removed.

Tags: kb-defect sp-1
Revision history for this message
Anthony Lenton (elachuni) wrote :

Attempting to remove via the admin also fails, with the following traceback in an oops:

Traceback:
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/core/handlers/base.py" in get_response
  111. response = callback(request, *callback_args, **callback_kwargs)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/contrib/admin/options.py" in wrapper
  307. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/utils/decorators.py" in _wrapped_view
  93. response = view_func(request, *args, **kwargs)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/views/decorators/cache.py" in _wrapped_view_func
  79. response = view_func(request, *args, **kwargs)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/contrib/admin/sites.py" in inner
  197. return view(request, *args, **kwargs)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/utils/decorators.py" in _wrapper
  28. return bound_func(*args, **kwargs)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/utils/decorators.py" in _wrapped_view
  93. response = view_func(request, *args, **kwargs)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/utils/decorators.py" in bound_func
  24. return func(self, *args2, **kwargs2)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/db/transaction.py" in inner
  217. res = func(*args, **kwargs)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/contrib/admin/options.py" in change_view
  962. if form.is_valid():
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/forms/forms.py" in is_valid
  121. return self.is_bound and not bool(self.errors)
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/forms/forms.py" in _get_errors
  112. self.full_clean()
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/forms/forms.py" in full_clean
  267. self._clean_fields()
File "/srv/sc.ubuntu.com/production/software-center-agent/sourcecode/django/django/forms/forms.py" in _clean_fields
  287. value = getattr(self, 'clean_%s' % name)()
File "/srv/sc.ubuntu.com/production/software-center-agent/src/softwarecenteragent/forms.py" in clean_icon_32
  101. return self._clean_icon(32)
File "/srv/sc.ubuntu.com/production/software-center-agent/src/softwarecenteragent/forms.py" in _clean_icon
  70. if data.name.endswith('.svg'):

Exception Type: AttributeError at /admin/softwarecenteragent/application/320/
Exception Value: 'bool' object has no attribute 'name'

Changed in developer-portal:
status: New → Confirmed
importance: Undecided → Medium
tags: added: kb-defect sp-1
Danny Tamez (zematynnad)
Changed in developer-portal:
status: Confirmed → In Progress
assignee: nobody → Danny Tamez (zematynnad)
Danny Tamez (zematynnad)
Changed in developer-portal:
status: In Progress → Fix Committed
Changed in developer-portal:
milestone: none → 11.12
Changed in developer-portal:
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.