Bug 766967 - 500 on HTTP PUT from audrey-agent
Summary: 500 on HTTP PUT from audrey-agent
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-configserver
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Greg Blomquist
QA Contact: dgao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-12 21:10 UTC by Greg Blomquist
Modified: 2012-08-30 17:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Greg Blomquist 2011-12-12 21:10:51 UTC
Description of problem:

If the audrey-agent can only submit _some_ of the parameters, it currently submits data that causes the config server to choke when it attempts to base64 decode the data.

More defensive code is required to protect against this.


Version-Release number of selected component (if applicable):

aeolus-configserver-0.4.3


Steps to Reproduce:
1. Launch a deployable with multiple guests and at least one "return" parameter that is generated by the configuration scripts for the guest.
  
Actual results:

The Configserver barfs with a 500 error


Expected results:

The Configserver responds with a 202

Comment 1 Greg Blomquist 2011-12-15 16:29:29 UTC
Updated, pushed, and RPMs built:

aeolus-configserver-0.4.3-2

Comment 2 wes hayutin 2012-01-03 17:42:16 UTC
adding ce-sprint-next bugs to ce-sprint

Comment 4 dgao 2012-01-25 18:57:44 UTC
PUT /params/1/f6c6f7ee-46d2-11e1-8661-5cf3fc1c8188 HTTP/1.1
Host: localhost:4567
Accept-Encoding: identity
content-type: application/x-www-form-urlencoded
authorization: OAuth realm="", oauth_nonce="79445706", oauth_timestamp="1327440847", oauth_consumer_key="f6c6f7ee-46d2-11e1-8661-5cf3fc1c8188", oauth_signature_method="HMAC-SHA1", oauth_version="1.0", oauth_signature="QF%2BYGEMy4S7IZlH%2Ff%2BQKjz51rt0%3D"
user-agent: Python-httplib2/$Rev$
X_FORWARDED_PROTO: https
X-Forwarded-For: 10.66.170.236
X-Forwarded-Host: ec2-107-22-112-68.compute-1.amazonaws.com
X-Forwarded-Server: ip-10-194-107-254.ec2.internal
Connection: Keep-Alive
Content-Length: 57

audrey_data=%7Chostname%26aXAtMTAtNjYtMTcwLTIzNg%3D%3D%7C
10.66.170.236 - - [24/Jan/2012 16:34:50] "PUT /params/1/f6c6f7ee-46d2-11e1-8661-5cf3fc1c8188 HTTP/1.1" 200 2 0.0324
HTTP/1.1 200 OK
Content-Type: text/html;charset=utf-8
Content-Length: 2
Connection: keep-alive
Server: thin 1.2.11 codename Bat-Shit Crazy

||


Note You need to log in before you can comment on or make changes to this bug.