Create image fails with empty file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Gabriel Hurley |
Bug Description
When trying to upload an empty file as an image, horizon will show a following error:
Environment:
Request Method: POST
Request URL: http://
Django Version: 1.4.6
Python Version: 2.7.3
Installed Applications:
['openstack_
'django.
'django.
'django.
'django.
'django.
'django.
'compressor',
'horizon',
'openstack_
'openstack_
'openstack_
'openstack_auth']
Installed Middleware:
('django.
'django.
'django.
'django.
'django.
'horizon.
'django.
'django.
'django.
Traceback:
File "/usr/local/
111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/
38. return view_func(request, *args, **kwargs)
File "/opt/stack/
54. return view_func(request, *args, **kwargs)
File "/opt/stack/
38. return view_func(request, *args, **kwargs)
File "/usr/local/
48. return self.dispatch(
File "/usr/local/
69. return handler(request, *args, **kwargs)
File "/usr/local/
137. if form.is_valid():
File "/usr/local/
124. return self.is_bound and not bool(self.errors)
File "/usr/local/
115. self.full_clean()
File "/usr/local/
271. self._clean_form()
File "/usr/local/
299. self.cleaned_data = self.clean()
File "/opt/stack/
97. if not data['copy_from'] and not data['image_file']:
Exception Type: KeyError at /project/
Exception Value: 'image_file'
Changed in horizon: | |
assignee: | nobody → Gabriel Hurley (gabriel-hurley) |
importance: | Undecided → Medium |
milestone: | none → havana-rc1 |
status: | New → Confirmed |
Changed in horizon: | |
status: | In Progress → Fix Committed |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | havana-rc1 → 2013.2 |
https:/ /review. openstack. org/#/c/ 49043/1