Skip to content

Url Validation #155

@devikasondhi

Description

@devikasondhi

Hello,

Here are some scenarios where url shows unexpected behaviour:

  1. url('http://:[email protected]:80/path') returns True while it should throw ValidationFailure as it is invalid userinfo and password format (missing user). A valid one: http://user:[email protected]:80/path
  2. no check on ports above max limit of 16-bit unsigned integer: validation http://example.rocks:65536/ should fail
  3. http://www.example.org/../world is invalid but url gives True. http://www.example.org/.. also should be invalid
  4. A test from validators library, http://a.b--c.de/ should be valid as per https://tools.ietf.org/html/rfc3986#page-49 but it throws ValidationFailure

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue: Works not as designedoutdatedIssue/PR: Open for more than 3 months

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions