Commit Graph

2831 Commits

Author SHA1 Message Date
Nobuaki Sukegawa
ef2b5285f3 THRIFT-3145 JSON protocol does not handle bool and empty containers correctly
Client: Haskell
Patch: Nobuaki Sukegawa

Fix bool and empty map and add test

This closes #740
2015-12-13 14:07:27 +09:00
Rhys Adams
f48e339cc9 THRIFT-3145 JSON protocol does not handle bool and empty containers correctly
Client: Haskell
Patch: Rhys Adams

Fix deserialization of empty list and set.
2015-12-13 14:07:17 +09:00
Nobuaki Sukegawa
dfb6896436 THRIFT-3483 Incorrect empty binary handling introduced by THRIFT-3359
Client: C++, Node.js
Patch: Nobuaki Sukegawa

This closes #737
2015-12-11 00:19:09 +09:00
Nobuaki Sukegawa
7c7d679a12 THRIFT-3433 Doubles aren't interpreted correctly
Client: Haskell
Patch: Nobuaki Sukegawa

This closes #736
2015-12-11 00:18:01 +09:00
Tom Lee
4f6138b7a2 THRIFT-3484 Consolidate temporary buffers in Java's TCompactProtocol
Client: Java
Patch: Tom Lee

This closes #738
2015-12-11 00:18:01 +09:00
Tom Lee
9d0f752abc THRIFT-3432 Add the TByteBuffer transport for Java
Client: Java
Patch: Tom Lee

This closes #705
2015-12-11 00:18:01 +09:00
Keith Turner
3143bfbe15 THRIFT-3478 restore method to THsHaServer
This closes #735
2015-12-08 20:11:20 +01:00
HIRANO Satoshi
84cf363eee THRIFT-3328 A callback is not called when a server is down.
https://issues.apache.org/jira/browse/THRIFT-3328
2015-12-07 23:14:13 +01:00
Tom Lee
9caf6d63c6 THRIFT-3435 Separate package for fullcamel thrift
Client: Java Test
Patch: Tom Lee

This closes #708
2015-12-06 10:11:19 +09:00
Nobuaki Sukegawa
ba3fe86b0a THRIFT-3464 Fix several defects in c_glib code generator
Client: c_glib compiler
Patch: Nobuaki Sukegawa

This closes #724
2015-12-06 10:11:16 +09:00
Nobuaki Sukegawa
362a5eda21 THRIFT-3455 struct write method's return value is incorrect
Client: c_glib Compiler
Patch: Nobuaki Sukegawa
2015-12-04 00:38:33 +09:00
Mark Erickson
dd89dce84b THRIFT-3468 Dart TSocketTransport onError handler is too restrictive
Client: Dart
Patch: Mark Erickson

This closes #728
2015-12-02 21:50:11 +01:00
Nikolay Tolstokulakov
620e7a893a THRIFT-3456 rounding issue in static assert
Client: D
Patch: Nikolay Tolstokulakov

This closes #726
2015-12-02 21:41:58 +01:00
Jens Geyer
0d227b1a79 THRIFT-3470 Sporadic timeouts with pipes
Client: Delphi
Patch: Jens Geyer
2015-12-02 19:53:42 +01:00
Nobuaki Sukegawa
f56b90772f THRIFT-3444 Large 64 bit Integer does not preserve value through Node.js JSONProtocol
Client: Node.js
Patch: Nobuaki Sukegawa

This closes #712
2015-12-02 02:03:59 +09:00
Atsushi Takayama
aede97523d THRIFT-3318 PHP: SimpleJSONProtocol Implementation
Client: PHP
Patch: Atsushi Takayama

This closes #602
2015-12-02 02:03:53 +09:00
Nikolay Tolstokulakov
56c1dde145 THRIFT-3456 rounding issue in static assert
Client: D
Patch: Nikolay Tolstokulakov

This closes #720
2015-11-30 22:14:44 +01:00
Roger Meier
54a2e6452f THRIFT-3206 Fix Visual Studio build failure due 'pthread_self': identifier not found
Patch:  Paweł Janicki
2015-11-29 16:58:15 +01:00
Roger Meier
a43063caac THRIFT-3451 thrift_protocol PHP extension missing config.m4 file
This closes #718
2015-11-28 13:41:30 +01:00
Nobuaki Sukegawa
e841b3dac6 THRIFT-162 Thrift structures are unhashable, preventing them from being used as set elements
Client: Python
Patch: David Reiss, Nobuaki Sukegawa

This closes #714
2015-11-28 00:08:07 +01:00
Nobuaki Sukegawa
b9641e0949 THRIFT-3450 NPE when using SSL
This closes #717
2015-11-27 23:32:40 +01:00
Андрей Веселов
547909933c THRIFT-3087 Pass on errors like "connection closed"
Client: Erlang
Patch: Андрей Веселов and Nobuaki Sukegawa

This closes #599
2015-11-27 00:08:27 +09:00
Nobuaki Sukegawa
e8c71d8cc9 THRIFT-3442 Run CMake tests on Appveyor
Client: Test
Patch: Nobuaki Sukegawa

This closes #713
2015-11-23 22:45:25 +09:00
Phongphan Phuttha
69826b21ec THRIFT-2410: Add UTF-16 to UTF-8 converter and use for convert the escaped unicode character to UTF-8 byte array.
Client: Java ME
Patch: Phongphan Phuttha

This closes #702
2015-11-23 17:09:27 +09:00
Martin Haimberger
0ad6ee95e0 THRIFT-3420 C++: TSSLSockets are not interruptable
Client: C++
Patch: Martin Haimberger

This closes #690
2015-11-23 17:09:27 +09:00
David Robakowski
ae971ce917 THRIFT-2110 Erlang: Support for Multiplexing Services on any Transport, Protocol and Server
Client: Erlang
Patch: David Robakowski rebased by Nobuaki Sukegawa

Modification: Return value fix in thrift_client uncovered by added tests
2015-11-23 17:07:10 +09:00
Nobuaki Sukegawa
ca93936e78 THRIFT-3424 Add CMake android build option
Client: Build
Patch: Nobuaki Sukegawa

This closes #696
2015-11-23 16:59:10 +09:00
Justin Larrabee
bbb8f5c46b THRIFT-3430 Go THttpClient does not read HTTP response body to completion when closing
Client: Go
Patch: Justin Larrabee

This closes #703
2015-11-19 21:34:43 +01:00
Justin Larrabee
13ac77daf0 THttpClient now utilizes a package level shared HTTP client and optionally allows users of the library to specify one. 2015-11-17 22:44:26 +01:00
Nobuaki Sukegawa
8551f3f53d Revert part of 7f404fdef2
unichr does not work for code point > 0x10000 on ucs2 build
2015-11-15 16:33:55 +09:00
Nobuaki Sukegawa
6defea5f7b THRIFT-3200 JS and nodejs do not encode JSON protocol binary fields as base64
Client: Javascript
Patch: Nobuaki Sukegawa

This closes #698
2015-11-15 14:00:18 +09:00
Nobuaki Sukegawa
bc7e480d0f THRIFT-3350 Python JSON protocol does not encode binary as Base64
Client: Python
Patch: Nobuaki Sukegawa

This closes #697
2015-11-15 14:00:18 +09:00
Nobuaki Sukegawa
97a48988de THRIFT-3423 First call to thrift_transport:read_exact fails to dispatch correct function
Client: Erlang
Patch: Nobuaki Sukegawa

This closes #694
2015-11-15 14:00:18 +09:00
Nobuaki Sukegawa
7f404fdef2 Run test for THRIFT-2413
Slightly simplify _toChar method too.

This closes #695
2015-11-15 14:00:18 +09:00
Roger Meier
c7b3086665 THRIFT-3421 rebar as dependency instead of bundling
This closes #693
2015-11-14 17:24:11 +01:00
Mark Sonnabaum
a6b120301a THRIFT-3422 Fixed Go's TServerSocket not closing socket on Interrupt.
Client: Go
Patch: Mark Sonnabaum <mark@sonnabaum.com>

This closes #692
2015-11-14 13:37:46 +01:00
Maxime Mouial
622ef03f1b THRIFT-3309: Missing TConstant.php in /lib/php/Makefile.am
The file lib/php/lib/Thrift/Type/TConstant.php is missing from the php
Makefile. Therefore "make install" don't copy the TConstant.php file.

This closes #689
2015-11-14 11:04:01 +01:00
Roshan George
75d879ab47 THRIFT-3158 Make deepcopy return T
Client: Java
Patch: Roshan George

This closes #499
2015-11-14 17:06:52 +09:00
Roshan George
c2d4c77c5a THRIFT-3157 Make TBase signature more explicit
Client: Java
Patch: Roshan George

This closes #498
2015-11-14 17:06:30 +09:00
Phongphan Phuttha
369d62e5e9 THRIFT-2413 Add JSON escaped unicode support for python3.
Client: Python
Patch: Phongphan Phuttha

This closes #686
2015-11-14 17:03:57 +09:00
Konrad Grochowski
517aa1491b THRIFT-3415 - C++: THeader*.h/cpp includes cleanup
Client: C++
Patch: Konrad Grochowski

Used iwyu (Include-What-You-Use) to cleanup list of includes used by
THeader* files

unistd.h is not used at all - removed completely
2015-11-12 16:37:58 +01:00
Phongphan Phuttha
90ea4f64c1 THRIFT-2779: Always write unescaped JSON unicode string.
Client: PHP
Patch: Phongphan Phuttha

This closes #666
2015-11-11 00:32:55 +09:00
Pascal Bach
317d515428 THRIFT-3414 #include <pwd.h> in THeaderTransport.h breaks windows build
Client: C++
Patch: Pascal Bach
2015-11-11 00:31:48 +09:00
Phongphan Phuttha
7f01e2a8f8 THRIFT-2413: UTF-8 sent by PHP as JSON is not understood by TJsonProtocol
Client: Python
Patch: Phongphan Phuttha

This patch allows readJSONString to decode escaped unicode string including encoded surrogate pair.

This closes #673
2015-11-09 02:34:28 +09:00
Joe Ennever
5b15f8c55f THRIFT-3307 Raise an error when trying to serialize a union with an incorrect set_field
Client: Ruby
Patch: Joe Ennever

This closes #597
2015-11-09 00:02:23 +09:00
Claudius Heine
d8ddb775e4 THRIFT-1522: Fixes Memory leak by wrapping getaddrinfo into a class.
Client: C++
Patch: Claudius Heine

Sponsored-by: Roger Meier <r.meier@siemens.com>
Signed-off-by: Claudius Heine <ch@denx.de>

This closes #542
2015-11-09 00:02:18 +09:00
Nobuaki Sukegawa
8a4d06febe THRIFT-3409 NodeJS binary field issues
Client: Node.js
Patch: Nobuaki Sukegawa

This closes #681
2015-11-06 21:25:25 +09:00
Nobuaki Sukegawa
a185d7e785 THRIFT-1857 Python 3 Support
Client: Python
Patch: Nobuaki Sukegawa

Add py3 cross test
2015-11-06 21:24:24 +09:00
Nobuaki Sukegawa
760511f59b THRIFT-1857 Python 3 Support
Client: Python
Patch: Thomas Bartelmess, Eevee (Alex Munroe), helgridly, Christian Verkerk, Jeroen Vlek, Nobuaki Sukegawa

This closes #213 and closes #680
2015-11-06 21:24:16 +09:00
James E. King, III
49f4dc0cd8 THRIFT-3402: add unix socket support to perl
Client: Perl
Patch: James E. King, III

This closes #670
2015-11-06 21:21:01 +09:00
Konrad Grochowski
7f4be5f188 some 'some make style' suggestions applied to C++ files 2015-11-05 20:23:11 +01:00
Konrad Grochowski
673c94137a THRIFT-3382 - C++: TBase class for generated structs added
Client: C++
Patch: Adam Beberg <beberg@sentient.ai>

TBase.h is now part of C++ Thrift library and TBase
is used as base class for all structs generated from
user defined structs (when not generating in template mode)

This closes #653
2015-11-05 20:13:05 +01:00
Nobuaki Sukegawa
53349926e0 THRIFT-3407 Refill buffer when JSON closing bracket is missing
This closes #678
2015-11-05 00:10:27 +09:00
Marshall Scorcio
fe5330955f THRIFT-3182 TFramedTransport is in an invalid state after frame size exception
Client: Java
Patch: Marshall Scorcio

This closes #512
2015-11-04 23:22:53 +09:00
Nobuaki Sukegawa
d3f7d0e66c THRIFT-3274 calling "make clean" twice in a row yields make error
This closes #676
2015-11-03 21:11:40 +01:00
Dave Watson
792db4e926 THRIFT-2423 Facebook's THeader protocol and transport for cpp
Client: C++ Library, Compiler
Patch: Dave Watson rebased by Nobuaki Sukegawa

This closes #357 and closes #677
2015-11-04 01:25:22 +09:00
Nobuaki Sukegawa
b31f0900b5 THRIFT-338 Compact Protocol in Erlang
Client: Erlang
Patch: Nobuaki Sukegawa

This closes #338
2015-11-03 22:02:55 +09:00
Jens Geyer
36c357a90e THRIFT-3406 Cocoa client should not schedule streams on main runloop
Client: Cocoa
Patch: Aleksei Shevchenko
2015-11-02 22:13:11 +01:00
David Robakowski
a7d6a97033 THRIFT-2113 Erlang SSL Socket Support
Client: Erlang
Patch: David Robakowski
2015-11-01 18:30:46 +09:00
alisdair sullivan
7bdba5c06a THRIFT-2708 add support for oneway (async) function calls in erlang client
Client: Erlang
Patch: Alisdair Sullivan modified by Nobuaki Sukegawa

Modification: Fix invalid send_call return type.

This closes #231
2015-11-01 18:07:15 +09:00
Nobuaki Sukegawa
149ecc1a5f THRIFT-2856 refactor erlang basic transports and unify interfaces
Client: Erlang
Patch: Nobuaki Sukegawa

Add read_exact default implementation so that every transport is usable
under framed transport.
2015-11-01 18:04:02 +09:00
alisdair sullivan
a559f8d903 THRIFT-2856 refactor erlang basic transports and unify interfaces
Client: Erlang
Patch: Alisdair Sullivan

This closes #288
2015-11-01 18:03:40 +09:00
Nobuaki Sukegawa
826ea998d5 THRIFT-3400 Add Erlang to cross test
Client: Test, Erlang
Patch: Nobuaki Sukegawa
2015-10-31 14:54:12 +09:00
Phongphan Phuttha
a6509f7b37 THRIFT-3404 Fixed JSON String reader doesn't recognize UTF-16 surrogate pairs.
Client: Delphi
Patch: Phongphan Phuttha <phongphan@acm.org>

This closes #671
2015-10-30 21:45:36 +02:00
Stig Bakken
d6ca81b2cc PHP Compiler: always cast scalar types in jsonSerialize() 2015-10-29 23:01:37 +02:00
Jonathan Heard
2bfd7df93e THRIFT-3397 Implement TProcessorFactory in C# to enable per-client processors
Client: C#
Patch: Jonathan Heard

This closes #663
2015-10-29 22:40:58 +02:00
Phongphan Phuttha
54beb80ded THRIFT-2409 UTF-8 sent by PHP as JSON is not understood by TJsonProtocol
Client: Java
Patch: Phongphan Phuttha <phongphan@acm.org>

This closes #667
2015-10-29 22:18:42 +02:00
Phongphan Phuttha
11b515cd29 THRIFT-3403 Fixed JSON string reader doesn't recognize UTF-16 surrogate pairs
Client: C#
Patch: Phongphan Phuttha <phongphan@acm.org>

This closes #668
2015-10-29 22:09:19 +02:00
Nobuaki Sukegawa
27378fa34e THRIFT-3398 Add CMake build for Haskell library and tests
Client: Build, Haskell
Patch: Nobuaki Sukegawa

This closes #660
2015-10-29 00:41:52 +09:00
Nobuaki Sukegawa
4eb24f8f1a THRIFT-3376 C# and Python JSON protocol double values lose precision Client: C# Patch: Nobuaki Sukegawa
Use "G17" instead of "R" due to .NET Framework issue.

Closes #659
2015-10-25 13:31:50 +09:00
Gonzalo Aguilar Delgado
b343feee0d THRIFT-3370 errno extern variable redefined. Not compiling for Android
Client: c_glib
Patch: Gonzalo Aguilar

This closes #638
2015-10-21 23:39:54 +09:00
Jens Geyer
40c28d3310 THRIFT-3393 Introducing i8 to provide consistent set of Thrift integers
Client: Compiler (general)
Patch: Jens Geyer <jensg@apache.org>

This closes #656
2015-10-20 23:17:38 +02:00
Jens Geyer
f2ab1346c6 THRIFT-3396 DART: UTF-8 sent by PHP as JSON is not understood by TJsonProtocol
Client: Dart
Patch: Phongphan Phuttha <phongphan@acm.org>

This closes #658
2015-10-20 21:41:47 +02:00
Randy Abernethy
f593dd3a96 THRIFT-3392:ZLib does not flush wrapper streams on close
Client: Java
Patch: Antonio García

Github Pull Request:
This closes #655
commit e413701b53a4aa0069b5e5d873847c147308581e
Author: Antonio García-Domínguez <nyoescape@gmail.com>
Date: 2015-10-18T13:16:02Z
THRIFT-3392 Java TZlibTransport: ensure inflater/deflater are closed upon close()
2015-10-18 08:04:16 -07:00
Jens Geyer
145749c7a2 THRIFT-3390 Tornado server should gracefully handle closed connections
Clidnt: Python.Tornado
Patch: Christian Verkerk <christian@tubularlabs.com>

This closes #654
2015-10-16 19:21:22 +02:00
Konrad Grochowski
a84e139215 THRIFT-2411 - C++: Fixed support for UTF-16 encoding in JSON protocol
Client: C++
Patch: Phongphan Phuttha <phongphan@acm.org>

Support unicode-encoded character including UTF-16 surrogate pair which
allow extended character that is not in Basic Multilingual Plane.

This closes #648
2015-10-16 11:36:36 +02:00
Nobuaki Sukegawa
228b328f7b THRIFT-3376 C# and Python JSON protocol double values lose precision
Client: C#, Python, C++, Ruby
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #643
2015-10-14 00:40:23 +02:00
Nobuaki Sukegawa
9b9366145c THRIFT-3379 Potential out of range panic in Go JSON protocols
Client: Go
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #646
2015-10-14 00:34:05 +02:00
Jens Geyer
bb272dbcd5 THRIFT-2412 UTF-8 sent by PHP as JSON is not understood
Client: D
Author: Phongphan Phuttha <phongphan@acm.org>

This closes #650
2015-10-14 00:17:28 +02:00
Roger Meier
d9d5120854 THRIFT-3237 Fix TNamedPipeServer::createNamedPipe memory leak
Client: cpp
Patch: Paweł Janicki & James E. King, III
This closes #632
2015-10-11 09:13:37 +02:00
Nobuaki Sukegawa
a175437f66 THRIFT-3276 Binary data does not decode correctly using the TJSONProtocol when the base64 encoded data is padded.
This closes #645
2015-10-11 00:55:58 +02:00
pavlo
5d93b04f9e THRIFT-3371 Abstract namespace Unix domain sockets broken in C++
This closes #637
2015-10-11 00:48:59 +02:00
Nobuaki Sukegawa
64b8f6ca15 THRIFT-3375 Python TJSONProtocol encodes utf8 string values in an incompatible way
This closes #642
2015-10-11 00:23:31 +02:00
Nobuaki Sukegawa
8cd519f7a3 THRIFT-3374 Ruby TJSONProtocol fails to unescape string values
This closes #640
2015-10-11 00:18:02 +02:00
Jens Geyer
56e5b9b01b THRIFT-2905 Cocoa compiler should have option to produce "modern" Objective-C
Client: Cocoa (ObjectiveC & Swift)
Author: Kevin Wooten <kevin@wooten.com>

This closes #539
2015-10-09 22:01:55 +02:00
Randy Abernethy
983bf7de41 THRIFT-3373: cross test cleanup
Client: build, node, c_glib, cpp, hs, py, rb
Patch: Nobuaki Sukegawa

Github Pull Request:
This closes #641
commit 338f1a502961a4f63b0bd4b3dae4099062d6d17f
Author: Nobuaki Sukegawa <nsukeg@gmail.com>
Date: 2015-10-09T17:25:18Z
THRIFT-3373 Various fixes for cross test servers and clients
2015-10-09 12:28:57 -07:00
Jens Geyer
855cf7f089 THRIFT-3253 Using latest version of D gives deprecation notices
Client: D
Patch: Phongphan Phuttha <phongphan@acm.org>
2015-10-08 21:12:57 +02:00
Jens Geyer
a8d5a7841d THRIFT-3299 Apache Thrift language bindings for Dart
Client: Dart
Patch: Jens Geyer

Adjusted dart package description files (pubspec.yaml)
2015-10-03 01:44:44 +02:00
Mark Erickson
932c4700c6 THRIFT-3299 Create an Apache Thrift language binding for Dart (dartlang.org).
Client: Dart
Patch: Mark Erickson <mark.erickson@workiva.com>

This closes #608
2015-10-03 01:43:59 +02:00
Jens Geyer
123258ba60 THRIFT-3364 Fix ruby binary field encoding in TJSONProtocol
Client: Ruby
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #633
2015-10-02 00:38:17 +02:00
Jens Geyer
96409d9dfe THRIFT-3361 Improve C# library
Client: C#
Patch: Jens Geyer <jensg@apache.org>

Replaced a bunch of C# exceptions with TTransportException.
2015-09-30 23:30:35 +02:00
Jens Geyer
178b813acd THRIFT-3361 Improve C# library
Client: C#
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #630
2015-09-30 23:16:45 +02:00
Evan Jones
60aa640c30 THRIFT-3306: Java: TBinaryProtocol: Use a single temp byte[] buffer
Reduces allocations and GC when TBinaryProtocol is allocated repeatedly.

Originally separate byte[] arrays were allocated for each integer type, and
a separate array for input and output. However, one buffer of the largest
size (8 bytes for i64) can be used for all purposes.

This closes #596
2015-09-30 15:49:55 +02:00
Jens Geyer
15c4004885 THRIFT-3323 Python library does not handle escaped forward slash ("/") in JSON
Client: Python
Patch: Grepsr <info@grepsr.com>
2015-09-29 21:33:23 +02:00
Nobuaki Sukegawa
01ede042aa THRIFT-3360 Improve cross test servers and clients further
This closes #629
2015-09-28 20:38:37 +02:00
Konrad Grochowski
e9bdb411fb THRIFT-3329: fix C++ tests incompatibility with boost-1.59
Client: C++
Patch: James E. King, III <jim.king@simplivity.com>

This closes #620
2015-09-25 21:04:57 +02:00
jfarrell
ad3a95527c THRIFT-3298: thrift endian converters may conflict with other libraries
Client: cpp
Patch: Xiaoshuang LU

Converts ntohll, htonll to be Thrift prefixed to avoid redefinition by other libraries (ie. zookeeper.h)
2015-09-24 23:27:34 -04:00
jfarrell
27be411ee0 THRIFT-2936:Minor memory leak in SSL
Client: cpp
Patch: James King

Thrift clients that use SSL leak 64 bytes in two chunks. This is because the list of available compression methods is not freed.

This closes #619
2015-09-24 22:26:37 -04:00
Jens Geyer
b121a586b2 THRIFT-3345 Clients blocked indefinitely when a java.lang.Error is thrown
Client: Java
Author: huahang <huahang@users.noreply.github.com>

This closes #618
2015-09-23 23:05:26 +02:00
Jens Geyer
d629ea0bb2 THRIFT-3347 Improve cross test servers and clients
Client: TestSuite, C++, Perl, NodeJS, c_glib, Haskell, Python
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #621
2015-09-23 21:20:38 +02:00