Issue #4456 has been updated by Luke Kanies.

Status changed from Needs design decision to Accepted
Assigned to deleted (Luke Kanies)
Priority changed from Normal to High


----------------------------------------
Bug #4456: REST doesn't honor requested mime types
http://projects.puppetlabs.com/issues/4456

Author: Jiří Kubíček
Status: Accepted
Priority: High
Assigned to: 
Category: plumbing
Target version: 
Affected version: 
Keywords: REST MIME YAML
Branch: 


One can request data from puppet via REST like:

curl -k -H "Accept: yaml" 
https://puppet.domain.com:8140/production/facts/server.domain.com

But IMHO there is no mime-type called yaml and puppet doesn't honor yaml mime 
types and that causes problems for example with rest-client library, that uses 
standard mime format:

RestClient.get 
'https://puppet.domain.com:8140/production/facts/server.domain.com', {:accept 
=> :yaml}
err: No specified acceptable formats (text/x-yaml) are functional on this 
machine

I think puppet should handle all types "application/x-yaml", 
"application/yaml", "text/x-yaml" and "text/yaml" as it currently does with 
"yaml"




-- 
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.

Reply via email to