[Django] #32375: Sitemap.protocol change default to 'https'?

24 views
Skip to first unread message

Django

unread,
Jan 21, 2021, 10:43:47 AM1/21/21
to django-...@googlegroups.com
#32375: Sitemap.protocol change default to 'https'?
--------------------------------------------+------------------------
Reporter: Thomas Güttler | Owner: nobody
Type: New feature | Status: new
Component: contrib.sitemaps | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------------+------------------------
I think it is time to change the default of Sitemap.protocol to https.

https://docs.djangoproject.com/en/3.1/ref/contrib/sitemaps/#django.contrib.sitemaps.Sitemap.protocol

Of course slowly with a clear deprecation timeline.

What do you think?

--
Ticket URL: <https://code.djangoproject.com/ticket/32375>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 26, 2021, 1:13:38 AM1/26/21
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
--------------------------------------+------------------------------------

Reporter: Thomas Güttler | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.sitemaps | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* type: New feature => Cleanup/optimization
* version: 3.1 => master
* stage: Unreviewed => Accepted


Comment:

Sounds reasonable. We can add a warning for changing the default and
switch it when the deprecation ends (as in
9a30acad8a1996c914351bad981d937de4db29a4). Would you like to provide a
patch?

--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:1>

Django

unread,
Jan 27, 2021, 12:49:29 AM1/27/21
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Jerin
Type: | Peter George
Cleanup/optimization | Status: assigned

Component: contrib.sitemaps | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jerin Peter George):

* cc: Jerin Peter George (added)
* owner: nobody => Jerin Peter George
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:2>

Django

unread,
Apr 20, 2021, 2:41:19 AM4/20/21
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Jerin
Type: | Peter George
Cleanup/optimization | Status: assigned
Component: contrib.sitemaps | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by David Smith):

* easy: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:3>

Django

unread,
May 14, 2021, 7:34:39 AM5/14/21
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Rohith P
Type: | R

Cleanup/optimization | Status: assigned
Component: contrib.sitemaps | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Rohith P R):

* owner: Jerin Peter George => Rohith P R
* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:4>

Django

unread,
May 14, 2021, 8:30:09 AM5/14/21
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Rohith P
Type: | R
Cleanup/optimization | Status: assigned
Component: contrib.sitemaps | Version: dev
Severity: Normal | Resolution:
Keywords: sitemap, protocol, | Triage Stage: Accepted
https |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Nick Pope):

* keywords: => sitemap, protocol, https
* needs_better_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/14396 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:5>

Django

unread,
May 15, 2021, 3:16:45 AM5/15/21
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Rohith P
Type: | R
Cleanup/optimization | Status: assigned
Component: contrib.sitemaps | Version: dev
Severity: Normal | Resolution:
Keywords: sitemap, protocol, | Triage Stage: Accepted
https |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Rohith P R):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:6>

Django

unread,
May 19, 2021, 6:29:34 AM5/19/21
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Rohith P
Type: | R
Cleanup/optimization | Status: assigned
Component: contrib.sitemaps | Version: dev
Severity: Normal | Resolution:
Keywords: sitemap, protocol, | Triage Stage: Accepted
https |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:7>

Django

unread,
May 21, 2021, 5:03:09 AM5/21/21
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Rohith P
Type: | R
Cleanup/optimization | Status: assigned
Component: contrib.sitemaps | Version: dev
Severity: Normal | Resolution:
Keywords: sitemap, protocol, | Triage Stage: Ready for
https | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:8>

Django

unread,
May 21, 2021, 7:33:59 AM5/21/21
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Rohith P
Type: | R
Cleanup/optimization | Status: closed
Component: contrib.sitemaps | Version: dev
Severity: Normal | Resolution: fixed

Keywords: sitemap, protocol, | Triage Stage: Ready for
https | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"7cca22964c09e8dafc313a400c428242404d527a" 7cca2296]:
{{{
#!CommitTicketReference repository=""
revision="7cca22964c09e8dafc313a400c428242404d527a"
Fixed #32375 -- Started deprecation toward changing the default sitemap
protocol to https.

The default sitemap protocol, when it is built outside the context of
a request, will be changed from 'http' to 'https' in Django 5.0.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:9>

Django

unread,
Jan 17, 2023, 5:49:43 AM1/17/23
to django-...@googlegroups.com
#32375: Make Sitemap's protocol default to "https".
-------------------------------------+-------------------------------------
Reporter: Thomas Güttler | Owner: Rohith P
Type: | R
Cleanup/optimization | Status: closed
Component: contrib.sitemaps | Version: dev
Severity: Normal | Resolution: fixed
Keywords: sitemap, protocol, | Triage Stage: Ready for
https | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"4eb97a90f0b4484fb13dd2166a61f9fe7256e9d0" 4eb97a90]:
{{{
#!CommitTicketReference repository=""
revision="4eb97a90f0b4484fb13dd2166a61f9fe7256e9d0"
Refs #32375 -- Changed default sitemap protocol to https.

Per deprecation timeline.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32375#comment:10>

Reply all
Reply to author
Forward
0 new messages