[Django] #28998: Fix uniqueness problem in createsupperuser

22 views
Skip to first unread message

Django

unread,
Jan 8, 2018, 3:00:52 PM1/8/18
to django-...@googlegroups.com
#28998: Fix uniqueness problem in createsupperuser
-------------------------------------+-------------------------------------
Reporter: Hasan | Owner: nobody
Ramezani |
Type: Bug | Status: new
Component: Core | Version: 2.0
(Management commands) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
when I create the superuser with `--username` and the user already exists,
command results in:
`django.db.utils.IntegrityError: UNIQUE constraint failed:
auth_user.username`
and there is no username uniqueness checking in this state. and same
behavior when I create the superuser with `--username` and `--noinput`.

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

Django

unread,
Jan 8, 2018, 3:01:05 PM1/8/18
to django-...@googlegroups.com
#28998: Fix uniqueness problem in createsupperuser
-------------------------------------+-------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan
| Ramezani
Type: Bug | Status: assigned
Component: Core (Management | Version: 2.0
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Hasan Ramezani):

* status: new => assigned
* owner: nobody => Hasan Ramezani


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

Django

unread,
Jan 8, 2018, 4:14:46 PM1/8/18
to django-...@googlegroups.com
#28998: Fix uniqueness problem in createsupperuser
-------------------------------------+-------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan
| Ramezani
Type: Bug | Status: assigned
Component: Core (Management | Version: 2.0
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

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

* has_patch: 0 => 1
* needs_tests: 0 => 1


Comment:

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

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

Django

unread,
Jan 8, 2018, 8:33:23 PM1/8/18
to django-...@googlegroups.com
#28998: createsuperuser doesn't validate username provided via --username
--------------------------------+------------------------------------------

Reporter: Hasan Ramezani | Owner: Hasan Ramezani
Type: Bug | Status: closed
Component: contrib.auth | Version: 2.0
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

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

* status: assigned => closed
* component: Core (Management commands) => contrib.auth
* resolution: => duplicate


Comment:

Duplicate of #28016.

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

Reply all
Reply to author
Forward
0 new messages