st2web icon indicating copy to clipboard operation
st2web copied to clipboard

Edited fields are not restored to correct data type and/or default value.

Open nzlosh opened this issue 3 years ago • 2 comments

Steps to produce error

  1. open actions tab
  2. select core.local action
  3. fill in cmd field with date
  4. fill in timeout field with d
  5. delete d from timeout field
  6. 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: ''"}

nzlosh avatar Sep 22 '22 10:09 nzlosh

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.

amanda11 avatar Sep 30 '22 14:09 amanda11

Seen on 3.8.0 and confirmed present in 3.7.0

nzlosh avatar Sep 30 '22 14:09 nzlosh