Commit Graph

3607 Commits

Author SHA1 Message Date
Jens Geyer
ec439548c5 THRIFT-4990 Switch to .NET core 3.0
Client: netstsd
Patch: Jens Geyer

This closes #1909
2019-11-02 17:34:23 +01:00
Jens Geyer
9ea48f362a Fix PHP style errors (by means of phpcbf) [ci skip] 2019-11-02 12:24:12 +01:00
Yuxuan 'fishy' Wang
e4870a3571 THRIFT-4985: Refactor logging in Go library
- Add a new Logger type to make logging configurable
- Use the new logger in TSimpleServer and TDebugProtocol
- Remove pointless log in TZlibTransport
- Remove panic recovery from TSimpleServer. Thrift shouldn't catch panics caused by caller-defined RPC handlers.

Client: go

This closes #1906.
2019-10-24 21:23:30 +01:00
Yuxuan 'fishy' Wang
c03e2aa196 THRIFT-4984: Ignore EOF error in TSimpleServer ReadFrame call
EOF isn't an error that should be bubbled up to the 
caller and we are already ignoring other EOF errors in 
TSimpleServer.processRequest [0].

Client: go

This closes #1904.

[0]: cecee50308/lib/go/thrift/simple_server.go (L265-L266)
2019-10-23 21:43:09 +01:00
pengzhouhu
6e4c581fdd THRIFT-4949: Improve HTTP/1 server test case
Client: java

This closes #1886.
2019-10-21 15:21:11 +01:00
Jens Geyer
3f3567a114 THRIFT-4981 Remove deprecated netcore bindings from the code base
Client: netcore
Patch: Jens Geyer

This closes #1901
2019-10-20 16:21:29 +02:00
Jens Geyer
616df98f00 fix veralign.sh and bump version (again) 2019-10-20 00:12:14 +02:00
D. Can Celasun
76fa8c9a81
Update Java dependencies
Update most dependencies to their latest versions, replace findbugs with
spotbugs as the former is dead and was replaced with the latter.

Fixes THRIFT-4937.

Client: java
2019-10-18 15:15:45 +01:00
pengzhouhu
9f0548e05f THRIFT-4952 Modified ssl_read feedback value break all the time error.
Client: c_glib
Patch: pengzhouhu <pengzhouhu@huawei.com>

This closes #1869
2019-10-18 00:26:47 +02:00
Jens Geyer
5fe31ea7d7 bump version 2019-10-17 23:51:36 +02:00
Jens Geyer
4286054d3d Merge branch '0.13.0' 2019-10-17 23:49:41 +02:00
Jens Geyer
b75e88a33d FIX netstd assembly version 2019-10-17 23:47:40 +02:00
Jens Geyer
dd14e869ce Fix PHP style errors (by means of phpcbf) 2019-10-17 20:54:34 +02:00
Jens Geyer
e02559fd46 bump version
This closes #1899
2019-10-17 20:31:24 +02:00
Mario Emmenlauer
0f14e2f3f6 THRIFT-4977: Allow loading OpenSSL certificates from memory
Client: cpp

This closes #1860.
2019-10-15 10:25:10 +01:00
wineandcheeze
ab89b8b40e THRIFT-2530: Fix TIOStreamTransport#isOpen
isOpen should return false when close is called.

Client: java

This closes #1878.
2019-10-10 12:50:50 +01:00
Jens Geyer
224b43ec7e THRIFT-4874: Thrift 0.12.0 Source Distribution (.tar.gz) Contains Hardlinks - Extract Fails
Client: Build system
Patch: Jens Geyer

This closes #1894

The patch contains a modified version of tar.m4. The --hard-dereference option prevents from a situation, where symlinks (used in the compiler/src subtree) get converted into hard links.
2019-10-10 01:28:55 +02:00
wineandcheeze
904f5619a9 THRIFT-4858: Add error message to TTransportException
When the socket is closed (EOF of the inputstream), currently
TIOStreamTransport throws an TTransportException without message,
this is sometimes confusing for people maintaining a thrift server
(eg. apache hive).

Client: java

This closes #1876.
2019-10-09 09:27:23 +01:00
pengzhouhu
a152a0ad88 THRIFT-4945: Fix non-standard log output
Client: java

This closes #1862.
2019-10-08 23:18:30 +01:00
HIRANO Satoshi
8098428901 Add Node.js example for browsers
Client: js

This closes #1864.
2019-10-08 23:06:30 +01:00
Ben Evans
dfa74bc99e Upgrade to Gradle 5.6.2
This closes #1882.
2019-10-08 22:54:08 +01:00
Kengo Seki
5a8cd9d1fb THRIFT-4971: Fix lib/rb/spec/union_spec.rb so that CI succeeds
Client: Ruby
Patch: Kengo Seki

This closes #1891
2019-10-06 12:17:19 +02:00
Allen George
786c019476
Merge pull request #1870 from dbcfd/thrift-4953
THRIFT-4953: Missing Field Identifiers
2019-09-23 08:41:30 -04:00
pengzhouhu
2d03630b61 THRIFT-4950 fix bind print error and Macro call errors thrift_server_socket
Client: C_glib
Patch: pengzhouhu

This closes #1867
2019-09-22 11:38:29 +02:00
Guillaume Blanc
5e9203b2b2 THRIFT-4962 Fix deadlock in TimerManager::stop
Client: cpp
Author: Guillaume Blanc

This closes #1877
2019-09-21 14:40:15 +02:00
Ewan Higgs
b3745eea10 THRIFT-4932: Using a default string on a binary field results in invalid Java code.
Client: Java
Patch: Ewan Higgs

This closes #1875.
2019-09-20 16:15:04 +01:00
Danny Browning
77d96c18c3 THRIFT-4960 bare trait (dyn) warnings
Client: Rust
Patch: Danny Browning

This closes #1851
2019-09-11 23:35:26 +02:00
Vladimir Arkhipov
f1bc6aef7d Fix typo in xml comment
Client: C#
Patch: Vladimir Arkhipov

This closes #1874
2019-09-11 23:11:46 +02:00
Jens Geyer
b7bd211699 Prevent "Log file size too large" messages during CI tests 2019-09-11 22:52:40 +02:00
Jens Geyer
8ff8abd6f2 THRIFT-4957 testSanePartsOfCompactProtoTestStruct FAILED
Client: Java
Patch: Jens Geyer

This closes #1873
2019-09-11 00:41:49 +02:00
Danny Browning
236032a8af THRIFT-4953: Missing Field Identifiers
When identifiers are not specified, negative id will be converted to a valid
rust identifier.
2019-09-06 10:40:53 -06:00
Danny Browning
942bd8403b Bare Trait Warnings
Fixes bare trait (dyn) warnings in the library as well as generated code.
2019-09-06 10:28:24 -06:00
Jens Geyer
a715f701bf THRIFT-4944 Field IDs > 255 fail with compact protocol
Cliwent: Delphi
Patch: Jens Geyer
2019-08-28 22:56:35 +02:00
Jens Geyer
a4fc3d42e9 THRIFT-4907 strong named assemblies wanted
Client: netstd
Patch: Jens Geyer

This closes #1854
2019-08-25 14:04:58 +02:00
Alex-Rud
693e19cf48 THRIFT-4939 TThriftListImpl<T>.Sort() does not use comparer
Client: Delphi
Patch: Alex-Rud <Alex.van.rudik@gmail.com>
2019-08-25 00:20:55 +02:00
Issacpeng
81f5e10ec4 THRIFT-4865:Replace expired Charsets with StandardCharsets
Client: Java
Patch: Issacpeng <pengzhouhu@huawei.com>

This closes #1846
2019-08-24 16:13:34 +02:00
pengzhouhu
2ff4b13df4 THRIFT-4936 add depth limit type exception description
Client: C++
Patch: pengzhouhu

This closes #1852
2019-08-22 22:43:15 +02:00
Jens Geyer
9cf37be1f1 THRIFT-4919 THttpTransport.cs (netstd) and THttpClientTransport (netcore) have bad timeout code
Patch: Jens Geyer

This closes #1847
2019-08-20 21:28:38 +02:00
Yuxuan 'fishy' Wang
26ef904600 THRIFT-4914: Send context THeaders for client writes
Client: go

This is the second part of THRIFT-4914, which handles the client writing
part in the requests (client -> server direction).

In TStandardClient, when the context has write headers set, and the
protocol is THeaderProtocol, automatically extract all headers from the
context object and set to THeaderProtocol to send over the wire.

Client code can set headers into the context object by using the helper
functions in header_context.go.

Note that we have separated keys for read and write header key list, so
that for code that's both a server and a client (example: a server that
calls other upstream thrift servers), they don't automatically forward
all headers to their upstream servers, and need to explicitly set which
headers to forward.

In order to make auto forwarding easier, also add SetForwardHeaders
function to TSimpleServer, which will help the users to auto forward
selected headers.

This closes #1845.
2019-08-19 08:18:22 +01:00
Yuxuan 'fishy' Wang
b1002a71fb THRIFT-4914: Add THeader to context for server reads
Client: go

This is the first part of THRIFT-4914, which handles the server reading
part in the requests (client -> server direction).

In TSimpleServer, when the protocol is THeaderProtocol automatically
add all present headers into the context object before passing
it to processor, so the processor code can access headers from the
context directly by using the new helper functions added in
header_context.go.

This closes #1840.
2019-08-05 21:03:02 +01:00
Yuxuan 'fishy' Wang
6ae2b189ef THRIFT-4612: Avoid double wrapping THeaderTransport
Client: go

Previously the library didn't check against double wrapping, so when
NewTSimpleServerN was used with both THeaderTransportFactory and
THeaderProtocolFactory, inside THeaderProtocolFactory the transport 
was double wrapped with THeaderTransport.

Worse, the transport still appeared to work, because THeaderTransport 
is backwards compatible with TBinaryProtocol and TCompactProtocol
so the outer layer of THeaderTransport wrapper (the one directly accessible 
from the protocol) would assume the client doesn't support THeader and 
fallback. So when double wrapping happened, it appeared like everything 
was fine, except you couldn't get the headers from the protocol (because 
they were in the inner THeaderTransport, not the outer one that's directly 
accessible from the protocol), making it very hard to debug.

This commit adds protection against such double wrapping.

This closes #1839.
2019-08-05 12:59:08 +01:00
Craig Wickesser
bb311a772e Add pointer helpers for missing types 2019-07-27 16:48:57 -04:00
Yuxuan 'fishy' Wang
ebb6b2ed68 THRIFT-4612: Add THeaderTransportFactory to go library
Client: go

This was supposed to be in 4d46c11, but was forgotten.

Closes #1832.
2019-07-24 16:42:06 +01:00
guozhu cheng
4c847372eb THRIFT-4908: remove reader&writer in Golang's TBinaryProtocol
Client: go

This closes #1831.
2019-07-15 12:46:25 +01:00
Beluga Behr
286eee16b1 THRIFT-4849: Do not Ignore InterruptedException 2019-07-08 13:07:04 -04:00
fmalaguti
234e80e1b9 THRIFT-4844: createConnection ignores connect_timeout option 2019-07-08 13:06:21 -04:00
James E. King III
178891f7d6 THRIFT-4805: Fixed readme files 2019-07-08 09:56:59 -04:00
Mithun RK
c35ed736d2 THRIFT-4805: Suppress excessive logging of SASL TTransportExceptions in case of END_OF_FILE
Two fixes here:

1. Additional logic to properly catch and handle TTransportException.
   Currently, T(SASL)TransportException gets caught and handled in
   the wrong catch-block.
2. The fix for THRIFT-3769 mutes _all_ TTransportExceptions in TThreadPoolServer.
   This might mute legitimate failures. The intent of THRIFT-3769 (and
   THRIFT-2268) was to mute the noise caused by TTransportException.END_OF_FILE.
   This commit lets legitimate failures to be bubbled upwards.
2019-07-08 09:56:59 -04:00
Antoine Cœur
08a6eb6e1f THRIFT-4902: Swift 4 and 5 compatibility (#1827) 2019-07-08 06:42:09 -04:00
James E. King III
3131fe975c THRIFT-4904: Fix python unit test errors and exception escapes
Due to the way SSL layers on top of sockets, it was possible
to complete a connection and then have the server close it.
This would happen if the client is not checking certificates
but the server is.  The TSSLSocket unit test was enhanced to
do a read and a write as well as just connecting to ensure a
more complete test.

The TSocket read() and write() calls were leaking OSError,
socker.error, and ssl.Error exceptions.  These cases are now
wrapped into a TTransportException of the appropriate type,
and the original exception is added as an argument named inner.
2019-07-07 12:16:52 -04:00