Commit Graph

5786 Commits

Author SHA1 Message Date
HIRANO Satoshi
8098428901 Add Node.js example for browsers
Client: js

This closes #1864.
2019-10-08 23:06:30 +01:00
Pure White
d4c6b5632f Fix typo in IDL specs
This closes #1880.
2019-10-08 22:59:10 +01:00
Kengo Seki
caf8904913 THRIFT-4969: PHP test doesn't check the code generation with php:classmap
Client: php

This closes #1889.
2019-10-08 22:57:53 +01:00
Ben Evans
dfa74bc99e Upgrade to Gradle 5.6.2
This closes #1882.
2019-10-08 22:54:08 +01:00
Kengo Seki
3b5c40c6ea THRIFT-4970: PHP tutorial doesn't work with Thrift v0.12.0+
Client: php

This closes #1890.
2019-10-08 22:53:14 +01:00
Elvis Pranskevichus
ec8c7c419b THRIFT-4920: Fix generation of binary string constants
Currently, the thrift compiler generates regular string literals for
string constants marked as `binary`.  This makes the resulting type
inconsistent under Python 3.

Client: python

This closes #1843.
2019-10-08 22:51:19 +01:00
Qinghui Xu
17424372f3 THRIFT-4966: Ignore generated files
Client: Build Process
Patch: Qinghui Xu

This closes #1886
2019-10-06 12:21:52 +02:00
Kengo Seki
fd2acd1521 THRIFT-4968: Makefile.am in the Ruby tutorial refers to Python directory
Client: Ruby
Patch: Kengo Seki

This closes #1888
2019-10-06 12:19:16 +02: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
Kengo Seki
d1ccd0a08f THRIFT-4965: Perl tutorial server doesn't work due to the lack of use statement
Client: Perl

This closes #1885.
2019-10-02 00:15:44 +01:00
Kengo Seki
4a97457a98 Fix wrong command examples in build/docker/README.md
[skip ci]

This closes #1883.
2019-09-30 12:28:11 +01: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
Jens Geyer
2a95441275 FIX: minor spelling issue at http://thrift.apache.org/docs/committers/HowToCommit 2019-09-22 11:04:07 +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
061eafb1fa THRIFT-4955 Haskell test broken due to extension to CompactProtoTestStruct
Client: Haskell
Patch: Jens Geyer

This closes #1872
2019-09-11 22:53:12 +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
Jens Geyer
44fcfabc37 Pull-Request template not clear enough at step 2 2019-08-23 09:00:02 +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
9027a728ee
Merge pull request #1848 from Issacpeng/modifyDoc
THRIFT-4933 Java build mode is incorrect in doc/install
2019-08-21 22:03:05 +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
Issacpeng
8c7ab5f7c2 THRIFT-4933 Java build mode is incorrect in doc/install 2019-08-20 16:01:58 +08: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
Laeeth Isharc
74d6d9d3d6 Initialisation of immutable data in static constructors has been
deprecated.  They now need to be initialised in shared static
constructors.

This change brings the generator for D up to date with the latest
version of the compiler, but it should continue to work with older
versions.
2019-08-11 07:54:36 -04:00
Robert Schadek
3e95c533be THRIFT-4918: Avoid dlang name conflicts
Client: dlang

Currently Thrift generates members that are invalid for D because
they are D reserved words. This change fixes the problem by 
appending a '_' to such names.

This closes #1842.
2019-08-07 09:04:46 +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
James E. King III
90a0446598 Added an Ubuntu Disco 19.04 dockerfile for testing [ci skip] 2019-07-23 22:50:28 -04: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
James E. King III
f34b50fdc5 Add a coverity scan utility build script [ci skip] 2019-07-15 07:04:35 -04:00
James E. King III
49aab657b9
Update the versioning description [ci skip] 2019-07-11 06:55:28 -04: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
Matt Kantor
f9435643d7 Fix a typo in README.md.
The crate is named `ordered-float`, not `ordered_float`.
2019-07-07 12:18:30 -04:00
James E. King III
08fea1640e Mark some csharp-erl, erl-csharp ssl tests as known issues.
The latest ssl (9.3) in erl does not support TLSv1.0 or TLSv1.1
by default and cross tests are failing.  Since csharp was
deprecated in favor of netstd, ignoring it.
2019-07-07 12:16:52 -04:00