Code Monkey home page Code Monkey logo

Comments (3)

ctdk avatar ctdk commented on May 26, 2024 2

So I yanked that header (which it turns out I had totally misunderstood how it worked - oops) and pushed that up to master. Unfortunately knife cookbook download at least is still breaking for a different reason - it expects a cookbook to be returned with :all_files in the manifest, which goiardi doesn't do yet (because it's still just chef 11 with the occasional chef 12 aspect).

I'm mulling over what the best way forward is, but I think I need to get in gear on finally completing the chef 12+ work I've been putting off all this time.

from goiardi.

rmoriz avatar rmoriz commented on May 26, 2024

Either "0" was never implemented by vanilla chef-server or this is a recent bug of chef… what do you think?

The source of @versions is http/api_versions.rb

example header:

[20] pry(#<Chef::HTTP::APIVersions>)> http_response.each_header {|key,value| puts "#{key} = #{value}" }
server = openresty/1.11.2.3
date = Wed, 12 Jul 2017 01:46:14 GMT
content-type = application/json
content-length = 142
connection = close
x-chef-version = 11.1.7
x-goiardi = yes
x-goiardi-version = 0.11.5
x-ops-api-info = flavor=osc;version:11.1.7;goiardi=0.11.5
x-ops-server-api-version = 0
strict-transport-security = max-age=63072000; includeSubDomains; preload
x-frame-options = DENY
x-content-type-options = nosniff
=> {"server"=>["openresty/1.11.2.3"],
 "date"=>["Wed, 12 Jul 2017 01:46:14 GMT"],
 "content-type"=>["application/json"],
 "content-length"=>["142"],
 "connection"=>["close"],
 "x-chef-version"=>["11.1.7"],
 "x-goiardi"=>["yes"],
 "x-goiardi-version"=>["0.11.5"],
 "x-ops-api-info"=>["flavor=osc;version:11.1.7;goiardi=0.11.5"],
 "x-ops-server-api-version"=>["0"],
 "strict-transport-security"=>["max-age=63072000; includeSubDomains; preload"],
 "x-frame-options"=>["DENY"],
 "x-content-type-options"=>["nosniff"]}

from goiardi.

ctdk avatar ctdk commented on May 26, 2024

Well then, I guess I shouldn't have added that API version header, eh? It seemed like it would be a "not essential, but good to have" thing to have around, but since it was always kind of decorative it should get yanked out until such time as I finally finish 12+ compat. (I swear, I still plan on doing so, but there's been a combination of other things coming up, not feeling at my best more lately, and somehow having found myself not actually strongly needing organizations, but it's actually fairly close.) I'll test this out and should have a fix turned around shortly.

from goiardi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.