StackStorm / st2web

StackStorm Web UI
http://www.stackstorm.com/features
Apache License 2.0
102 stars 83 forks source link

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

Open nzlosh opened 1 year ago

nzlosh commented 1 year ago

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: ''"}
amanda11 commented 1 year ago

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.

nzlosh commented 1 year ago

Seen on 3.8.0 and confirmed present in 3.7.0