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

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              roberto.diaz Roberto Díaz
              Participants of an Issue:
              Recent user:
              Antonio Ortega
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 50 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP61
                  7.0.X