Hide Forgot
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
Upstream ticket: https://fedorahosted.org/freeipa/ticket/2232
Fixed upstream: master: https://fedorahosted.org/freeipa/changeset/cf12f3106a7f55fbdb03d64588e8201f14470fe8 ipa-2-2: https://fedorahosted.org/freeipa/changeset/68d78d37876ade5122f663ec9614283b6921aa23
Verified. Version :: ipa-server.x86_64 0:2.2.0-4.el6 Automated test :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: selfservice_bz_772675 ipa selfservice-mod --raw returns internal error message :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: BZ Test Running: ipa selfservice-mod selfservice_bz_772675 --attrs=mobile --raw > /tmp/tmp.V5BS5xp3mS/selfservice_bz_772675.14025.out 2>&1 :: [ PASS ] :: BZ 772675 not found :: [ LOG ] :: Duration: 10s :: [ LOG ] :: Assertions: 1 good, 0 bad :: [ PASS ] :: RESULT: selfservice_bz_772675 ipa selfservice-mod --raw returns internal error message Manual test as well :: [root@hp-xw6600-01 ipa-selfservice]# ipa selfservice-add bz772675 --attrs=l ---------------------------- Added selfservice "bz772675" ---------------------------- Self-service name: bz772675 Permissions: write Attributes: l [root@hp-xw6600-01 ipa-selfservice]# ipa selfservice-mod bz772675 --attrs=mobile --raw ------------------------------- Modified selfservice "bz772675" ------------------------------- aci: (targetattr = "mobile")(version 3.0;acl "selfservice:bz772675";allow (write) userdn = "ldap:///self";)
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No documentation needed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0819.html