seancribbs/ripple — Issue #222: Invalid Link Header
Author: saarons
Created: 2011-10-12 20:02:41+00:00
State: open

On the latest version of ripple (a4257396a1), I'm receiving the following error:

Expected [200, 204, 300] from Riak but received 400. Invalid Link header. Links must be of the form
; riaktag="TAG"
(Riak::HTTPFailedRequest)
~/Downloads/ripple/riak-client/lib/riak/client/excon_backend.rb:51:in `perform'
~/Downloads/ripple/riak-client/lib/riak/client/http_backend/transport_methods.rb:65:in `put'
~/Downloads/ripple/riak-client/lib/riak/client/http_backend.rb:90:in `store_object'
~/Downloads/ripple/riak-client/lib/riak/robject.rb:159:in `store'
~/Downloads/ripple/ripple/lib/ripple/document/persistence.rb:64:in `really_save'
~/Downloads/ripple/ripple/lib/ripple/attribute_methods/dirty.rb:12:in `really_save'
~/Downloads/ripple/ripple/lib/ripple/callbacks.rb:45:in `block in really_save'
~/Downloads/ripple/ripple/lib/ripple/callbacks.rb:53:in `block (2 levels) in run_save_callbacks'
~/Downloads/ripple/ripple/lib/ripple/associations.rb:184:in `run_callbacks'
~/Downloads/ripple/ripple/lib/ripple/callbacks.rb:52:in `block in run_save_callbacks'
~/Downloads/ripple/ripple/lib/ripple/associations.rb:184:in `run_callbacks'
~/Downloads/ripple/ripple/lib/ripple/callbacks.rb:51:in `run_save_callbacks'
~/Downloads/ripple/ripple/lib/ripple/callbacks.rb:44:in `really_save'
~/Downloads/ripple/ripple/lib/ripple/document/persistence.rb:59:in `save'
~/Downloads/ripple/ripple/lib/ripple/validations.rb:49:in `save'
~/Downloads/ripple/ripple/lib/ripple/validations.rb:55:in `save!'

From what I can tell in the Riak source (riak_kv_wm_object.erl:340), there is a different format for links when using api version 2. Will links in ripple be updated to support the new format?