Issue #2392 has been updated by James Turnbull.

Status changed from Accepted to Closed

Pushed in commit:"1e83aadc749aea9d52281d4f4041f6144a7229c7" in branch master.
----------------------------------------
Bug #2392: Client sends yaml and server expects marshal
http://projects.reductivelabs.com/issues/2392

Author: Jordan Curzon
Status: Closed
Priority: Normal
Assigned to: 
Category: plumbing
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


Here is a capture of the client putting marshal first on the accept line but 
the body of the post is in Yaml. The server exception it causes is at the 
bottom. If the client wants a certain format should it be able to PUT data in a 
different format? Or should the client be required to always receive data in 
the same format that it used to send data? 

<pre>
PUT /production/report/puppetclient.curzons.net HTTP/1.1
Host: puppet:8140
Accept: marshal, yaml, raw
Content-Type: application/x-www-form-urlencoded
X-Client-DN: /CN=puppetclient.curzons.net
X-Client-Verify: SUCCESS
X-Forwarded-For: 10.157.0.102
X-Forwarded-Host: puppet:8140
X-Forwarded-Server: puppetmasterd.curzons.net
Connection: Keep-Alive
Content-Length: 3721

--- !ruby/object:Puppet::Transaction::Report 
host: puppetclient.curzons.net
logs: 
- !ruby/object:Puppet::Util::Log 
  level: :debug
  message: requires File[/opt/testing/puppet/modularclientscripts]
  source: //Node[puppetclient]/sudo/File[scripts_bootloader]/require
  tags: 
  - debug
  time: 2009-07-04 11:54:24.584796 +00:00

  ........ (Full request trace attached)
</pre>

This exception is caused by Marshal trying to read Yaml data.

<pre>
/opt/puppet/lib/puppet/network/formats.rb:46:in `load'
/opt/puppet/lib/puppet/network/formats.rb:46:in `intern'
/opt/puppet/lib/puppet/network/format_handler.rb:13:in `send'
/opt/puppet/lib/puppet/network/format_handler.rb:13:in `protect'
/opt/puppet/lib/puppet/network/format_handler.rb:28:in `intern'
/opt/puppet/lib/puppet/network/format_handler.rb:79:in `convert_from'
/opt/puppet/lib/puppet/network/http/handler.rb:121:in `do_save'
/opt/puppet/lib/puppet/network/http/handler.rb:47:in `send'
/opt/puppet/lib/puppet/network/http/handler.rb:47:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/opt/puppet/lib/puppet/network/http/mongrel.rb:22:in `listen'
/opt/puppet/lib/puppet/network/server.rb:131:in `listen'
/opt/puppet/lib/puppet/network/server.rb:146:in `start'
/opt/puppet/lib/puppet/daemon.rb:128:in `start'
/opt/puppet/lib/puppet/application/puppetmasterd.rb:96:in `main'
/opt/puppet/lib/puppet/application.rb:226:in `send'
/opt/puppet/lib/puppet/application.rb:226:in `run_command'
/opt/puppet/lib/puppet/application.rb:217:in `run'
/opt/puppet/sbin/puppetmasterd:66
err: Could not intern from marshal: incompatible marshal file format (can't be 
read)
        format version 4.8 required; 35.60 given
</pre>


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

Reply via email to