← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1504397] Re: truncate table size column cause the exception

 

Reviewed:  https://review.openstack.org/546114
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=7f121363935be32b345ec80fd15d478bb8d9f23f
Submitter: Zuul
Branch:    master

commit 7f121363935be32b345ec80fd15d478bb8d9f23f
Author: Ameed Ashour <ameed.ashour.ext@xxxxxxxxx>
Date:   Tue Feb 20 05:54:33 2018 -0500

    Truncate table size column cause the exception
    
    The truncate filter treat an integer as a string and failing.
    
    Co-Authored-By: Ivan Kolodyazhny <e0ne@xxxxxxxxx>
    Change-Id: I1a66c3080544e0af8ba02c530351ab4b2d7f9bbd
    Closes-Bug: #1504397


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
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):
  Fix Released

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


References