posting incorrect workflow/workbook results in 500 server error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
Nikolay Makhotkin |
Bug Description
Expected result - client error 400, and return the details on the error
Actual result: 500 (and python-
LOG for workflow, but same happens for syntax error in workbook:
2015-01-26 23:33:51.681 14849 INFO mistral.
version: "2.0"
name: simple_workflow
description: Simple workflow without a workbook
type: direct
tasks:
do_nothing_task:
description: do nothing
policies:
wait-before: 1
action: std.echo
input:
output:
key1: "bar"
key2: [foo, bar]
publish:
result: $]
Traceback (most recent call last):
File "/usr/local/
self.result = application(
File "/Users/
return self.applicatio
File "/Users/
return super(Pecan, self)._
File "/Users/
self.
File "/Users/
result = controller(*args, **kwargs)
File "/Users/
return func(*args, **kwargs)
File "/Users/
db_wfs = workflows.
File "/Users/
wf_list_spec = spec_parser.
File "/Users/
spec_dict = parse_yaml(text)
File "/Users/
raise RuntimeError(
RuntimeError: Definition could not be parsed: mapping values are not allowed here
in "<unicode string>", line 2, column 8:
version: "2.0"
^
127.0.0.1 - - [26/Jan/2015 23:33:51] "POST /v2/workflows HTTP/1.1" 500 59
Changed in mistral: | |
status: | Fix Committed → Fix Released |
Changed in mistral: | |
milestone: | kilo-2 → 2015.1 |
The problem is those two dashes on the top of definition:
--
version: 2.0
...
YAQL marker - three dashes. Ok, I fix this bug.