Bug 671232 - ipa user-add | user-mod --email=" " results in internal error
Summary: ipa user-add | user-mod --email=" " results in internal error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-admintools
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-20 19:42 UTC by Jenny Severance
Modified: 2015-01-04 23:45 UTC (History)
3 users (show)

Fixed In Version: freeipa-2.0.0-1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-28 09:25:50 UTC


Attachments (Terms of Use)

Description Jenny Severance 2011-01-20 19:42:25 UTC
Description of problem:

# ipa user-add --first=Jenny --last=Galipeau --email=" " jennyg
-------------------
Added user "jennyg"
-------------------
  User login: jennyg
  First name: Jenny
  Last name: Galipeau
  Full name: Jenny Galipeau
  Display name: Jenny Galipeau
  Initials: JG
  Home directory: /home/jennyg
  GECOS field: jennyg
  Login shell: /bin/sh
  Kerberos principal: jennyg@TESTRELM
ipa: ERROR: IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1067, in run
    sys.exit(api.Backend.cli.run(argv))
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 906, in run
    rv = cmd.output_for_cli(self.api.Backend.textui, result, *args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 956, in output_for_cli
    textui.print_entry(result, order, labels, flags, print_all)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 376, in print_entry
    label, value, format, indent, one_value_per_line
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 307, in print_attribute
    self.print_indented(format % (attr, text[0]), indent)
IndexError: list index out of range
ipa: ERROR: an internal error has occurred


ipa user-mod --email=" " jennyg

# ipa user-mod --email=" " jennyg
----------------------
Modified user "jennyg"
----------------------
  User login: jennyg
  First name: Jenny
  Last name: Galipeau
  Home directory: /home/jennyg
  Login shell: /bin/sh
ipa: ERROR: IndexError: list index out of range
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1067, in run
    sys.exit(api.Backend.cli.run(argv))
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 906, in run
    rv = cmd.output_for_cli(self.api.Backend.textui, result, *args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 956, in output_for_cli
    textui.print_entry(result, order, labels, flags, print_all)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 376, in print_entry
    label, value, format, indent, one_value_per_line
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 307, in print_attribute
    self.print_indented(format % (attr, text[0]), indent)
IndexError: list index out of range
ipa: ERROR: an internal error has occurred

Version-Release number of selected component (if applicable):
ipa-server-2.0-0.2011012001git835436d.fc14.i686
ipa-admintools-2.0-0.2011012001git835436d.fc14.i686

How reproducible:


Steps to Reproduce:
1. see description
2.
3.
  
Actual results:


Expected results:
error stating email address invalid

Additional info:

Comment 1 Dmitri Pal 2011-01-20 23:54:39 UTC
https://fedorahosted.org/freeipa/ticket/825

Comment 2 Pavel Zuna 2011-01-25 08:29:35 UTC
master: 0c2beda3f7e08d4d9ef9dd2bd472df6cdd010091


Note You need to log in before you can comment on or make changes to this bug.