Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inventory upload cant determin object organization #55

Closed
jon-nfc opened this issue Jun 9, 2024 · 6 comments
Closed

inventory upload cant determin object organization #55

jon-nfc opened this issue Jun 9, 2024 · 6 comments
Assignees
Labels
impact::5 Migrated from Gitlab This issue/PR was migrated from GitLab see #213 priority::4 type::bug Type for Issues and Merge Requests. Can also be used in discussion in comments and commits
Milestone

Comments

@jon-nfc
Copy link
Member

jon-nfc commented Jun 9, 2024

when trying to upload a device inventory it errors due to not being able to determine the object organization

stack trace

Internal Server Error: /api/device/inventory
Traceback (most recent call last):
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/rest_framework/views.py", line 497, in dispatch
    self.initial(request, *args, **kwargs)
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/rest_framework/views.py", line 415, in initial
    self.check_permissions(request)
  File "/home/sysadmin/git/django_venv/lib/python3.11/site-packages/rest_framework/views.py", line 332, in check_permissions
    if not permission.has_permission(request, self):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sysadmin/git/django-template/app/api/views/mixin.py", line 15, in has_permission
    return self.permission_check(request, view)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sysadmin/git/django-template/app/api/views/itam/inventory.py", line 35, in permission_check
    return super().permission_check(request, view, obj=None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sysadmin/git/django-template/app/api/views/mixin.py", line 132, in permission_check
    raise Exception("unable to determine object organization")
Exception: unable to determine object organization
[09/Jun/2024 21:53:25] "POST /api/device/inventory HTTP/1.1" 500 129963
@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 9, 2024

added 2h of time spent

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 11, 2024

mentioned in commit 505f4cf

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 11, 2024

mentioned in commit 65c6065

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 11, 2024

mentioned in commit 36fa364

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 11, 2024

mentioned in commit 2eb5031

@jon-nfc
Copy link
Member Author

jon-nfc commented Jun 11, 2024

mentioned in commit 60a22f5

@jon-nfc jon-nfc self-assigned this Aug 8, 2024
@jon-nfc jon-nfc closed this as completed Aug 8, 2024
@jon-nfc jon-nfc added the Migrated from Gitlab This issue/PR was migrated from GitLab see #213 label Aug 8, 2024
@jon-nfc jon-nfc mentioned this issue Aug 8, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact::5 Migrated from Gitlab This issue/PR was migrated from GitLab see #213 priority::4 type::bug Type for Issues and Merge Requests. Can also be used in discussion in comments and commits
Projects
Archived in project
Development

No branches or pull requests

1 participant