Uploaded image for project: 'Validation Module'
  1. Validation Module
  2. VAL-21

Validation module is-time operation accepts invalid dates

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Security Level: Public
    • None
    • S3
    • Production Defect

    Description

      When using Validation extension in Mule 3.x and choice the option 'is Time' with the pattern "MM/dd/yyyy" and use a date that not contains letters, it gives you true always.

      This is because within the Validation Extension, in the TimeValidator function, when entering the class AbstractFormatValidator and calling the function parseObject, this converts alaways the date in a correct value instead of return that this is an invalid date in case of it happens.

      Steps to reproduce #
      1) Import the attached app.
      2)Try changing the value in the transform with value and not value dates.

      Notes :

      The property Lenient in the calendar is set in false as expected, by the way, the dates are not valid correctly.

      Attachments

        Activity

          People

            mariano.gonzalez@mulesoft.com Mariano Gonzalez (Inactive)
            mariano.gonzalez@mulesoft.com Mariano Gonzalez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: