[Django] #23390: Clicking on the Add Group + in an Auth User's change-view results in a 400

16 views
Skip to first unread message

Django

unread,
Aug 31, 2014, 3:36:05 PM8/31/14
to django-...@googlegroups.com
#23390: Clicking on the Add Group + in an Auth User's change-view results in a 400
-------------------------------+------------------------
Reporter: yoyoma | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.admin | Version: 1.7-rc-3
Severity: Normal | Keywords: auth,admin
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------
Using Django 1.7c3 with everything default on a brand new project, I
visited a user's change-view in the admin, clicked the + next to Groups
(since there are none by default), and was taken to the following URL in a
popup window:
http://127.0.0.1:8000/admin/auth/group/add/?_to_field=id&_popup=1. The {{{
_to_field }}} param causes Django to return a {{{ Bad Request (400) }}}
response.

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

Django

unread,
Aug 31, 2014, 3:48:01 PM8/31/14
to django-...@googlegroups.com
#23390: Clicking on the Add Group + in an Auth User's change-view results in a 400
-------------------------------+--------------------------------------
Reporter: yoyoma | Owner: nobody
Type: Uncategorized | Status: closed
Component: contrib.admin | Version: 1.7-rc-3
Severity: Normal | Resolution: duplicate

Keywords: auth,admin | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0


Comment:

Hi,

The bug does appear on 1.7c3 but it's been fixed on the latest
`stable/1.7.x` branch.

Bisecting points to 3cbb7590cb0ece38f665b516db30cd5a9431f8c8 so it looks
like this issue is a duplicate of #23329.

If that's not the case, please reopen.

Thanks.

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

Django

unread,
Sep 7, 2014, 6:50:56 PM9/7/14
to django-...@googlegroups.com
#23390: Clicking on the Add Group + in an Auth User's change-view results in a 400
-------------------------------+--------------------------------------
Reporter: yoyoma | Owner: nobody
Type: Uncategorized | Status: closed
Component: contrib.admin | Version: 1.7-rc-3
Severity: Normal | Resolution: duplicate

Keywords: auth,admin | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by yoyoma):

Hi @bmispelon,

I've just reproduced the issue with Django stable/1.7.x (@267b121), as
well as a different error with master. I've attached a screenshot of each,
containing the URL and the result. I wasn't sure if it'd be appropriate to
reopen the ticket that you marked this a duplicate as, since it appears
the issue therein has been fixed, while this issue is maybe due to
something different.


Thanks
Michael

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

Django

unread,
Sep 7, 2014, 6:51:08 PM9/7/14
to django-...@googlegroups.com
#23390: Clicking on the Add Group + in an Auth User's change-view results in a 400
-------------------------------+--------------------------------------

Reporter: yoyoma | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.admin | Version: 1.7-rc-3
Severity: Normal | Resolution:

Keywords: auth,admin | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* status: closed => new
* resolution: duplicate =>


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

Django

unread,
Sep 7, 2014, 8:19:27 PM9/7/14
to django-...@googlegroups.com
#23390: Clicking on the Add Group + in an Auth User's change-view results in a 400
-------------------------------+--------------------------------------

Reporter: yoyoma | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.admin | Version: 1.7-rc-3
Severity: Normal | Resolution:

Keywords: auth,admin | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by timgraham):

Can you check if #23431 solves your issue? If not, we'll need more details
about your models, etc. so we can reproduce it.

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

Django

unread,
Sep 8, 2014, 12:44:11 PM9/8/14
to django-...@googlegroups.com
#23390: Clicking on the Add Group + in an Auth User's change-view results in a 400
-------------------------------+--------------------------------------
Reporter: yoyoma | Owner: nobody
Type: Uncategorized | Status: closed
Component: contrib.admin | Version: 1.7-rc-3
Severity: Normal | Resolution: duplicate

Keywords: auth,admin | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* status: new => closed

* resolution: => duplicate


Comment:

I'm pretty confident this a duplicate of #23431 caused by the
`auto_created` hidden relationship between `User` and `Group`.

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

Django

unread,
Sep 9, 2014, 8:41:44 PM9/9/14
to django-...@googlegroups.com
#23390: Clicking on the Add Group + in an Auth User's change-view results in a 400
-------------------------------+--------------------------------------
Reporter: yoyoma | Owner: nobody
Type: Uncategorized | Status: closed
Component: contrib.admin | Version: 1.7-rc-3
Severity: Normal | Resolution: duplicate

Keywords: auth,admin | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by yoyoma):

@charettes @timgraham - #23431 did not solve the issue, as noted in my
comment above.

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

Django

unread,
Sep 9, 2014, 8:53:52 PM9/9/14
to django-...@googlegroups.com
#23390: Clicking on the Add Group + in an Auth User's change-view results in a 400
-------------------------------+--------------------------------------
Reporter: yoyoma | Owner: nobody
Type: Uncategorized | Status: closed
Component: contrib.admin | Version: 1.7-rc-3
Severity: Normal | Resolution: duplicate

Keywords: auth,admin | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by timgraham):

#23431 was committed after your comment 2 days ago. Did you recheck since
then? If so, please provide models to reproduce.

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

Django

unread,
Sep 10, 2014, 8:40:23 PM9/10/14
to django-...@googlegroups.com
#23390: Clicking on the Add Group + in an Auth User's change-view results in a 400
-------------------------------+--------------------------------------
Reporter: yoyoma | Owner: nobody
Type: Uncategorized | Status: closed
Component: contrib.admin | Version: 1.7-rc-3
Severity: Normal | Resolution: duplicate

Keywords: auth,admin | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by yoyoma):

@timgraham

Thanks for the reply. The issue is indeed fixed. I really appreciate your
last comment, because yes I had updated just a couple days before the
commit was merged, apparently.


Michael

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

Reply all
Reply to author
Forward
0 new messages