Description of problem: Delete option shouldn't be available for hosts applied to view.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install IPA server
2. Create a view, override local ipa user and add to the view.
3. Apply the view to the host.
4. Now login to UI and navigate to IPA Server --> ID Views --> Select View --> Hosts Tab --> Select Host checkbox to which view is applied.
There is delete button which is activated and when we try to delete the host it gives the below message
Are you sure you want to delete selected entries?
IPA Error 905: CommandError
unknown command 'idview_remove_member'
[Mon Nov 28 16:34:18.954799 2016] [:error] [pid 14146] ipa: INFO: [jsonserver_session] admin@TESTQE.TEST: idview_remove_member: CommandError
Fix the error message.
ID views are not on RHEL 6, is the version really correct?
Pavel, could you look at it?
Anyway on the Hosts tabs are extra Add and Delete buttons on RHEL 7. But I was not able to reproduce this bug on current upstream master, there these buttons are not present.
Impact of the bug: there is "delete" and "add" button displayed incorrectly on IPA Server --> ID Views --> Select View --> Hosts Tab
Neither of them should be there. After testing RHEL 7.3, the other interface buttons on the page actually works as expected.
So it is not that critical as I originally thought.
Below error is no more displayed on the UI when host is selected and delete button is clicked.
"IPA Error 905: CommandError unknown command 'idview_remove_member'" error is no more seen.
Tested on RHEL7.4 using
[Fri May 26 05:49:31.765439 2017] [:error] [pid 12153] ipa: INFO: [jsonserver_session] admin@TESTRELM.TEST: host_remove_managedby(u'client.testrelm.test', all=True, version=u'2.224', host=(u'client.testrelm.test',)): SUCCESS
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.