Title: Fails validation on URLs that are not FQDNs · Issue #217 · python-validators/validators · GitHub
Open Graph Title: Fails validation on URLs that are not FQDNs · Issue #217 · python-validators/validators
X Title: Fails validation on URLs that are not FQDNs · Issue #217 · python-validators/validators
Description: A URL without a FQDN is perfectly valid. The resolver may attempt to add labels to a non FQDN in order to fully qualify it allowing the user to specify non-FQDNs. I.e. http://pc:8081/ is perfectly valid: $ host pc pc.example.com has addr...
Open Graph Description: A URL without a FQDN is perfectly valid. The resolver may attempt to add labels to a non FQDN in order to fully qualify it allowing the user to specify non-FQDNs. I.e. http://pc:8081/ is perfectly ...
X Description: A URL without a FQDN is perfectly valid. The resolver may attempt to add labels to a non FQDN in order to fully qualify it allowing the user to specify non-FQDNs. I.e. http://pc:8081/ is perfectly ...
Opengraph URL: https://github.com/python-validators/validators/issues/217
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fails validation on URLs that are not FQDNs","articleBody":"A URL without a FQDN is perfectly valid. The resolver may attempt to add labels to a non FQDN in order to fully qualify it allowing the user to specify non-FQDNs.\r\n\r\nI.e. `http://pc:8081/` is perfectly valid:\r\n\r\n```\r\n$ host pc\r\npc.example.com has address 10.75.22.1\r\n$ curl -q -4 -v 'http://pc:8081/'\r\n* Trying 10.75.22.1:8081...\r\n* Connected to pc (10.75.22.1) port 8081 (#0)\r\n\u003e GET / HTTP/1.1\r\n\u003e Host: pc:8081\r\n\u003e User-Agent: curl/7.82.0\r\n\u003e Accept: */*\r\n\u003e \r\n```\r\n\r\nBecause `/etc/reslov.conf` has `search example.com` in it.\r\n\r\nYet this fails validation with `validators.url()`\r\n\r\n``` \r\n$ python -c 'import validators; print(validators.url(\"http://pc:8081/\"))'\r\nValidationFailure(func=url, args={'value': 'http://pc:8081/', 'public': False})\r\n```","author":{"url":"https://github.com/brianjmurrell","@type":"Person","name":"brianjmurrell"},"datePublished":"2022-08-29T15:52:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/217/validators/issues/217"}
| 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:374d385e-f074-cb92-fa9f-0ba70f5c6deb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86F4:F25D1:1112984:175BA33:698F111A |
| html-safe-nonce | 91923334468d2dee10ce95fe515af6949a4f5f29f6eacbfec42085da1f7254e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkY0OkYyNUQxOjExMTI5ODQ6MTc1QkEzMzo2OThGMTExQSIsInZpc2l0b3JfaWQiOiI4Njc5OTI5Mzk3MTY2MTQ5OTE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dd54e59f975980f39816e8da6446d0483ca149610cea64ae8ff6a0e35f70a5c0 |
| hovercard-subject-tag | issue:1354522132 |
| 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/217/issue_layout |
| twitter:image | https://opengraph.githubassets.com/626ea0b361de624dd9b6b3aba7a9f94e88eb2a0b512bce68a28be527be6e4f55/python-validators/validators/issues/217 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/626ea0b361de624dd9b6b3aba7a9f94e88eb2a0b512bce68a28be527be6e4f55/python-validators/validators/issues/217 |
| og:image:alt | A URL without a FQDN is perfectly valid. The resolver may attempt to add labels to a non FQDN in order to fully qualify it allowing the user to specify non-FQDNs. I.e. http://pc:8081/ is perfectly ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brianjmurrell |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2da1a0d1318592c9965539b12269c4641177dfabfc86c3807992efb13e1d96ff |
| 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 | d735bf238a2094bebd08cd3641a9ef4d1fe77e4b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width