Issue #6117 has been updated by Cody Robertson.
Matt Robinson wrote: > It looks like something to fix this issue will be necessary before we can use > puppet under Ruby 1.9, at least with Webrick. Webrick in Ruby 1.9 seems to > have a much lower tolarance for large GET requests. A very simple set of > facts that works on master running on Ruby 1.8.7 fails under Ruby 1.9.2 like > so: > > err: Could not retrieve catalog from remote server: Error 414 on SERVER: > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> > <HTML> > <HEAD><TITLE>Request-URI Too Large</TITLE></HEAD> > <BODY> > <H1>Request-URI Too Large</H1> > WEBrick::HTTPStatus::RequestURITooLarge > <HR> > <ADDRESS>WEBrick/1.3.1 (Ruby/1.9.2/2010-12-25) OpenSSL/0.9.8l at > mattmac.puppetlabs.lan:8140 </ADDRESS> > </BODY> > </HTML> You can use something like NGINX and raise [large_client_header_buffers](http://wiki.nginx.org/HttpCoreModule#large_client_header_buffers) option. Other web servers (or reverse proxies) have similar options to allow for larger requests. ---------------------------------------- Bug #6117: Catalog GETs should shift to POST https://projects.puppetlabs.com/issues/6117 Author: eric sorenson Status: Accepted Priority: High Assignee: Category: API Target version: Statler Affected Puppet version: Keywords: catalog REST Branch: Hi, looking at Bug #2668 after some discussion on IRC today, I thought this would be worth re-opening. Brice gzip+b64 encoded the URLs which definitely helps, but IMO it just pushes the problem out a little bit. Fact lists are always getting bigger and it'd be great not to have to worry about running into URL length limits and clean up the requests at the same time. Brice Figureau wrote: > > I don't think so, because we're GETting a catalog. To be RESTful, we should > keep using GET. > IMO this semantic correctness is way, way, way less important than doing something sane. Shifting catalog GETs over to POSTs, with the body as facts in x-www-form-urlencoded , allows arbitrary length of facts without making insane URLs. -- 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://projects.puppetlabs.com/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.
