← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1504397] [NEW] truncate table size column cause the exception

 

Public bug reported:

To reproduce:
1.edit openstack_dashboard/dashboards/project/images/images/tables.py
2.add 'truncate=40' to image size column
3.open the image page give the error

Error while rendering table rows.
Traceback (most recent call last):
  File "/home/openstack/horizon/horizon/tables/base.py", line 1774, in get_rows
    row = self._meta.row_class(self, datum)
  File "/home/openstack/horizon/horizon/tables/base.py", line 529, in __init__
    self.load_cells()
  File "/home/openstack/horizon/openstack_dashboard/dashboards/project/images/images/tables.py", line 268, in load_cells
    super(UpdateRow, self).load_cells(image)
  File "/home/openstack/horizon/horizon/tables/base.py", line 555, in load_cells
    cell = table._meta.cell_class(datum, column, self)
  File "/home/openstack/horizon/horizon/tables/base.py", line 657, in __init__
    if len(data) > column.truncate:
TypeError: object of type 'int' has no len()
Internal Server Error: /project/images/

** Affects: horizon
     Importance: Undecided
     Assignee: zhu.rong (zhu-rong)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => zhu.rong (zhu-rong)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1504397

Title:
  truncate table size column cause the exception

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  To reproduce:
  1.edit openstack_dashboard/dashboards/project/images/images/tables.py
  2.add 'truncate=40' to image size column
  3.open the image page give the error

  Error while rendering table rows.
  Traceback (most recent call last):
    File "/home/openstack/horizon/horizon/tables/base.py", line 1774, in get_rows
      row = self._meta.row_class(self, datum)
    File "/home/openstack/horizon/horizon/tables/base.py", line 529, in __init__
      self.load_cells()
    File "/home/openstack/horizon/openstack_dashboard/dashboards/project/images/images/tables.py", line 268, in load_cells
      super(UpdateRow, self).load_cells(image)
    File "/home/openstack/horizon/horizon/tables/base.py", line 555, in load_cells
      cell = table._meta.cell_class(datum, column, self)
    File "/home/openstack/horizon/horizon/tables/base.py", line 657, in __init__
      if len(data) > column.truncate:
  TypeError: object of type 'int' has no len()
  Internal Server Error: /project/images/

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1504397/+subscriptions


Follow ups