#36131: URLValidator does not allow URLs without a top level domain (except for
localhost)
-------------------------------+-----------------------------------------
Reporter: Ludwig Kraatz | Owner: Ludwig Kraatz
Type: New feature | Status: closed
Component: Core (Other) | Version: 5.1
Severity: Normal | Resolution: wontfix
Keywords: URL Validator | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------+-----------------------------------------
Changes (by Sarah Boyce):
* resolution: invalid => wontfix
* summary: URLValidator not correctly validating URLs =>
URLValidator does not allow URLs without a top level domain (except
for localhost)
* type: Bug => New feature
Comment:
Thank you for the ticket Ludwig. Apologies I didn't give more context as
to why I found the ticket confusing
I have revised this to be a new feature, rather than a bug, as this is a
change of behavior which has downstream consequences and not everyone
would want to accept these URLs
This would likely want to be configurable, similar to `schemes`, possibly
with an allow all option.
Our process for requesting features is to first propose and discuss the
idea with the community and gain consensus. To do that, please consider
starting a new conversation on the
[https://forum.djangoproject.com/c/internals/5 Django Forum], where you'll
reach a broader audience and receive additional feedback.
If the community agrees with the proposal, please return to this ticket
and reference the forum discussion so we can re-open it. For more
information, please refer to
[https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
features/#requesting-features the documented guidelines for requesting
features].
--
Ticket URL: <https://code.djangoproject.com/ticket/36131#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019498c0f426-6bf2d55c-e133-4c7c-877c-0e84966485ff-000000%40eu-central-1.amazonses.com.