anchor.diff:              case chef_db:update(ObjectRec, DbContext, ActorId) of
                   ok ->
                       IsRename = chef_object:name(OrigObjectRec) =/= chef_object:name(ObjectRec),
  -                    Req1 = handle_rename(ObjectRec, Req, IsRename),
  +                    Req1 = handle_rename(ObjectRec, Req, State, IsRename),
                       {true, chef_wm_util:set_json_body(Req1, ObjectEjson), State};
                   not_found ->
                       %% We will get this if no rows were affected by the query. This could
  
positive.code:             erlang:apply(DefaultFun, Args)
      end.
  
  
  route_args(ObjectRec,_State) ->
          TypeName = chef_object:type_name(ObjectRec),
          {TypeName, [{name, chef_object:name(ObjectRec)}]}.
  
  
  
  
  
negative.code:             %% FIXME: created authz_id is leaked for this case, cleanup?
              oc_chef_object_db:delete_from_solr(ObjectRec),
              object_creation_error_hook(ObjectRec, ActorId),
              % 500 logging sanitizes responses to avoid exposing sensitive data -
              % TODO - parse sql error to get minimal meaningful message,
              % without exposing sensitive data
              {{halt, 500}, Req, State#base_state{log_msg = What}}
      end.
  
  