Project

General

Profile

Bug #24778

Fix traceback on volume detach

Added by William Grzybowski almost 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
GUI (new)
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
  File "django/core/handlers/exception.py", line 39, 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 162, 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 "freenasUI/storage/views.py", line 880, in volume_detach
    usedsize = humanize_size(usedbytes)
  File "freenasUI/common/__init__.py", line 64, in humanize_size
    return (__humanize_number_common(int(number), IEC_MAP))
pool detach.png (226 KB) pool detach.png Joe Maloney, 08/28/2017 10:53 AM
12315

Associated revisions

Revision a2465f79 (diff)
Added by William Grzybowski almost 4 years ago

fix(gui): make sure usedbytes is not None Ticket: #24778

Revision 97d2c8aa (diff)
Added by William Grzybowski almost 4 years ago

fix(gui): make sure usedbytes is not None Ticket: #24778 (cherry picked from commit a2465f79a1eaccd6f3df09637fa6999e82c68a05)

Revision f0d11272 (diff)
Added by William Grzybowski almost 4 years ago

fix(gui): make sure usedbytes is not None Ticket: #24778

History

#1 Updated by William Grzybowski almost 4 years ago

  • Status changed from Screened to Needs Developer Review
  • Assignee changed from William Grzybowski to Suraj Ravichandran

#2 Updated by Vaibhav Chauhan almost 4 years ago

  • Target version changed from 11.0-U1 to 11.0-U2

#3 Updated by Suraj Ravichandran almost 4 years ago

  • Status changed from Needs Developer Review to Reviewed
  • Assignee changed from Suraj Ravichandran to William Grzybowski
  • % Done changed from 0 to 100

LGTM

#4 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 4 years ago

  • Status changed from Reviewed to Reviewed by Developer

#5 Updated by Vaibhav Chauhan almost 4 years ago

  • Target version changed from 11.0-U2 to 11.0-U3

#6 Updated by Vaibhav Chauhan over 3 years ago

please publish your changes in a PR which will be merged against stable branch, also please let us know here when you have PR ready.

#7 Updated by Vaibhav Chauhan over 3 years ago

  • Status changed from Reviewed by Developer to 47

#8 Updated by Dru Lavigne over 3 years ago

  • Subject changed from Traceback on detach if usedbytes is None to Fix traceback on volume detach

#9 Updated by Joe Maloney over 3 years ago

  • File pool detach.png pool detach.png added
  • Status changed from 47 to Ready For Release
  • Needs QA changed from Yes to No
  • QA Status Test Passes added
  • QA Status deleted (Not Tested)
12315

Detached pool as shown in screenshot, and pool was successfully detached.

#10 Updated by Vaibhav Chauhan over 3 years ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF