Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 2077824 - [RFE] API to allow search by object ID on any object
Summary: [RFE] API to allow search by object ID on any object
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.10.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: 6.12.0
Assignee: satellite6-bugs
QA Contact: Gaurav Talreja
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-22 10:47 UTC by Pavel Moravec
Modified: 2022-11-25 16:07 UTC (History)
5 users (show)

Fixed In Version: foreman-3.2.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-16 13:33:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 33842 0 Normal Closed Make ordering by id possible for more models 2022-07-19 19:10:58 UTC
Red Hat Issue Tracker SAT-11680 0 None None None 2022-07-18 23:12:00 UTC
Red Hat Knowledge Base (Solution) 6967271 0 None None None 2022-07-12 11:25:04 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:34:04 UTC

Description Pavel Moravec 2022-04-22 10:47:45 UTC
Description of problem:
TL;DR: ensure https://projects.theforeman.org/issues/33842 is fixed in Satellite.

One particular use case behind: there is no easy way to filter Capsules other than the internal Satellite one (until "id != 1" is supported). Currently offered filter logic offers either search by features (no feature is solely present on every Sat only) or name/url (not ideal for e.g. potential hostname change).


Version-Release number of selected component (if applicable):
Sat 6.10


How reproducible:
100%


Steps to Reproduce:
1. No way to filter Capsules "all Capsules except for Satellite". E.g.:

curl -L --user admin:somePassword "$(hostname -f)/katello/api/capsules?search=id+%21%3D+1"

doesnt work

Actual results:
1. An attempt to search based on ID fails with:
{
  "error": {"message":"Field 'id' not recognized for searching!","class":"ScopedSearch::QueryNotSupported"}
}


Expected results:
Search by ID is supported.


Additional info:

Comment 4 Gaurav Talreja 2022-10-06 09:23:31 UTC
Oleh, Thanks for confirming, moving this BZ to verified.

Comment 8 errata-xmlrpc 2022-11-16 13:33: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 (Important: Satellite 6.12 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8506


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