#4659 The *-find command does not return errors for unexisting parent objects
Closed: Fixed None Opened 9 years ago by simo.

When running idoverrideuser-find with a random string you get the following output:

---------------------------
0 User ID overrides matched
---------------------------
----------------------------
Number of entries returned 0
----------------------------

An error should be return instead if the view does not exist.


+1, it would make it consistent with for example DNS records, which is also nested:

# ipa dnsrecord-find doesnotexist.test
ipa: ERROR: doesnotexist.test.: DNS zone not found

This is a general issue in the framework.

[tbabej@vm-124 ~]$ ipa automountkey-find nontexistent auto
------------------------
0 automount keys matched
------------------------
----------------------------
Number of entries returned 0
----------------------------

master:

  • e11e823 baseldap: Handle missing parent objects properly in *-find commands

ipa-4-1:

  • 4413446 baseldap: Handle missing parent objects properly in *-find commands

Metadata Update from @simo:
- Issue assigned to tbabej
- Issue set to the milestone: FreeIPA 4.1.3

7 years ago

Login to comment on this ticket.

Metadata