Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12734

Improve validation of number fields in the component editor

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • channel-manager
    • None

    Description

      Number fields for component properties are shown when  a @Parameter annotated method has a numeric return type. These can be short, int, long, java.lang.Short, java.lang.Integer and java.lang.Long *.

      When an invalid number is stored, for example a value that exceeds the  max value of a 'short' type, when the get method is called, the returned value is zero. There are no warnings logged or errors given.

      To improve this the correct validation for the number field type should be applied.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bleunis Bert Leunis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: