RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 772106 - ipa selfservice-add --raw returns "internal error" message
Summary: ipa selfservice-add --raw returns "internal error" message
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-06 00:20 UTC by Scott Poore
Modified: 2013-05-23 14:10 UTC (History)
3 users (show)

Fixed In Version: ipa-2.2.0-1.el6
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2012-06-20 13:28:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0819 0 normal SHIPPED_LIVE ipa bug fix and enhancement update 2012-06-19 20:34:17 UTC

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


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