[Django] #24213: RFC 2231 Section 4.1 is not implemented

17 views
Skip to first unread message

Django

unread,
Jan 24, 2015, 7:29:27 AM1/24/15
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+--------------------
Reporter: raulcd | Owner: raulcd
Type: Uncategorized | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Currently RFC 2231 Section 4 is implemented (there is an open PR from me
for a fix), but section 4.1 of the RFC is not implemented:
http://tools.ietf.org/html/rfc2231#section-4.1
Section 4.1 is about being able to have parameter continuation when
combining Character Set and language Language headers:

{{{

Content-Type: application/x-stuff
title*0*=us-ascii'en'This%20is%20even%20more%20
title*1*=%2A%2A%2Afun%2A%2A%2A%20
title*2="isn't it!"

}}}

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

Django

unread,
Jan 24, 2015, 8:41:14 AM1/24/15
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+--------------------------------------
Reporter: raulcd | Owner: raulcd
Type: New feature | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by raulcd):

* cc: raulcumplido@… (added)
* needs_better_patch: => 0
* type: Uncategorized => New feature
* needs_tests: => 1
* needs_docs: => 0


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

Django

unread,
Jan 24, 2015, 10:02:30 AM1/24/15
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+--------------------------------------
Reporter: raulcd | Owner: raulcd
Type: New feature | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by berkerpeksag):

If I understand you correctly, this is already implemented in the stdlib
email module:

{{{#!py
from email import message_from_string

s = """\
Content-Type: application/x-stuff;
\ttitle*0*=\"us-ascii'en'This%20is%20even%20more%20\";
\ttitle*1*=\"%2A%2A%2Afun%2A%2A%2A%20\";
\ttitle*2=\"isn't it!\"
"""

m = message_from_string(s)
print(m.get_param('title'))

# output is
# ('us-ascii', 'en', "This is even more ***fun*** isn't it!")
}}}

See also
https://hg.python.org/cpython/file/default/Lib/test/test_email/test_email.py#l5220
for relevant tests.

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

Django

unread,
Jan 31, 2015, 8:50:30 AM1/31/15
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+--------------------------------------
Reporter: raulcd | Owner: raulcd
Type: New feature | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by raulcd):

Yes, this is exactly what we should implement. The status is still new so
I'll expect someone to Accept it or close it :)

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

Django

unread,
Jan 31, 2015, 9:38:29 AM1/31/15
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+------------------------------------
Reporter: raulcd | Owner: raulcd

Type: New feature | Status: new
Component: HTTP handling | 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 claudep):

* component: Uncategorized => HTTP handling
* needs_tests: 1 => 0
* stage: Unreviewed => Accepted


Comment:

Here you go :-)

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

Django

unread,
Jan 17, 2017, 2:51:16 PM1/17/17
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+-----------------------------------------
Reporter: Raúl Cumplido | Owner: Raúl Cumplido

Type: New feature | Status: new
Component: HTTP handling | 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
-------------------------------+-----------------------------------------
Description changed by Anton Samarchyan:

Old description:

> Currently RFC 2231 Section 4 is implemented (there is an open PR from me
> for a fix), but section 4.1 of the RFC is not implemented:
> http://tools.ietf.org/html/rfc2231#section-4.1
> Section 4.1 is about being able to have parameter continuation when
> combining Character Set and language Language headers:
>
> {{{
>
> Content-Type: application/x-stuff
> title*0*=us-ascii'en'This%20is%20even%20more%20
> title*1*=%2A%2A%2Afun%2A%2A%2A%20
> title*2="isn't it!"
>
> }}}

New description:

Currently RFC 2231 Section 4 is implemented (there is a closed
[https://github.com/django/django/pull/3983 PR] from me for a fix), but


section 4.1 of the RFC is not implemented:
http://tools.ietf.org/html/rfc2231#section-4.1
Section 4.1 is about being able to have parameter continuation when
combining Character Set and language Language headers:

{{{

Content-Type: application/x-stuff
title*0*=us-ascii'en'This%20is%20even%20more%20
title*1*=%2A%2A%2Afun%2A%2A%2A%20
title*2="isn't it!"

}}}

--

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

Django

unread,
May 28, 2018, 2:38:32 PM5/28/18
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+-----------------------------------------
Reporter: Raúl Cumplido | Owner: Raúl Cumplido
Type: New feature | Status: new
Component: HTTP handling | 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 Herbert Fortes):

* cc: Herbert Fortes (added)


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

Django

unread,
Mar 5, 2022, 6:22:14 AM3/5/22
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+------------------------------------
Reporter: Raúl Cumplido | Owner: (none)
Type: New feature | Status: assigned
Component: HTTP handling | Version: dev

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):

* owner: Raúl Cumplido => (none)
* status: new => assigned


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

Django

unread,
Mar 5, 2022, 6:26:46 AM3/5/22
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+------------------------------------
Reporter: Raúl Cumplido | Owner: (none)
Type: New feature | Status: new

Component: HTTP handling | Version: dev
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):

* status: assigned => new


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

Django

unread,
Mar 12, 2024, 1:52:23 AM3/12/24
to django-...@googlegroups.com
#24213: RFC 2231 Section 4.1 is not implemented
-------------------------------+------------------------------------
Reporter: Raúl Cumplido | Owner: (none)
Type: New feature | Status: new
Component: HTTP handling | Version: dev
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 Ülgen Sarıkavak):

* cc: Ülgen Sarıkavak (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/24213#comment:9>
Reply all
Reply to author
Forward
0 new messages