Heat - Select template doesn't check well template source method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
heat-dashboard |
Confirmed
|
Low
|
Unassigned |
Bug Description
On Horizon Icehouse 2014.1.1 release and Heat Icehouse 2014.1.1 release.
HOW TO REPRODUCE
-------
1.- Go to http://
2.- Select "URL" template source
3.- Fill the URL field with an URL to a file with invalid syntax and click "Next"
3.- Horizon raises a correct error message about the syntax. OK
4.- Change template source to "Direct input"
5.- Fill textarea field with whatever characters (it doesn't matter) and click "Next"
6.- Horizon raises this error message: "Please specify a template using only one source method." ?????
CONCLUSION
-------
So, the problem is: Horizon doesn't remove the data from HTML fields, on "select template" webpage, when something was wrong. Then, when you try another template source, Horizon doesn't remove the data from the other HTML fields before to execute the HTML form.
My question, is this the behavior expected?. I was expecting that Horizon checks only the information about the "template source" that selected right now, not to check the previous selection.
tags: | added: heat |
Changed in horizon: | |
status: | New → Incomplete |
Changed in horizon: | |
assignee: | Miguel Grinberg (miguelgrinberg) → Lucas Palm (lapalm) |
Changed in horizon: | |
assignee: | Lucas Palm (lapalm) → nobody |
Changed in horizon: | |
status: | In Progress → Confirmed |
importance: | Undecided → Low |
I cannot reproduce this. I get 'ERROR: Template not in valid format: The template is not a JSON object or YAML mapping.' at step 6. Perhaps this depends on what you are entering in steps 3 and 5. Can you provide more specific details on what to enter on steps 3 and 5?