Title: Url Validation · Issue #155 · python-validators/validators · GitHub
Open Graph Title: Url Validation · Issue #155 · python-validators/validators
X Title: Url Validation · Issue #155 · python-validators/validators
Description: Hello, Here are some scenarios where url shows unexpected behaviour: url('http://:pass@www.apache.org:80/path') returns True while it should throw ValidationFailure as it is invalid userinfo and password format (missing user). A valid on...
Open Graph Description: Hello, Here are some scenarios where url shows unexpected behaviour: url('http://:pass@www.apache.org:80/path') returns True while it should throw ValidationFailure as it is invalid userinfo and pa...
X Description: Hello, Here are some scenarios where url shows unexpected behaviour: url('http://:pass@www.apache.org:80/path') returns True while it should throw ValidationFailure as it is invalid userinf...
Opengraph URL: https://github.com/python-validators/validators/issues/155
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Url Validation","articleBody":"Hello,\r\n\r\nHere are some scenarios where ```url``` shows unexpected behaviour:\r\n1) ```url('http://:pass@www.apache.org:80/path')``` returns ```True``` while it should throw ```ValidationFailure``` as it is invalid userinfo and password format (missing user). A valid one: ```http://user:pass@www.apache.org:80/path```\r\n2) no check on ports above max limit of 16-bit unsigned integer: validation ```http://example.rocks:65536/``` should fail\r\n3) ```http://www.example.org/../world``` is invalid but ```url``` gives ```True```. ```http://www.example.org/..``` also should be invalid\r\n4) 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```","author":{"url":"https://github.com/devikasondhi","@type":"Person","name":"devikasondhi"},"datePublished":"2020-04-13T09:18:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/155/validators/issues/155"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e0fe17f5-310c-e57a-161e-0fa55c45d697 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D40E:3DB526:1F39D3:29E3E7:698F6E41 |
| html-safe-nonce | 60d9a293d2c04a6b4e92db8290cd2f2c314fceeaa19814ec9af4ce2e5d93cfe9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDBFOjNEQjUyNjoxRjM5RDM6MjlFM0U3OjY5OEY2RTQxIiwidmlzaXRvcl9pZCI6Ijc5NDEzNTAwMzE5MTg4NTM2OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3aefe027338f40cdc35a66990cac82e21a291850ea221ae730e0f114ffc73259 |
| hovercard-subject-tag | issue:598778056 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-validators/validators/155/issue_layout |
| twitter:image | https://opengraph.githubassets.com/674bfe5449ba7c2f8a3a9162de0588a0b9c152360c5386158062ab5b6458f686/python-validators/validators/issues/155 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/674bfe5449ba7c2f8a3a9162de0588a0b9c152360c5386158062ab5b6458f686/python-validators/validators/issues/155 |
| og:image:alt | Hello, Here are some scenarios where url shows unexpected behaviour: url('http://:pass@www.apache.org:80/path') returns True while it should throw ValidationFailure as it is invalid userinfo and pa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | devikasondhi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ab1c9acb90dba91d5e994ebfb6bfb1130e0e0e6aca329cdbbd934d636e22ab6 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-validators/validators git https://github.com/python-validators/validators.git |
| octolytics-dimension-user_id | 113113270 |
| octolytics-dimension-user_login | python-validators |
| octolytics-dimension-repository_id | 13642984 |
| octolytics-dimension-repository_nwo | python-validators/validators |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13642984 |
| octolytics-dimension-repository_network_root_nwo | python-validators/validators |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d6695367a1b2f05addc4030b791720f01693df4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width