Project

General

Profile

Bug #63648

Incorrect exception handling in UI

Added by William Grzybowski almost 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Andrew Walker
Category:
Middleware
Seen in:
Severity:
Low Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

TypeError: 'NO_SUCH_OBJECT' object does not support indexing
  File "django/core/handlers/exception.py", line 42, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "django/core/handlers/base.py", line 178, in _get_response
    response = middleware_method(request, callback, callback_args, callback_kwargs)
  File "freenasUI/freeadmin/middleware.py", line 163, in process_view
    return login_required(view_func)(request, *view_args, **view_kwargs)
  File "django/contrib/auth/decorators.py", line 23, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "formtools/wizard/views.py", line 248, in dispatch
    response = super(WizardView, self).dispatch(request, *args, **kwargs)
  File "django/views/generic/base.py", line 88, in dispatch
    return handler(request, *args, **kwargs)
  File "formtools/wizard/views.py", line 301, in post
    if form.is_valid():
  File "django/forms/forms.py", line 169, in is_valid
    return self.is_bound and not self.errors
  File "django/forms/forms.py", line 161, in errors
    self.full_clean()
  File "django/forms/forms.py", line 371, in full_clean
    self._clean_form()
  File "django/forms/forms.py", line 398, in _clean_form
    cleaned_data = self.clean()
  File "freenasUI/system/forms.py", line 1856, in clean
    e = e[0]

https://sentry.ixsystems.com/ixsystems/freenas-middleware/issues/20126/


Related issues

Copied to FreeNAS - Bug #63837: Fix handling of LDAP error messages in Directory Service wizardDone

History

#1 Updated by Bug Clerk almost 2 years ago

  • Status changed from Unscreened to In Progress

#2 Updated by Bug Clerk almost 2 years ago

  • Status changed from In Progress to Ready for Testing

#3 Updated by Bug Clerk almost 2 years ago

  • Target version changed from 11.2-U2 to 11.3

#4 Updated by Bug Clerk almost 2 years ago

  • Copied to Bug #63837: Fix handling of LDAP error messages in Directory Service wizard added

#5 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Ready for Testing to Done
  • Target version changed from 11.3 to Master - FreeNAS Nightlies
  • Needs QA changed from Yes to No
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

Also available in: Atom PDF