Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-101997

Fix serialport traceback in legacy UI Wizard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: 11.2-U5, TrueNAS 11.2-U5
    • Fix Version/s: 11.2-U5
    • Component/s: Middleware
    • Labels:
      None
    • Attempts to pass:
      1
    • Testing System:
      X10-HA
    • QA Status:
      Test Passes TrueNAS
    • Acceptance Criteria:
      Steps in description should no longer result in a traceback.

      Description

      Seen in TrueNAS-11.2-INTERNAL-14

      I was testing a ticket concerning setting up AD in the Wizard. I got the following traceback when I clicked the Save button


      Traceback:
      File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
        42.             response = get_response(request)
      File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
        249.             response = self._get_response(request)
      File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
        178.             response = middleware_method(request, callback, callback_args, callback_kwargs)
      File "./freenasUI/freeadmin/middleware.py" in process_view
        163.         return login_required(view_func)(request, *view_args, **view_kwargs)
      File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
        23.                 return view_func(request, *args, **kwargs)
      File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in view
        68.             return self.dispatch(request, *args, **kwargs)
      File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in dispatch
        248.         response = super(WizardView, self).dispatch(request, *args, **kwargs)
      File "/usr/local/lib/python3.6/site-packages/django/views/generic/base.py" in dispatch
        88.         return handler(request, *args, **kwargs)
      File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in post
        309.                 return self.render_done(form, **kwargs)
      File "/usr/local/lib/python3.6/site-packages/formtools/wizard/views.py" in render_done
        365.         done_response = self.done(final_forms.values(), form_dict=final_forms, **kwargs)
      File "./freenasUI/system/forms.py" in done
        669.                 advform.save()
      File "./freenasUI/middleware/form.py" in save
        55.         result = self.__save()
      File "./freenasUI/middleware/form.py" in __save
        114.                     raise
      File "./freenasUI/middleware/form.py" in __save
        109.                 return c.call(f"{self.middleware_plugin}.{self._middleware_action}", *args, **kwargs)
      File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
        453.                 raise ValidationErrors(c.extra)

      Exception Type: ValidationErrors at /legacy/system/wizard/
      Exception Value: [EINVAL] advanced_settings_update.serialport: Serial port specified has not been identified by the system

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  waqar Waqar Ahmed
                  Reporter:
                  bonnie Bonnie Follweiler
                  QE Engineer:
                  Bonnie Follweiler
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Merged after freeze:

                    Summary Panel