Actions
Issue #1541
closedRetrieve bindings by consumer and repository call fails
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:
Description
$ curl -H "Accept: application/json" -X GET -k -u admin:admin 'https://localhost/pulp/api/v2/consumers/any_consumer/bindings/any_repo/'
{
"_href": "/pulp/api/v2/consumers/any_consumer/bindings/any_repo/",
"error_message": "Not a query object: any_repo. Did you intend to use key=value?",
"exception": [
"InvalidQueryError: Not a query object: any_repo. Did you intend to use key=value?\n"
],
"http_request_method": "GET",
"http_status": 500,
"traceback": [
" File \"/usr/lib/python2.7/site-packages/django/core/handlers/base.py\", line 132, in get_response\n response = wrapped_callback(request, *callback_args, **callback_kwargs)\n",
" File \"/usr/lib/python2.7/site-packages/django/views/generic/base.py\", line 71, in view\n return self.dispatch(request, *args, **kwargs)\n",
" File \"/usr/lib/python2.7/site-packages/django/views/generic/base.py\", line 89, in dispatch\n return handler(request, *args, **kwargs)\n",
" File \"/home/user1/devel/pulp/server/pulp/server/webservices/views/decorators.py\", line 241, in _auth_decorator\n return _verify_auth(self, operation, super_user_only, method, *args, **kwargs)\n",
" File \"/home/user1/devel/pulp/server/pulp/server/webservices/views/decorators.py\", line 195, in _verify_auth\n value = method(self, *args, **kwargs)\n",
" File \"/home/user1/devel/pulp/server/pulp/server/webservices/views/consumers.py\", line 361, in get\n repo = model.Repository.objects(repo_id).first()\n",
" File \"/usr/lib/python2.7/site-packages/mongoengine/queryset/base.py\", line 109, in __call__\n raise InvalidQueryError(msg)\n"
]
}
Same problem with consumer_groups repo binding/unbinding
http://pulp.readthedocs.org/en/latest/dev-guide/integration/rest-api/consumer/group/bind.html
Added by ttereshc almost 9 years ago
Added by ttereshc almost 9 years ago
Revision f639a3f8 | View on GitHub
1541 - Retrieve bindings by consumer and repository call fails
Updated by ttereshc almost 9 years ago
- Status changed from ASSIGNED to POST
Updated by ttereshc almost 9 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|f639a3f8b6dc41aa5fbfeaecfea446af96be74d0.
Updated by rbarlow almost 9 years ago
- Status changed from MODIFIED to 5
- Platform Release set to 2.8.0
Updated by dkliban@redhat.com almost 9 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Updated by bmbouter over 4 years ago
- Category deleted (
14)
We are removing the 'API' category per open floor discussion June 16, 2020.
Actions
1541 - Retrieve bindings by consumer and repository call fails
closes #1541 https://pulp.plan.io/issues/1541