Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-411

UrlValidator accepts ports above max limit of 16-bit unsigned integer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.6
    • Routines
    • None

    Description

      Such a value http://host.organization.com:100000 is gladly accepted because the port ins never parsed and boundaries not checked.

      public static void main(String[] args) {
        UrlValidator validator = UrlValidator.getInstance();
        System.out.println(validator.isValid("http://host.organization.com:100000"));
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: