Project

Profile

Help

Issue #1717

closed

HTTP 500 when attempting to list a single scheduled sync or publish

Added by ttereshc about 8 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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:
Pulp 2
Sprint:
Quarter:

Description

https://pulp.readthedocs.org/en/latest/dev-guide/integration/rest-api/repo/sync.html#listing-a-single-scheduled-sync

$ curl -H "Accept: application/json" -i -X GET -k -u admin:admin 'https://localhost/pulp/api/v2/repositories/553fe483-9a33-4491-9e06-d6e9ad461b69/importers/yum_importer/schedules/sync/56cf1041e138236f5fd9a3f5/'

HTTP/1.1 500 INTERNAL SERVER ERROR
Date: Thu, 25 Feb 2016 14:32:43 GMT
Server: Apache/2.4.18 (Fedora) OpenSSL/1.0.2e-fips mod_wsgi/4.4.8 Python/2.7.10
Content-Length: 1408
Content-Encoding: utf-8
Connection: close
Content-Type: application/json; charset=utf-8

{
    "_href": "/pulp/api/v2/repositories/553fe483-9a33-4491-9e06-d6e9ad461b69/importers/yum_importer/schedules/sync/56cf1041e138236f5fd9a3f5/",
    "error_message": "'RepoSyncScheduleManager' object has no attribute 'validate_importer'",
    "exception": [
        "AttributeError: 'RepoSyncScheduleManager' object has no attribute 'validate_importer'\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/repositories.py\", line 520, in get\n    self.manager.validate_importer(repo_id, importer_id)\n"
    ]
}
Actions #1

Updated by amacdona@redhat.com about 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to amacdona@redhat.com
  • Platform Release set to 2.8.0
Actions #2

Updated by amacdona@redhat.com about 8 years ago

Proof that this worked in 2.7: http://fpaste.org/197592/26257239/

Actions #3

Updated by amacdona@redhat.com about 8 years ago

  • Subject changed from HTTP 500 when attempting to list a single scheduled sync to HTTP 500 when attempting to list a single scheduled sync or publish

Added by Austin Macdonald about 8 years ago

Revision 2b11aa92 | View on GitHub

Fix importer/distributor validation for schedules

The mongoengine conversion removed this validation from the manager, it can now be done with the controller for importers and directly with Mongoengine for distributors.

closes #1717

Added by Austin Macdonald about 8 years ago

Revision 2b11aa92 | View on GitHub

Fix importer/distributor validation for schedules

The mongoengine conversion removed this validation from the manager, it can now be done with the controller for importers and directly with Mongoengine for distributors.

closes #1717

Actions #4

Updated by amacdona@redhat.com about 8 years ago

  • Status changed from ASSIGNED to POST
  • Triaged changed from No to Yes
Actions #5

Updated by Anonymous about 8 years ago

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

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from MODIFIED to 5
Actions #7

Updated by dkliban@redhat.com about 8 years ago

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

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added
Actions #9

Updated by bmbouter almost 4 years ago

  • Category deleted (14)

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

Also available in: Atom PDF