Bug 772675 - ipa selfservice-mod --raw returns "internal error" message
Summary: ipa selfservice-mod --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-09 16:00 UTC by Scott Poore
Modified: 2013-05-23 14:18 UTC (History)
2 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:57 UTC
Target Upstream Version:


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-09 16:00:25 UTC
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

Comment 2 Martin Kosek 2012-01-10 09:01:56 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2232

Comment 5 Scott Poore 2012-03-16 20:21:26 UTC
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";)

Comment 7 Martin Kosek 2012-04-20 09:02:27 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 9 errata-xmlrpc 2012-06-20 13:28:57 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.