Create Cluster Template failing w/ mime error
Bug #1197479 reported by
Matthew Farrellee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Fix Released
|
Critical
|
Matthew Farrellee |
Bug Description
Currently on master (58f3330d, pre 0.2) with savanna-dashboard (b77fea20) and RDO on EL6, the "Create" button of the "Create Cluster Template" form results in an error.
savanna-api reports -
(stack traces omitted)
ERROR savanna.utils.api [-] Request aborted with status code 400 and message 'Content type 'application/
httpd's error_log reports -
(stack trace omitted)
RuntimeError: Unable to get Plugin, server returned code 500
Changed in savanna: | |
importance: | Undecided → Critical |
milestone: | none → 0.2a1 |
tags: | added: 0.2 |
Changed in savanna: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Debugging reveals that api.py's Rest:route: decorator: handler is using 'resp_type' from the kwargs to guess the appropriate MIME type -
<Request 'http:// localhost: 8080/v1. 0/7d250e3df0214 d2b8bfe236e89f1 b770/plugins/ vanilla/ 1.1.2' [GET]> d2b8bfe236e89f1 b770', 'version': u'1.1', 'resp_type': u'2', 'plugin_name': u'vanilla'}
kwargs = {'tenant_id': u'7d250e3df0214
The suffix_mime guess is thus for "res.2", which on my system is a legitimate type for application/ x-troff- man -
$ rpm -qf /etc/mime.types 2.1.31- 2.el6.noarch x-troff- man man 1 2 3 4 5 6 7 8
mailcap-
$ grep "1 2" /etc/mime.types
application/