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

UrlValidator rejects path having two or more successive dots

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1 Release
    • 1.5.0
    • None
    • None

    Description

      Minmal example:

      UrlValidator urlValidator = new UrlValidator();
      boolean isValidOneDot = urlValidator.isValid("http://www.example.org/hello.world/"); // evaluates to true
      boolean isValidTwoDots = urlValidator.isValid("http://www.example.org/hello..world/"); // evaluates to false
      

      Real world example:

      UrlValidator urlValidator = new UrlValidator();
      boolean isValidRealWord = urlValidator.isValid("http://forum.golem.de/sonstiges/trollwiese/apple-bashing-in-3...2...1...go/98,4089549,4089549,read.html#msg-4089549"); // evaluates to false
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Stefan Pi Stefan Pi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment