Actions
Issue #9258
closedSchema view is broken
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: pulp [a7c8f7d0efc74761ba92244dfe995ac8]: django.request:ERROR: Internal Server Error: /pulp/api/v3/
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: Traceback (most recent call last):
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: response = get_response(request)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: response = wrapped_callback(request, *callback_args, **callback_kwargs)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: return view_func(*args, **kwargs)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/django/views/generic/base.py", line 70, in view
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: return self.dispatch(request, *args, **kwargs)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: response = self.handle_exception(exc)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/schemas/views.py", line 48, in handle_exception
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: return super().handle_exception(exc)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: self.raise_uncaught_exception(exc)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: raise exc
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: response = handler(request, *args, **kwargs)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/schemas/views.py", line 37, in get
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: schema = self.schema_generator.get_schema(request, self.public)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/home/vagrant/devel/pulpcore/pulpcore/openapi/__init__.py", line 448, in get_schema
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: paths=self.parse(request, public),
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/home/vagrant/devel/pulpcore/pulpcore/openapi/__init__.py", line 387, in parse
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: if not (public or self.has_view_permissions(path, method, view)):
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/schemas/generators.py", line 236, in has_view_permissions
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: view.check_permissions(view.request)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/views.py", line 332, in check_permissions
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: if not permission.has_permission(request, self):
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_access_policy/access_policy.py", line 35, in has_permission
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: return self._evaluate_statements(statements, request, view, action)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_access_policy/access_policy.py", line 69, in _evaluate_statements
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: matched = self._get_statements_matching_conditions(
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_access_policy/access_policy.py", line 197, in _get_statements_matching_conditions
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: passed = self._check_condition(condition, request, view, action)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_access_policy/access_policy.py", line 221, in _check_condition
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: result = method(request, view, action, arg)
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: File "/home/vagrant/devel/pulp_container/pulp_container/app/access_policy.py", line 39, in has_namespace_perms
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: namespace = base_path.split("/")[0]
Aug 19 13:25:24 pulp3.local.com gunicorn[65857]: AttributeError: 'NoneType' object has no attribute 'split'
Updated by pulpbot over 3 years ago
- Status changed from NEW to POST
Added by Fabricio Aguiar about 3 years ago
Added by Fabricio Aguiar about 3 years ago
Revision 7737a9fe | View on GitHub
Fix OpenAPI schema view
closes #9258
Updated by Anonymous about 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset 7737a9fe19eb555af2b748958dceb0ca43455b2f.
Updated by pulpbot about 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fix OpenAPI schema view
closes #9258