Uploaded image for project: 'Turbine'
  1. Turbine
  2. TRB-94

Intake's BigDecimalValidator and the BaseValueParser don't parse inputs the same way

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Core 2.3.3
    • None
    • Turbine 2.3
    • None

    Description

      Hello,

      I don't know if this is still the case in the current development version but the BigDecimalValidator does not check whether the parsed value has the same length as the original input while the BaseValueParser does. This leads to unexpected behavior because while a String like "3.21a" passes the validation test it will not get set because the parsed length is not alike. One would expect that the user will get notified by a message that this is not a valid number.

      The relevant lines are:

      org.apache.turbine.services.intake.validator.parser.BigDecimalParser: 149
      org.apache.turbine.util.parser.BaseValueParser: 653-668

      Tilo

      Attachments

        Activity

          People

            tv Thomas Vandahl
            tvillwock Tilo Villwock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: