Error when attempting to calculate folder size with external links

Bug #1702113 reported by Mike Fedosin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glare
Fix Released
High
Mike Fedosin

Bug Description

If folder contains blobs with external links their sizes will be None, which leads to errors,
like
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

Mike Fedosin (mfedosin)
Changed in glare:
assignee: nobody → Mike Fedosin (mfedosin)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glare (master)

Fix proposed to branch: master
Review: https://review.openstack.org/479842

Changed in glare:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glare (master)

Reviewed: https://review.openstack.org/479842
Committed: https://git.openstack.org/cgit/openstack/glare/commit/?id=4b2c4260dc14ec1a3c7ba1469b7e263273c4d923
Submitter: Jenkins
Branch: master

commit 4b2c4260dc14ec1a3c7ba1469b7e263273c4d923
Author: Mike Fedosin <email address hidden>
Date: Mon Jul 3 17:25:36 2017 +0300

    Fix calculation of the folder size

    If folder contains blobs with external links
    their sizes will be None, which leads to errors,
    like

    TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

    Closes-bug: #1702113

    Change-Id: I0bf431b1cded7848fe17fa69aad1e34ec11eeb87

Changed in glare:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.