st2web
st2web copied to clipboard
Edited fields are not restored to correct data type and/or default value.
Steps to produce error
- open actions tab
- select
core.localaction - fill in
cmdfield withdate - fill in
timeoutfield withd - delete
dfromtimeoutfield - click
run.
Expected Result
The action is submitted and accepted for execution.
Actual Result
An error stating the submission failed. The request payload shows timeout being sent as an empty string when its default value should be 60.
{"action":"core.local","parameters":{"cmd":"date","timeout":""},"context":{"trace_context":{}}}
The API correctly reports the malformed payload as an error:
{"faultstring":"invalid literal for int() with base 10: ''"}
Which version of StackStorm is this? There were changes on the default handling made in 3.7.0 - see https://github.com/StackStorm/st2web/pull/949. So I'm wondering if this is before or after that change.
Seen on 3.8.0 and confirmed present in 3.7.0