Issue #2367 has been updated by Ricky Zhou.
I think Jordan hit the root cause of this on the head :-) This patch on
lib/puppet/network/http/mongrel/rest.rb corrected the issue for me (not sure if
it can break anything else though). Some additional error checking would be
good though, as Jordan mentioned.
<pre>
diff --git a/lib/puppet/network/http/mongrel/rest.rb
b/lib/puppet/network/http/mongrel/rest.rb
index 369d4c6..eed62c2 100644
--- a/lib/puppet/network/http/mongrel/rest.rb
+++ b/lib/puppet/network/http/mongrel/rest.rb
@@ -37,7 +37,7 @@ class Puppet::Network::HTTP::MongrelREST <
Mongrel::HttpHandler
# return the request body
def body(request)
- request.body
+ request.body.read
end
def set_content_type(response, format)
</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
-~----------~----~----~----~------~----~------~--~---