Project

General

Profile

Bug #45772

Fix traceback in legacy UI wizard

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

Status:
Done
Priority:
No priority
Assignee:
Waqar Ahmed
Category:
Middleware
Target version:
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

ValidationErrors: [EINVAL] password_disabled: Leave "Password" blank when "Disable password login" is checked.
  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 309, in post
    return self.render_done(form, **kwargs)
  File "formtools/wizard/views.py", line 365, in render_done
    done_response = self.done(final_forms.values(), form_dict=final_forms, **kwargs)
  File "freenasUI/system/forms.py", line 511, in done
    'group': group.id,
  File "freenasUI/system/forms.py", line 511, in done
    'group': group.id,
  File "middlewared/client/client.py", line 436, in call
    raise ValidationErrors(c.extra)
cleaned_data    
{
'ds_ad_bindname': '', 
'ds_ad_bindpw': '', 
'ds_ad_domainname': '', 
'ds_ldap_basedn': '', 
'ds_ldap_binddn': '', 
'ds_ldap_bindpw': '', 
'ds_ldap_hostname': '', 
'ds_nis_domain': '', 
'ds_nis_manycast': False, 
'ds_nis_secure_mode': False, 
'ds_nis_servers': '', 
'em_fromemail': 'root@freenas.local', 
'em_outgoingserver': '', 
'em_pass1': '', 
'em_pass2': '', 
'em_port': 25, 
'em_security': 'plain', 
'em_smtp': False, 
'em_user': '', 
'formset-shares': [
{
'share_allowguest': False, 
'share_group': 'windows', 
'share_groupcreate': True, 
'share_iscsisize': '', 
'share_mode': '777', 
'share_name': 'testewindows', 
'share_purpose': 'cifs', 
'share_timemachine': False, 
'share_user': 'windows', 
'share_usercreate': True, 
'share_userpw': ''
}
], 
'stg_kbdmap': '', 
'stg_language': 'pt-br', 
'stg_timezone': 'America/Sao_Paulo', 
'sys_console': False, 
'sys_email': ''
}

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

Associated revisions

Revision 4ee201ed (diff)
Added by Waqar Ahmed almost 2 years ago

Bug fix for legacy Wizard This commit fixes a bug which when a password wasn't provided in the legacy Wizard, validation from Middlewared's end failed as legacy UI was adding a value of ! with password_disabled set to True. Ticket: #45772

Revision 643f1da8 (diff)
Added by Waqar Ahmed almost 2 years ago

Bug fix for legacy Wizard This commit fixes a bug which when a password wasn't provided in the legacy Wizard, validation from Middlewared's end failed as legacy UI was adding a value of ! with password_disabled set to True. Ticket: #45772

History

#1 Updated by Waqar Ahmed 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 Dru Lavigne almost 2 years ago

  • Subject changed from Traceback on legacy UI wizard to Fix traceback in legacy UI wizard
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#4 Updated by Bonnie Follweiler almost 2 years ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

#6 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF