Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[Django] #35981: Add ftp:// protocol to list of protocols in shortcut function in "django/contrib/contenttypes/views.py"

6 views
Skip to first unread message

Django

unread,
Dec 6, 2024, 3:56:23 PM12/6/24
to django-...@googlegroups.com
#35981: Add ftp:// protocol to list of protocols in shortcut function in
"django/contrib/contenttypes/views.py"
-------------------------------------+-------------------------------------
Reporter: Nikolay Fedorov | Type: Bug
Status: new | Component:
| contrib.contenttypes
Version: 5.1 | Severity: Normal
Keywords: view, shortcut, ftp | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
I use URLField (that support ftp protocols by default) with ftp:// for
pass to get_absolute_url of my model class and has error trying to follow
"View on site" on my admin.
Please add ftp:// protocol to list of protocols in shortcut function in
"django/contrib/contenttypes/views.py" (line: 41)
--
Ticket URL: <https://code.djangoproject.com/ticket/35981>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 6, 2024, 3:56:31 PM12/6/24
to django-...@googlegroups.com
#35981: Add ftp:// protocol to list of protocols in shortcut function in
"django/contrib/contenttypes/views.py"
-------------------------------------+-------------------------------------
Reporter: Nikolay Fedorov | Owner: (none)
Type: Bug | Status: new
Component: | Version: 5.1
contrib.contenttypes |
Severity: Normal | Resolution:
Keywords: view, shortcut, ftp | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Nikolay Fedorov):

* Attachment "Снимок экрана 2024-12-06 в 23.48.29.png" added.

Django

unread,
Dec 6, 2024, 6:58:00 PM12/6/24
to django-...@googlegroups.com
#35981: Add ftp:// protocol to list of protocols in shortcut function in
"django/contrib/contenttypes/views.py"
-------------------------------------+-------------------------------------
Reporter: Nikolay Fedorov | Owner: (none)
Type: New feature | Status: closed
Component: | Version: 5.1
contrib.contenttypes |
Severity: Normal | Resolution: wontfix
Keywords: view, shortcut, ftp | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* resolution: => wontfix
* status: new => closed
* type: Bug => New feature

Comment:

Thanks for the suggestion. Given that this seems to be a very niche use
case, as well as the fact that major browsers like Firefox and Chrome no
longer support FTP, I don't see a compelling reason to make this change.
--
Ticket URL: <https://code.djangoproject.com/ticket/35981#comment:1>

Django

unread,
Dec 7, 2024, 7:28:20 AM12/7/24
to django-...@googlegroups.com
#35981: Add ftp:// protocol to list of protocols in shortcut function in
"django/contrib/contenttypes/views.py"
-------------------------------------+-------------------------------------
Reporter: Nikolay Fedorov | Owner: (none)
Type: New feature | Status: closed
Component: | Version: 5.1
contrib.contenttypes |
Severity: Normal | Resolution: wontfix
Keywords: view, shortcut, ftp | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Nikolay Fedorov):

Thank you for answer and sorry for the inconvenience, but it's not about
browsers, but about the OS explorer, which opens the directory by link. In
my project, I use ftp links as a way to access files stored on a different
computer than the one running django. I am not able to use FilePathField
for example.
--
Ticket URL: <https://code.djangoproject.com/ticket/35981#comment:2>

Django

unread,
Dec 7, 2024, 4:52:52 PM12/7/24
to django-...@googlegroups.com
#35981: Add ftp:// protocol to list of protocols in shortcut function in
"django/contrib/contenttypes/views.py"
-------------------------------------+-------------------------------------
Reporter: Nikolay Fedorov | Owner: (none)
Type: New feature | Status: closed
Component: | Version: 5.1
contrib.contenttypes |
Severity: Normal | Resolution: wontfix
Keywords: view, shortcut, ftp | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham):

Support for ftp was added to `URLField` nearly 14 years ago in #15229.
Given major browsers no longer support it, there could be an argument that
`URLField` should drop support for it also. The main difficulty would be a
clean solution for backward-compatibility for those already using FTP
URLs, see #25594.
--
Ticket URL: <https://code.djangoproject.com/ticket/35981#comment:3>
Reply all
Reply to author
Forward
0 new messages