Actions
Issue #6859
closedFilter results seems not to work properly
Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Hi,
it seems that the filter does not work as described in the API documentation [1].
Filter results where name matches value
I would expect all RPMs to be filtered with the matching name, e.g. "icingabeat".
$ http --body GET http://localhost:24817/pulp/api/v3/content/rpm/packages/ name="icingabeat" |jq -r ".count,.results[].name" |head
32027
icinga-boost-base
icinga-boost-base
icinga2-bin
icinga2-bin
icinga2-bin
icingabeat
icinga2-bin
icinga2-bin
icinga2-bin
$
Best regards, Alex
[1] https://pulp-rpm.readthedocs.io/en/latest/restapi.html#operation/content_rpm_packages_list
Updated by ipanova@redhat.com over 3 years ago
Hi Alex, you are not filtering in a proper way. Here is an example
$ http --body GET http://localhost:24817/pulp/api/v3/content/rpm/packages/?name="dog" |jq -r ".count,.results[].name" |head
1
dog
$ http --body GET 'http://localhost:24817/pulp/api/v3/content/rpm/packages/?name=dog&release=1' |jq -r ".count,.results[].name" |head
1
dog
Updated by ipanova@redhat.com over 3 years ago
- Status changed from NEW to CLOSED - NOTABUG
Actions