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

Query params validator shouldn't accept whitespaces

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0 Release
    • Fix Version/s: 1.6
    • Component/s: None
    • Labels:
      None

      Description

      I have noticed that query string regex /^(.*)$/ allows to input white space characters.
      eg.:
      http://example.com/serach?address=Main Avenue
      is a valid url due to validator, but java.net.URI.create will throw java.net.URISyntaxException: Illegal character in query

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcin.gasior@gmail.com Marcin Gasior
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: