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

min value not working for configuration annotations

    Details

      Description

      Even if a min value is set using the configuration annotation Meta tag, there is no validation done for it.

      Examples:

      @Meta.AD(
      deflt = "5", min = "0", name = "versions-to-retain", required = false)
      public int versionThreshold();

      in CProductVersionConfiguration

       

      and

      @Meta.AD(
      deflt = "0.90", max = "0.99", min = "0.1", name = "minimum-buffer-availability-percentage", required = false)
      public float minimumBufferAvailabilityPercentage();

      in IndexerRegistryConfiguration

       

      If you set a negative number like "-5" it is stored with success message.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sharry.shi Sharry Shi
              Reporter:
              luca.pellizzon Luca Pellizzon
              Participants of an Issue:
              Recent user:
              Sharry Shi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

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

                  Packages

                  Version Package