Post Validation Actions

According to Data Validation's best practices, the input validation is only the first part of the data validation guidelines. As such, Post-validation Actions should also be performed. The Post-validation Actions used vary with the context and are divided into three separate categories:

  • Enforcement Actions

    Several types of Enforcement Actions exist in order to better secure our application and data.

    • Inform the user that submitted data has failed to comply with the requirements and therefore the data should be modified in order to comply with the required conditions.

    • Modify user submitted data on the server side without notifying the user of said changes. This is most suitable in systems with interactive usage.

    Note - the latter is used mostly in cosmetic changes (modifying sensitive user data can lead to problems like truncating, which incur in data loss).

  • Advisory Action

    Usually allow unchanged data to be entered, however the source actor should be informed that there were issues with said data. This is most suitable for non-interactive systems.

  • Verification Action

    Refer to the special cases in the Advisory Actions. In such cases, the user submits the data and the source actor asks the user to verify said data and suggests changes. The user then accepts these changes or keeps his original input.

A simple way to illustrate this is via a billing address form, where the user enters his address and the system suggests addresses associated with the account. The user then accepts one of these suggestions or ships to the address that was initially entered.

results matching ""

    No results matching ""