This is an automated email from the ASF dual-hosted git repository.
Jens-G pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
from 7e288b753 THRIFT-6143: Normalize Ruby integer writer argument errors
(#4027)
add 457f0bb0b Report malformed JSON strings as a protocol error, not a raw
Python error Client: py
add ecaa4054f Drop one client instead of ending the server when the task
queue rejects it Client: cpp
add 8a1f502e8 Reject empty input in TSimpleJSONProtocol.ReadBool like its
siblings Client: go
add e279e01f3 Stop the JSON number reader at the end of the input Client:
py
add 7ea800019 Fill the per-read scratch buffer from index zero in the Haxe
transports Client: haxe
add 1c9c809e2 Release the application-exception object when its body fails
to read Client: php
No new revisions were added by this update.
Summary of changes:
lib/cpp/src/thrift/server/TThreadPoolServer.cpp | 21 +-
lib/cpp/test/TServerIntegrationTest.cpp | 232 +++++++++++++++++++++
lib/go/thrift/simple_json_protocol.go | 3 +
lib/go/thrift/simple_json_protocol_test.go | 11 +
.../apache/thrift/transport/TBufferedTransport.hx | 3 +-
.../apache/thrift/transport/TFramedTransport.hx | 8 +-
.../src/org/apache/thrift/transport/THttpClient.hx | 4 +-
.../apache/thrift/transport/TStreamTransport.hx | 4 +-
lib/haxe/test/src/Main.hx | 2 +
.../test/src/tests/TransportPartialReadTest.hx | 226 ++++++++++++++++++++
.../ext/thrift_protocol/php_thrift_protocol.cpp | 23 +-
.../tests/exception_read_cleanup.phpt | 121 +++++++++++
lib/py/Makefile.am | 4 +
lib/py/src/protocol/TJSONProtocol.py | 132 +++++++-----
lib/py/test/test_json_numeric_eof.py | 185 ++++++++++++++++
lib/py/test/test_json_protocol_malformed.py | 88 ++++++++
16 files changed, 1001 insertions(+), 66 deletions(-)
create mode 100644 lib/haxe/test/src/tests/TransportPartialReadTest.hx
create mode 100644
lib/php/src/ext/thrift_protocol/tests/exception_read_cleanup.phpt
create mode 100644 lib/py/test/test_json_numeric_eof.py
create mode 100644 lib/py/test/test_json_protocol_malformed.py