Bug 1010292
Summary: | Key error on unit search | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | David Davis <daviddavis> |
Component: | API/integration | Assignee: | Jeff Ortel <jortel> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | daviddavis, jsherril, omaciel, pthomas, skarmark |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | 2.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-12-09 14:31:42 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1008020 |
Description
David Davis
2013-09-20 13:05:55 UTC
POST https://localhost/pulp/api/v2/content/units/rpm/search/ With BodY: {"criteria":{"filters":{"_id":{"":["b9bc6e1d-b76a-4483-92d5-b122c9b31d44"]}},"fields":["name","version","release","arch","suffix","epoch","download_url","checksum","checksumtype","license","group","children","vendor","filename","relativepath","description","size","buildhost","_id","_content_type_id","_href","_storage_path","_type"]},"include_repos":true} Seems that this bug is caused by us specifying a particular set of fields. If _last_updated is not in the list, the query will fail, if it is in the list, it will work properly. Lowering the priority on this bug, but ideally pulp should handle us not requesting _last_updated. build: 2.3.0-0.18.beta verified query does not fail when _last_updated not given In [48]: pic.POST('/pulp/api/v2/content/units/rpm/search/',body={"criteria":{"filters":{"_id":{"":["88ee9fa2-0c01-4a48-88b4-dc18460ae76d"]}},"fields":["name","version","release","arch","suffix","epoch","download_url","checksum","checksumtype","license","group","children","vendor","filename","relativepath","description","size","buildhost","_id","_content_type_id","_href","_storage_path","_type"]},"include_repos":True}) ....: Request Body { "include_repos": true, "criteria": { "fields": [ "name", "version", "release", "arch", "suffix", "epoch", "download_url", "checksum", "checksumtype", "license", "group", "children", "vendor", "filename", "relativepath", "description", "size", "buildhost", "_id", "_content_type_id", "_href", "_storage_path", "_type" ], "filters": { "_id": { "": [ "88ee9fa2-0c01-4a48-88b4-dc18460ae76d" ] } } } } Response Body [] Out[48]: (200, []) Pulp 2.3 released. |