#2629 Incorrect error message when user-mod --rename with an empty string
Closed: Fixed None Opened 11 years ago by mkosek.

https://bugzilla.redhat.com/show_bug.cgi?id=811748 (Red Hat Enterprise Linux 6)

Description of problem:
Error message for user-mod --rename with an empty string is "internal error has
occurred".

Version-Release number of selected component (if applicable):
ipa-server-2.2.0-9.el6

How reproducible:


Steps to Reproduce:

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:
:: [   LOG    ] :: ipa-user-cli-mod-064: Rename user with empty string.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:

:: [   LOG    ] :: Executing: ipa user-mod --rename= crazylast3344
:: [   LOG    ] :: "ipa user-mod --rename= crazylast3344" failed as expected.
:: [   FAIL   ] :: ERROR: Message not as expected. GOT: ipa: ERROR: an internal
error has occurred  EXP: ipa: ERROR: invalid 'rename': can't be empty
:: [   FAIL   ] :: Verify expected error message for empty string (Expected 0,
got 1)
:: [   LOG    ] :: Duration: 12s
:: [   LOG    ] :: Assertions: 0 good, 2 bad
:: [   FAIL   ] :: RESULT: ipa-user-cli-mod-064: Rename user with empty string.


Actual results:
ipa: ERROR: an internal error has occurred

Expected results:
ipa: ERROR: invalid 'rename': can't be empty

Additional info:

Honza, please check this ticket. Its a regression caused by 9e2ee3e.

Metadata Update from @mkosek:
- Issue assigned to jcholast
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/04

6 years ago

Login to comment on this ticket.

Metadata