empty/zero length string is converted to None in filter_empty_keys

Bug #1420445 reported by Steve Heyman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-barbicanclient
Fix Released
Medium
Juan Antonio Osorio Robles

Bug Description

Need to send an empty or zero length string but filter_empty_keys function is changing to None.

Changed in python-barbicanclient:
assignee: nobody → Juan Antonio Osorio Robles (juan-osorio-robles)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-barbicanclient (master)

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

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

Reviewed: https://review.openstack.org/160772
Committed: https://git.openstack.org/cgit/openstack/python-barbicanclient/commit/?id=8c9024337c67f2dbf1a851f12209cb6bdf6f1e7c
Submitter: Jenkins
Branch: master

commit 8c9024337c67f2dbf1a851f12209cb6bdf6f1e7c
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Tue Mar 3 14:30:41 2015 +0200

    Do not filter empty strings

    Empty strings shouldn't be filtered from requests, as we have
    explicitly set some attributes to be optional and actually
    differentiate between null and empty attributes in the server side. So
    now, only attributes containing None are filtered and empty strings
    are actually passed to the server.

    Change-Id: Ia048d7de6bcbc12317930eeccc009b6b0db10e13
    Closes-bug: #1420445

Changed in python-barbicanclient:
status: In Progress → Fix Committed
Changed in python-barbicanclient:
milestone: none → 3.0.3
Changed in python-barbicanclient:
importance: Undecided → Medium
Changed in python-barbicanclient:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-barbicanclient 3.0.3

This issue was fixed in the openstack/python-barbicanclient 3.0.3 release.

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.