Project

Profile

Help

Issue #707

closed

Query parameters in consumer/s retrieval do not work properly

Added by ipanova@redhat.com over 9 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6 Beta
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:
$ curl H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/consumers/c1/"|python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 209 100 209 0 0 579 0 -
:--:-- --:--:-- --:--:-- 580
{
"_href": "/pulp/api/v2/consumers/c1/",
"_id": {
"$oid": "54e49e2b45ef4807deb13d90"
},
"_ns": "consumers",
"capabilities": {},
"description": null,
"display_name": "c1",
"id": "c1",
"notes": {},
"rsa_pub": null
}
[ipanova@ina pulp]$ curl H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/consumers/c1/?bindings=False"|python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 709 100 709 0 0 2211 0 -
:--:-- --:--:-- --:--:-- 2208
{
"_href": "/pulp/api/v2/consumers/c1/",
"_id": {
"$oid": "54e49e2b45ef4807deb13d90"
},
"_ns": "consumers",
"bindings": [
{
"_href": "/pulp/api/v2/consumers/c1/bindings/xxx/yum_distributor/",
"_id": {
"$oid": "54e5f52c45ef4844004bb4d1"
},
"_ns": "consumer_bindings",
"binding_config": {},
"consumer_actions": [
{
"action": "bind",
"id": "5c786bfa-f578-4735-aa8b-49eb9c79de79",
"status": "pending",
"timestamp": 1424356652.115495
}
],
"consumer_id": "c1",
"deleted": false,
"distributor_id": "yum_distributor",
"id": "54e5f52c45ef4844004bb4d1",
"notify_agent": true,
"repo_id": "xxx",
"type_id": "yum_distributor"
}
],
"capabilities": {},
"description": null,
"display_name": "c1",
"id": "c1",
"notes": {},
"rsa_pub": null
}
[ipanova@ina pulp]$ curl H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X GET -k -u admin:admin "https://localhost/pulp/api/v2/consumers/c1/?bindings=True"|python -m json.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 709 100 709 0 0 2241 0 -
:--:-- --:--:-- --:--:-- 2243
{
"_href": "/pulp/api/v2/consumers/c1/",
"_id": {
"$oid": "54e49e2b45ef4807deb13d90"
},
"_ns": "consumers",
"bindings": [
{
"_href": "/pulp/api/v2/consumers/c1/bindings/xxx/yum_distributor/",
"_id": {
"$oid": "54e5f52c45ef4844004bb4d1"
},
"_ns": "consumer_bindings",
"binding_config": {},
"consumer_actions": [
{
"action": "bind",
"id": "5c786bfa-f578-4735-aa8b-49eb9c79de79",
"status": "pending",
"timestamp": 1424356652.115495
}
],
"consumer_id": "c1",
"deleted": false,
"distributor_id": "yum_distributor",
"id": "54e5f52c45ef4844004bb4d1",
"notify_agent": true,
"repo_id": "xxx",
"type_id": "yum_distributor"
}
],
"capabilities": {},
"description": null,
"display_name": "c1",
"id": "c1",
"notes": {},
"rsa_pub": null
}

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

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:
pulp ignores the bindings value( True or False) anyway it prints the bindings information

Expected results:

Additional info:

+ This bug was cloned from Bugzilla Bug #1194670 +

Actions #1

Updated by ipanova@redhat.com over 9 years ago

  • Assignee set to ipanova@redhat.com
Actions #2

Updated by ipanova@redhat.com over 9 years ago

  • Status changed from NEW to ASSIGNED
Actions #3

Updated by ipanova@redhat.com over 9 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by bmbouter over 9 years ago

  • Severity changed from Medium to 2. Medium

Added by Austin Macdonald over 9 years ago

Revision 089b0f0e | View on GitHub

django conversion - repositories

closes #707 closes #749 closes #756 closes #804 closes #805 closes #812

Added by Austin Macdonald over 9 years ago

Revision 089b0f0e | View on GitHub

django conversion - repositories

closes #707 closes #749 closes #756 closes #804 closes #805 closes #812

Actions #6

Updated by Anonymous over 9 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #7

Updated by dkliban@redhat.com over 9 years ago

  • Platform Release set to 2.7.0
Actions #8

Updated by dkliban@redhat.com over 9 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by amacdona@redhat.com about 9 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #10

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added
Actions #11

Updated by bmbouter over 4 years ago

  • Category deleted (14)

We are removing the 'API' category per open floor discussion June 16, 2020.

Also available in: Atom PDF