--
Ticket URL: <https://code.djangoproject.com/ticket/27843>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* owner: nobody => felixxm
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:1>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/8066 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:2>
Comment (by Simon Charette):
It looks like all usages of `truncate_name(strip_quote())` are also
affected (see #27458, 69b7d4b116e3b70b250c77829e11038d5d55c2a8)
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:3>
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:4>
Comment (by felixxm):
Replying to [comment:3 Simon Charette]:
> It looks like all usages of `truncate_name(strip_quote())` are also
affected (see #27458, 69b7d4b116e3b70b250c77829e11038d5d55c2a8)
I decided to fix `truncate_name` instead of duplicate this fix in few
other places.
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:5>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b9351905721771fb49ea0020c751ae4280754c43" b9351905]:
{{{
#!CommitTicketReference repository=""
revision="b9351905721771fb49ea0020c751ae4280754c43"
Fixed #27843 -- Fixed truncate_name() when the name contains a username.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:7>
Comment (by Tim Graham <timograham@…>):
In [changeset:"87775b64cdda97567a33c7bad65ad42853048525" 87775b64]:
{{{
#!CommitTicketReference repository=""
revision="87775b64cdda97567a33c7bad65ad42853048525"
[1.11.x] Fixed #27843 -- Fixed truncate_name() when the name contains a
username.
Backport of b9351905721771fb49ea0020c751ae4280754c43 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"82026d61a383d07cd840a0d30443ee66bd99798b" 82026d61]:
{{{
#!CommitTicketReference repository=""
revision="82026d61a383d07cd840a0d30443ee66bd99798b"
Refs #27843 -- Fixed 'invalid escape sequence' warning in truncate_name().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:9>
Comment (by Tim Graham <timograham@…>):
In [changeset:"3a3145bfcd7a1de1e7cda2d3f2ba61a90d34cf11" 3a3145bf]:
{{{
#!CommitTicketReference repository=""
revision="3a3145bfcd7a1de1e7cda2d3f2ba61a90d34cf11"
[1.11.x] Refs #27843 -- Fixed 'invalid escape sequence' warning in
truncate_name().
Backport of 82026d61a383d07cd840a0d30443ee66bd99798b from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:10>
Comment (by Simon Charette):
This didn't completely fix the regression introduced by #27458 in the
index and foreign key constraint creation cases because
`_create_index_name` still rely on `strip_quotes` without using
`truncate_name`. I'm working on a patch to deal with this issue so I'll
file a new ticket once it's ready for review.
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:11>
Comment (by Simon Charette <charette.s@…>):
In [changeset:"ee85ef8315db839e5723dea19d8b971420a2ebb4" ee85ef8]:
{{{
#!CommitTicketReference repository=""
revision="ee85ef8315db839e5723dea19d8b971420a2ebb4"
Fixed #28792 -- Fixed index name truncation of namespaced tables.
Refs #27458, #27843.
Thanks Tim and Mariusz for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:12>
Comment (by Simon Charette <charette.s@…>):
In [changeset:"a35ab95ed4eec5c62fa19bdc69ecfe0eff3e1fca" a35ab95e]:
{{{
#!CommitTicketReference repository=""
revision="a35ab95ed4eec5c62fa19bdc69ecfe0eff3e1fca"
[1.11.x] Fixed #28792 -- Fixed index name truncation of namespaced tables.
Refs #27458, #27843.
Thanks Tim and Mariusz for the review.
Backport of ee85ef8315db839e5723dea19d8b971420a2ebb4 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:13>
Comment (by Tim Graham <timograham@…>):
In [changeset:"0696edbc6a724ceaba86a977b6d21e57647cb2ac" 0696edbc]:
{{{
#!CommitTicketReference repository=""
revision="0696edbc6a724ceaba86a977b6d21e57647cb2ac"
[2.0.x] Fixed #28792 -- Fixed index name truncation of namespaced tables.
Refs #27458, #27843.
Thanks Tim and Mariusz for the review.
Backport of ee85ef8315db839e5723dea19d8b971420a2ebb4 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27843#comment:14>