Bug 772106

Summary: ipa selfservice-add --raw returns "internal error" message
Product: Red Hat Enterprise Linux 6 Reporter: Scott Poore <spoore>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: jgalipea, mkosek, shaines
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.2.0-1.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:28:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Scott Poore 2012-01-06 00:20:01 UTC
Description of problem:

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

# ipa selfservice-add testraw --all --attrs=l --permissions=write --raw
ipa: ERROR: an internal error has occurred

However, the permissions do seem to get set:

# ipa selfservice-show testraw
  Self-service name: testraw
  Permissions: write
  Attributes: l

And, if leaving the --raw option off the command line, no error is seen:

# ipa selfservice-add test --all --attrs=l --permissions=write 
------------------------
Added selfservice "test"
------------------------
  Self-service name: test
  Permissions: write
  Attributes: l
  selfaci: True

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. run ipa selfservice-add using --raw option
  
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:

Comment 2 Scott Poore 2012-01-06 01:20:27 UTC
I'm not sure how I missed it from my searches before but, this is already in BZ as 747693.

*** This bug has been marked as a duplicate of bug 747693 ***

Comment 3 Scott Poore 2012-01-06 01:22:04 UTC
unmarking this one since I just realized that 747693 is for selfservice-find not selfservice-add.

Comment 4 Martin Kosek 2012-01-06 08:59:49 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2228

Comment 7 Scott Poore 2012-03-16 20:26:53 UTC
Verified.

Version :: ipa-server-2.2.0-4.el6.x86_64

Automated Test Results ::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: selfservice_bz_772106 ipa selfservice-add --raw returns internal error message
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: BZ Test Running: ipa selfservice-add selfservice_bz_772106 --attrs=l --raw > /tmp/tmp.V5BS5xp3mS/selfservice_bz_772106.3047.out 2>&1
:: [   PASS   ] :: BZ 772106 not found
:: [   LOG    ] :: Duration: 7s
:: [   LOG    ] :: Assertions: 1 good, 0 bad
:: [   PASS   ] :: RESULT: selfservice_bz_772106 ipa selfservice-add --raw returns internal error message


Manual Test Results ::

[root@hp-xw6600-01 ipa-selfservice]# ipa selfservice-add bz772106 --attrs=l --raw
----------------------------
Added selfservice "bz772106"
----------------------------
  aci: (targetattr = "l")(version 3.0;acl "selfservice:bz772106";allow (write) userdn = "ldap:///self";)

[root@hp-xw6600-01 ipa-selfservice]# ipa selfservice-show bz772106
  Self-service name: bz772106
  Permissions: write
  Attributes: l

Comment 9 Martin Kosek 2012-04-19 19:51:42 UTC
    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.

Comment 11 errata-xmlrpc 2012-06-20 13:28:46 UTC
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