webob cannot set the body to a text value without a charset

Bug #1657310 reported by Eric K
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Fix Released
Medium
Eric K
Newton
Fix Committed
High
Eric K
Ocata
Fix Released
Medium
Eric K

Bug Description

Some webob versions (e.g. 1.7) seems to require specifying a charset in Response object with content_type='application/json'. Causes critical failure on generating API response:
TypeError: You cannot set the body to a text value without a charset

Eric K (ekcs)
summary: - webob 1.7 cannot set the body to a text value without a charset
+ webob cannot set the body to a text value without a charset
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (master)

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

Changed in congress:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/421694

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

Reviewed: https://review.openstack.org/421692
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=418e60724b22fac983ed354aa3e77884076e7c94
Submitter: Jenkins
Branch: master

commit 418e60724b22fac983ed354aa3e77884076e7c94
Author: Eric K <email address hidden>
Date: Tue Jan 17 22:44:43 2017 -0800

    specify webob Response charset

    Required by webob >= 1.7
    Closes-Bug: 1657310

    Change-Id: I0851f980cb38656f0ff49d494d6c3ccd4540a340

Changed in congress:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/congress 5.0.0.0b3

This issue was fixed in the openstack/congress 5.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (stable/newton)

Reviewed: https://review.openstack.org/421694
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=e37601f9091b0db21bb2d5430afe647cf56a7539
Submitter: Jenkins
Branch: stable/newton

commit e37601f9091b0db21bb2d5430afe647cf56a7539
Author: Eric K <email address hidden>
Date: Tue Jan 17 22:44:43 2017 -0800

    specify webob Response charset

    Required by webob >= 1.7
    Closes-Bug: 1657310

    Change-Id: I0851f980cb38656f0ff49d494d6c3ccd4540a340

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/congress 4.0.1

This issue was fixed in the openstack/congress 4.0.1 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.