Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nzlosh opened this issue Sep 22, 2022 · 2 comments
Open
Labels

Comments

@nzlosh
Copy link
Contributor

nzlosh commented Sep 22, 2022

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 nzlosh changed the title Edited fields are not restore to correct data type and/or default value. Edited fields are not restored to correct data type and/or default value. Sep 22, 2022
@amanda11
Copy link
Contributor

Which version of StackStorm is this?
There were changes on the default handling made in 3.7.0 - see #949. So I'm wondering if this is before or after that change.

@nzlosh
Copy link
Contributor Author

nzlosh commented Sep 30, 2022

Seen on 3.8.0 and confirmed present in 3.7.0

@arm4b arm4b added the bug label Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants