Issue #1541
Updated by ttereshc almost 9 years ago
http://pulp.readthedocs.org/en/latest/dev-guide/integration/rest-api/consumer/bind.html#retrieve-binding-by-consumer-and-repository
<pre>
$ 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"
]
}
</pre>
Same problem with consumer_groups repo binding/unbinding
http://pulp.readthedocs.org/en/latest/dev-guide/integration/rest-api/consumer/group/bind.html