Public bug reported:

Was getting MAAS setup on my system, just to play with it, and didn't
enter an email address.  The tool didn't complain about leaving the
email address blank, but when the the tool exited the superuser wasn't
created and an error message was displayed.

Here is the output (and yes, I tried to leave the password blank too..
but note the command complained about leaving it blank)

gaughen@glitter:~$ sudo maas createsuperuser
Username (leave blank to use 'root'): maas_admin
Email address: 
Password: 
Password (again): 
Error: Blank passwords aren't allowed.
Password: 
Password (again): 
IntegrityError: duplicate key value violates unique constraint 
"auth_user_email_key"
DETAIL:  Key (email)=() already exists.

I think the correct behavior, if the email address is truly required, is
to produce an error message similar to when you try to leave the
password blank.

** Affects: maas
     Importance: Undecided
         Status: New

** Affects: maas (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: maas
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1243917

Title:
  'maas createsuperuser' errors out if no email address is entered.

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1243917/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to