Skip to content

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

Description

@nzlosh

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: ''"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions