-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Standard GitHub labelIssue caused by core project dependency modules or libraryIssue caused by core project dependency modules or librarybugSomething isn't workingSomething isn't working
Description
When constructing a serialized request body, the body is empty because of these lines here:
writer = request_adapter.get_serialization_writer_factory().get_serialization_writer(content_type)
@headers.try_add(@@content_type_header, content_type)
if values != nil && values.kind_of?(Array)
writer.write_collection_of_object_values(nil, values)
else
writer.write_object_value(nil, values);
end
this.content = writer.get_serialized_content();The calls to writer.write_collection_of_object_values and writer.write_object_value with a nil key will return a new writer object, thus this.content = writer.get_serialized_content(); will be empty because it doesn't get written to the original writer.
The new writer objects are constructed here:
def write_object_value(key, value)
if value
if !key
temp = JsonSerializationWriter.new()
value.serialize(temp)
return temp
end
begin
temp = JsonSerializationWriter.new()
value.serialize(temp)
@writer[key] = temp.writer
rescue StandardError => e
raise e.class, "no key or value included in write_boolean_value(key, value)"
end
end
endand here:
meziantou, heqianwang, PrincessMadMath, itay-grudev and Kernael
Metadata
Metadata
Assignees
Labels
Standard GitHub labelIssue caused by core project dependency modules or libraryIssue caused by core project dependency modules or librarybugSomething isn't workingSomething isn't working