Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1356139

Summary: idoverrideuser_mod deletes entry during modification
Product: Red Hat Enterprise Linux 7 Reporter: Petr Vobornik <pvoborni>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED DUPLICATE QA Contact: Viktor Ashirov <vashirov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: lkrispen, mbabinsk, nkinder, pvoborni, pvomacka, rcritten, rmeggins
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-29 17:02:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Vobornik 2016-07-13 13:16:05 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/6041

When user uses idoverrideuser-mod command on CLI or through WebUI API call, the modification removes the entry and a internal server error occurs. 

Steps to reproduce:
1) Add a idview
2) Add User ID override to the ID view created in previous step
3) Go to the User ID override details page
4) Modify a value
5) Save changes

Stack trace from /var/log/httpd/error_log: 
{{{
[Fri Jul 08 09:52:16.241457 2016] [wsgi:error] [pid 42029] Traceback (most recent call last):
[Fri Jul 08 09:52:16.241460 2016] [wsgi:error] [pid 42029]   File "/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 350, in wsgi_execute
[Fri Jul 08 09:52:16.241463 2016] [wsgi:error] [pid 42029]     result = self.Command[name](*args, **options)
[Fri Jul 08 09:52:16.241464 2016] [wsgi:error] [pid 42029]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 446, in __call__
[Fri Jul 08 09:52:16.241466 2016] [wsgi:error] [pid 42029]     ret = self.run(*args, **options)
[Fri Jul 08 09:52:16.241468 2016] [wsgi:error] [pid 42029]   File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 763, in run
[Fri Jul 08 09:52:16.241470 2016] [wsgi:error] [pid 42029]     return self.execute(*args, **options)
[Fri Jul 08 09:52:16.241471 2016] [wsgi:error] [pid 42029]   File "/usr/lib/python2.7/site-packages/ipalib/plugins/baseldap.py", line 1527, in execute
[Fri Jul 08 09:52:16.241494 2016] [wsgi:error] [pid 42029]     format=_('the entry was deleted while being modified')
[Fri Jul 08 09:52:16.241497 2016] [wsgi:error] [pid 42029]   File "/usr/lib/python2.7/site-packages/ipalib/errors.py", line 254, in __init__
[Fri Jul 08 09:52:16.241499 2016] [wsgi:error] [pid 42029]     messages.process_message_arguments(self, format, message, **kw)
[Fri Jul 08 09:52:16.241501 2016] [wsgi:error] [pid 42029]   File "/usr/lib/python2.7/site-packages/ipalib/messages.py", line 57, in process_message_arguments
[Fri Jul 08 09:52:16.241503 2016] [wsgi:error] [pid 42029]     name, format)
[Fri Jul 08 09:52:16.241505 2016] [wsgi:error] [pid 42029] ValueError: non-generic 'MidairCollision' needs format=None; got format=Gettext('the entry was deleted while being modified', domain='ipa', localedir=None)
}}}

Affects freeIPA 4.3.1 and 4.4. In freeIPA 4.2.4 modification works correctly.

Comment 1 Petr Vobornik 2016-07-20 10:32:31 UTC
Changing component, it should be a counterpart for https://fedorahosted.org/389/ticket/48929

Comment 2 Noriko Hosoi 2016-07-20 20:59:04 UTC
If it is reproducible, could you turn on the audit log and repeat the operation?

Then, could you attach the /etc/dirsrv/slapd-INSTANCE/{access,errors,audit} log files to this bug?

Thanks.

Comment 3 Noriko Hosoi 2016-07-21 17:38:00 UTC
Also, since it's critical, it might be faster to debug if you could share the test environment that shows the problem...  Could it be possible?
Thanks!