Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-3734

IntegerValidator doesn't force the object type to be Integer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The IntegerValidator allows the non-integer object, like Double(1.0).
      https://github.com/apache/storm/blob/7bef73a6faa14558ef254efe74cbe4bfef81c2e2/storm-client/src/jvm/org/apache/storm/validation/ConfigValidation.java#L404-L415

      It can be reproduced by

              IntegerValidator validator = new IntegerValidator();
              validator.validateInteger("test", 1.0);
      

      More details at https://github.com/apache/storm/pull/3365#issuecomment-754775896

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ethanli Ethan Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: