#2232 ipa selfservice-mod --raw returns "internal error" message
Closed: Fixed None Opened 12 years ago by mkosek.

https://bugzilla.redhat.com/show_bug.cgi?id=772675

Description of problem:

There seems to be a problem using the --raw flag for "ipa selfservice-mod"

# ipa selfservice-mod --attrs=mobile testmodraw --raw
ipa: ERROR: an internal error has occurred

However, the attributes do get changed:

# ipa selfservice-show testmodraw
  Self-service name: testmodraw
  Permissions: write
  Attributes: mobile

And, if --raw is not used, no error is seen:

# ipa selfservice-mod --attrs=st testmodraw
---------------------------------
Modified selfservice "testmodraw"
---------------------------------
  Self-service name: testmodraw
  Permissions: write
  Attributes: st

Version-Release number of selected component (if applicable):

This was run on a Fedora 16 build.

freeipa-server-2.1.4-2.fc16.x86_64
freeipa-admintools-2.1.4-2.fc16.x86_64
389-ds-base-libs-1.2.10-0.5.a5.fc16.x86_64
389-ds-base-1.2.10-0.5.a5.fc16.x86_64


How reproducible:
always

Steps to Reproduce:
1.  ipa selfservice-add --attrs=l testmodraw
2.  ipa selfservice-mod --attrs=mobile testmodraw --raw

Actual results:

ipa: ERROR: an internal error has occurred

Expected results:

Return output with raw ldap entry type format like other ipa commands do with
--raw.

Additional info:

This also occurs if using --permissions option as well:

# ipa selfservice-mod --attrs=mobile testmodraw --permissions=read --raw
ipa: ERROR: an internal error has occurred

Relevant one-line fix removing debug messages from permission.py:

master: 3bd36af[[BR]]
ipa-2-2: 1403307

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

7 years ago

Login to comment on this ticket.

Metadata