Heat api fails on stack-create while running api on mod_wsgi

Bug #1500807 reported by Oleksii Chuprykov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Oleksii Chuprykov

Bug Description

heat stack-create abc --template-file <template file name>

Got error:

<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
 [no address given] to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at 192.168.122.82 Port 8004</address>
</body></html>

Found in logs:
TypeError: expected byte string object for header value, value of type unicode found

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

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

Changed in heat:
assignee: nobody → Oleksii Chuprykov (ochuprykov)
status: New → In Progress
Changed in heat:
importance: Undecided → Medium
milestone: none → mitaka-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/228821
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=a1b3c23ff856ed2574a1ab50ba854f6a79b3213e
Submitter: Jenkins
Branch: master

commit a1b3c23ff856ed2574a1ab50ba854f6a79b3213e
Author: Oleksii Chuprykov <email address hidden>
Date: Tue Sep 29 13:06:29 2015 +0300

    Encode Location header in utf-8

    We get Location header in unicode format. Need to encode it to utf-8
    format, otherwise heat won't work on some requests running via
    mod_wsgi.

    Closes-Bug: #1500807
    Change-Id: I8950360e71cd62baf899d0aff822b981b5d99068

Changed in heat:
status: In Progress → Fix Committed
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/heat 6.0.0.0b1

This issue was fixed in the openstack/heat 6.0.0.0b1 development milestone.

Changed in heat:
status: Fix Committed → 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.