Project

Profile

Help

Issue #1541

Retrieve bindings by consumer and repository call fails

Added by ttereshc over 4 years ago. Updated 3 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
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

http://pulp.readthedocs.org/en/latest/dev-guide/integration/rest-api/consumer/bind.html#retrieve-binding-by-consumer-and-repository

$ 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

Associated revisions

Revision f639a3f8 View on GitHub
Added by ttereshc over 4 years ago

1541 - Retrieve bindings by consumer and repository call fails

closes #1541 https://pulp.plan.io/issues/1541

Revision f639a3f8 View on GitHub
Added by ttereshc over 4 years ago

1541 - Retrieve bindings by consumer and repository call fails

closes #1541 https://pulp.plan.io/issues/1541

History

#1 Updated by ttereshc over 4 years ago

  • Description updated (diff)

#2 Updated by ttereshc over 4 years ago

  • Description updated (diff)

#3 Updated by ttereshc over 4 years ago

  • Status changed from NEW to ASSIGNED

#4 Updated by ttereshc over 4 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by ttereshc over 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#6 Updated by jortel@redhat.com over 4 years ago

  • Triaged changed from No to Yes

#7 Updated by rbarlow over 4 years ago

  • Status changed from MODIFIED to 5
  • Platform Release set to 2.8.0

#8 Updated by dkliban@redhat.com over 4 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

#10 Updated by bmbouter 3 months ago

  • Category deleted (14)

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

Please register to edit this issue

Also available in: Atom PDF