Project

General

Profile

Actions

Bug #7748

closed

Error when accessing /settings_reporting/create

Added by Rajmund Hruška 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development - GUI
Target version:
Start date:
06/07/2024
Due date:
% Done:

0%

Estimated time:
To be discussed:
No

Description

Message type: CRITICAL
Location:     /var/mentat/venv/lib/python3.11/site-packages/hawat/base.py:202
Module:       base
Function:     eh_internal_server_error
Time:         2024-06-07 14:11:25,623

Message:

INTERNAL SERVER ERROR

Request: /settings_reporting/create?
Traceback:
Traceback (most recent call last):
  File "/var/mentat/venv/lib/python3.11/site-packages/flask/app.py", line 2529, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/mentat/venv/lib/python3.11/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/mentat/venv/lib/python3.11/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/mentat/venv/lib/python3.11/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/mentat/venv/lib/python3.11/site-packages/flask_login/utils.py", line 290, in decorated_view
    return current_app.ensure_sync(func)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/mentat/venv/lib/python3.11/site-packages/flask/views.py", line 107, in view
    return current_app.ensure_sync(self.dispatch_request)(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/mentat/venv/lib/python3.11/site-packages/hawat/view/__init__.py", line 1710, in dispatch_request
    if not self.authorize_item_action():
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/mentat/venv/lib/python3.11/site-packages/hawat/blueprints/settings_reporting/__init__.py", line 171, in authorize_item_action
    hawat.acl.ManagementNeed(kwargs['item'].group.id)
                             ~~~~~~^^^^^^^^
KeyError: 'item'
Actions #1

Updated by Rajmund Hruška 3 months ago

I think there should only be CreateForView instead of CreateView.

Actions #2

Updated by Rajmund Hruška 3 months ago

Rajmund Hruška wrote in #note-1:

I think there should only be CreateForView instead of CreateView.

Or actually no Create(.*)View. The reporting settings are automatically created when a group is created. Then they can only be updated.

Actions #3

Updated by Jakub Judiny 3 months ago

  • Status changed from New to In Progress
  • Assignee set to Jakub Judiny
  • Target version changed from Backlog to 2.13
Actions #4

Updated by Jakub Judiny 3 months ago

  • Status changed from In Progress to Resolved
Actions #5

Updated by Rajmund Hruška 3 months ago

  • Status changed from Resolved to In Review
Actions #6

Updated by Rajmund Hruška 3 months ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF