Project

Profile

Help

Issue #8395

AttributeError: type object 'AccessPolicy' has no attribute 'NotFound'

Added by ipanova@redhat.com about 1 month ago. Updated 6 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 92
Quarter:

Description

Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]:   File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_framework/views.py", line 332, in check_permissions
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]:     if not permission.has_permission(request, self):
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]:   File "/usr/local/lib/pulp/lib64/python3.8/site-packages/rest_access_policy/access_policy.py", line 21, in has_permission
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]:     statements = self.get_policy_statements(request, view)
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]:   File "/home/vagrant/devel/pulpcore/pulpcore/app/access_policy.py", line 39, in get_policy_statements
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]:     except AccessPolicyModel.NotFound:
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: AttributeError: type object 'AccessPolicy' has no attribute 'NotFound'
Mar 12 12:28:42 pulp3-source-fedora32.fluffy.example.com gunicorn[19168]: pulp [2bcb0cd76210427abce820a01fbae3bb]: 127.0.0.1 - admin [12/Mar/2021:12:28:42 +0000] "GET /testview/ HTTP/1.1" 500 27 "-" "HTTPie/2.4.0"

Associated revisions

Revision 49dfcb15 View on GitHub
Added by ipanova@redhat.com about 1 month ago

Removed addressing AccessPolicy via the viewset's classname.

closes #8397 closes #8395

History

#1 Updated by pulpbot about 1 month ago

  • Status changed from NEW to POST

#3 Updated by fao89 about 1 month ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 92

#4 Updated by ipanova@redhat.com about 1 month ago

  • Sprint/Milestone set to 3.11.0

#5 Updated by ipanova@redhat.com about 1 month ago

  • Status changed from POST to MODIFIED

#6 Updated by ipanova@redhat.com 30 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#7 Updated by ipanova@redhat.com 6 days ago

  • Assignee set to ipanova@redhat.com

Please register to edit this issue

Also available in: Atom PDF