Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-86661

Form Number Validation Allows "f" & "d" characters

Details

    Description

      Steps to reproduce:

      1. Create a new form with a numeric validation text field
      2. SEt the validation to "greater or equal 99999"
      3. put the form portlet in a page and select the form
      4. add 123456f or 123456d to the field

      Expected: Valiudation fails

      Current: Validation passes.

       

      This is produced because se validation method uses the  Double.parseDouble function and it is able to parse the numbers with the digit and float char.

      Attachments

        Issue Links

          Activity

            People

              joyce.wang Joyce Wang
              roberto.diaz Roberto Díaz
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 years, 5 weeks, 2 days ago

                Packages

                  Version Package
                  7.0.0 DXP FP61
                  7.0.X