Skip to content

Bad float/integer input is silently accepted #1139

@mkrecek234

Description

@mkrecek234

You have float or integer fields and have a standard edit form to edit those.
If you enter any text hello into those float or integer fields, Atk4/Ui will validate them as OK, and Atk4/Data will store them as if you had typed in 0.

This is dangerous and wrong.

Any number field should not accept wrong text, otherwise type validation does not make any sense.

Expected behaviour:
Any number field should throw a ValidationException if it cannot correctly interprete the input value. Interpreting this as 0 if the user has another intention is dangerous.

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