Issue #2367 has been updated by Jordan Curzon.

Ricky,

I posted a fix that was more complicated but I looked at it more and your patch 
is complete. Here is the change for the rspec tests:

<pre>
diff --git a/spec/unit/network/http/mongrel/rest.rb 
b/spec/unit/network/http/mongrel/rest.rb
index abd573a..83d9651 100755
--- a/spec/unit/network/http/mongrel/rest.rb
+++ b/spec/unit/network/http/mongrel/rest.rb
@@ -54,7 +54,7 @@ describe "Puppet::Network::HTTP::MongrelREST" do
             end
 
             it "should return the request body as the body" do
-                @request.expects(:body).returns "mybody"
+                @request.expects(:body).returns StringIO.new("mybody")
                 @handler.body(@request).should == "mybody"
             end
</pre>
----------------------------------------
Bug #2367: reporting fails on .25.0b2, possibly apache/mongrel's fault
http://projects.reductivelabs.com/issues/2367

Author: Joe McDonagh
Status: Accepted
Priority: High
Assigned to: 
Category: reports
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0beta2
Keywords: 


Hi, I'm using mongrel behind mod_proxy_balancer in apache and piloting the 
.25b2, I get this when reporting should happen:

err: Reporting failed: Server returned 400: undefined method `save' for 
false:FalseClass

I have this error in the apache error log:

[Thu Jun 25 20:32:50 2009] [warn] proxy: bad HTTP/1.1 header returned by 
/production/report/link.phishnet.internal (PUT)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to