Actions
Issue #1717
closedHTTP 500 when attempting to list a single scheduled sync or publish
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:
Pulp 2
Sprint:
Quarter:
Description
$ 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"
]
}
Updated by amacdona@redhat.com over 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to amacdona@redhat.com
- Platform Release set to 2.8.0
Updated by amacdona@redhat.com over 7 years ago
Proof that this worked in 2.7: http://fpaste.org/197592/26257239/
Updated by amacdona@redhat.com over 7 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 over 7 years ago
Added by Austin Macdonald over 7 years ago
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
Updated by amacdona@redhat.com over 7 years ago
- Status changed from ASSIGNED to POST
- Triaged changed from No to Yes
Updated by Anonymous over 7 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|2b11aa9262fa52a8c779c5601544f3acede04567.
Updated by dkliban@redhat.com over 7 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com about 7 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Updated by bmbouter almost 3 years ago
- Category deleted (
14)
We are removing the 'API' category per open floor discussion June 16, 2020.
Actions
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