Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-15342

Validation module is-time operation accepts invalid dates

    Details

    • Severity:
      S3
    • Defect Source:
      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

            • Assignee:
              mariano.gonzalez Mariano Gonzalez
              Reporter:
              mariano.gonzalez Mariano Gonzalez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: