<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ruby-gems/chef.git/spec/unit/server_api_spec.rb, branch https</title>
<subtitle>github.com: opscode/chef.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/'/>
<entry>
<title>Fix protocol negotiation for unversioned objects</title>
<updated>2020-07-28T21:07:57+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2020-07-28T21:04:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=d9b9ea1a737772cf0d3c3a3064057b60c47a9549'/>
<id>d9b9ea1a737772cf0d3c3a3064057b60c47a9549</id>
<content type='text'>
We generally always do protocol negotiation on the get of the node
object and the Chef::Node is an unversioned API, so we need to
test that we backoff the API version to the highest version the server
offers and then retry again.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We generally always do protocol negotiation on the get of the node
object and the Chef::Node is an unversioned API, so we need to
test that we backoff the API version to the highest version the server
offers and then retry again.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #10216 from chef/fix-406-no-method-error</title>
<updated>2020-07-28T00:02:23+00:00</updated>
<author>
<name>Tim Smith</name>
<email>tsmith@chef.io</email>
</author>
<published>2020-07-28T00:02:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=1f392d82aacbd604a3eb2cd151d52583ea1d8a27'/>
<id>1f392d82aacbd604a3eb2cd151d52583ea1d8a27</id>
<content type='text'>
Fix NoMethodError when server returns a 406.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix NoMethodError when server returns a 406.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix NoMethodError when server returns a 406.</title>
<updated>2020-07-27T23:52:54+00:00</updated>
<author>
<name>Pete Higgins</name>
<email>pete@peterhiggins.org</email>
</author>
<published>2020-07-27T23:46:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=09cdc96cb25956b3ef053fbe093d06453a7af92b'/>
<id>09cdc96cb25956b3ef053fbe093d06453a7af92b</id>
<content type='text'>
Signed-off-by: Pete Higgins &lt;pete@peterhiggins.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Pete Higgins &lt;pete@peterhiggins.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Define local test variables to avoid test load order bug.</title>
<updated>2020-07-27T20:06:04+00:00</updated>
<author>
<name>Pete Higgins</name>
<email>pete@peterhiggins.org</email>
</author>
<published>2020-07-27T20:06:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=3149ff136e832bfa27cd73200365d986870a9d59'/>
<id>3149ff136e832bfa27cd73200365d986870a9d59</id>
<content type='text'>
Signed-off-by: Pete Higgins &lt;pete@peterhiggins.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Pete Higgins &lt;pete@peterhiggins.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Knife should give a useful error when the chef_server_url isn't a chef server API"</title>
<updated>2018-03-14T15:20:47+00:00</updated>
<author>
<name>Thom May</name>
<email>thom@may.lt</email>
</author>
<published>2018-03-14T15:20:47+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=e20de6e6a79d0e16d4acc4f6eb7b6edebfaf4779'/>
<id>e20de6e6a79d0e16d4acc4f6eb7b6edebfaf4779</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix chefstyle</title>
<updated>2017-09-26T22:33:05+00:00</updated>
<author>
<name>Jose Asuncion</name>
<email>jose.asuncion@gmail.com</email>
</author>
<published>2017-09-26T22:31:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=ed65b42bb5bf587495918cbf509a4aea871720ec'/>
<id>ed65b42bb5bf587495918cbf509a4aea871720ec</id>
<content type='text'>
Signed-off-by: Jose Asuncion &lt;jeunito@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jose Asuncion &lt;jeunito@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into feat/5556</title>
<updated>2017-09-26T00:02:56+00:00</updated>
<author>
<name>Jose Asuncion</name>
<email>jose.asuncion@gmail.com</email>
</author>
<published>2017-09-26T00:00:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=d3cf74513829347db86f451cdd3ecc06bab01072'/>
<id>d3cf74513829347db86f451cdd3ecc06bab01072</id>
<content type='text'>
Signed-off-by: Jose Asuncion &lt;jeunito@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jose Asuncion &lt;jeunito@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>move chef server heuristic to server_api</title>
<updated>2017-09-25T23:57:32+00:00</updated>
<author>
<name>Jose Asuncion</name>
<email>jose.asuncion@gmail.com</email>
</author>
<published>2017-09-25T23:57:28+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=bdf090c43e46a1aeec80c6b495c6858f9c2d6300'/>
<id>bdf090c43e46a1aeec80c6b495c6858f9c2d6300</id>
<content type='text'>
Signed-off-by: Jose Asuncion &lt;jeunito@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jose Asuncion &lt;jeunito@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "raise error if chef_server_url is not valid"</title>
<updated>2017-08-17T01:25:05+00:00</updated>
<author>
<name>Jose Asuncion</name>
<email>jose.asuncion@gmail.com</email>
</author>
<published>2017-08-17T01:25:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=61916b652b80f3e6982bac0c925b86b32b7571f6'/>
<id>61916b652b80f3e6982bac0c925b86b32b7571f6</id>
<content type='text'>
This reverts commit 02a46911341c1d5ef10309d27963031d598dbe2c.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 02a46911341c1d5ef10309d27963031d598dbe2c.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix retries on JSON POST requests when negotiating protocol version</title>
<updated>2017-07-20T17:25:19+00:00</updated>
<author>
<name>Lamont Granquist</name>
<email>lamont@scriptkiddie.org</email>
</author>
<published>2017-07-20T17:25:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/ruby-gems/chef.git/commit/?id=df6dd3768d5fcc99a348bd52d7e6ffeaa1c391db'/>
<id>df6dd3768d5fcc99a348bd52d7e6ffeaa1c391db</id>
<content type='text'>
on the first pass through the JSON middleware it encodes the
body.  if there's a retry, it re-encodes the body as a string
with all its metacharacters escaped.

this is a particular issue when doing a first request that is
a POST that requires negotiating the API version.  when doing a
GET it isn't a problem because there's no body payload -- but a
POST or a PUT which requires a retry will get garbled and will
cause a 500.

this happens on hosted right now if trying to POST with a v2
API since hosted is only v1, so there's a retry to downgrade.

i also made the same kind of changes to the streaming download
requests, but since they're GETs its unclear to me if there was
any impact there -- but middleware could have been double-mangling
headers on a retry.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
on the first pass through the JSON middleware it encodes the
body.  if there's a retry, it re-encodes the body as a string
with all its metacharacters escaped.

this is a particular issue when doing a first request that is
a POST that requires negotiating the API version.  when doing a
GET it isn't a problem because there's no body payload -- but a
POST or a PUT which requires a retry will get garbled and will
cause a 500.

this happens on hosted right now if trying to POST with a v2
API since hosted is only v1, so there's a retry to downgrade.

i also made the same kind of changes to the streaming download
requests, but since they're GETs its unclear to me if there was
any impact there -- but middleware could have been double-mangling
headers on a retry.

Signed-off-by: Lamont Granquist &lt;lamont@scriptkiddie.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
