Project

Profile

Help

Issue #8395

closed

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

Added by ipanova@redhat.com over 3 years ago. Updated over 3 years 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"
Actions #1

Updated by pulpbot over 3 years ago

  • Status changed from NEW to POST
Actions #3

Updated by fao89 over 3 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 92
Actions #4

Updated by ipanova@redhat.com over 3 years ago

  • Sprint/Milestone set to 3.11.0

Added by ipanova@redhat.com over 3 years ago

Revision 49dfcb15 | View on GitHub

Removed addressing AccessPolicy via the viewset's classname.

closes #8397 closes #8395

Actions #5

Updated by ipanova@redhat.com over 3 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by ipanova@redhat.com over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #7

Updated by ipanova@redhat.com over 3 years ago

  • Assignee set to ipanova@redhat.com

Also available in: Atom PDF