Commit Graph

4500 Commits

Author SHA1 Message Date
Nobuaki Sukegawa
6823829710 THRIFT-3342 Improve ruby cross test client and server compatibility
This closes #615
2015-09-22 07:48:25 +02:00
Nobuaki Sukegawa
cf63c95c17 THRIFT-3343 Fix haskell README
This closes #616
2015-09-22 07:46:48 +02:00
Jens Geyer
fa2daef14b THRIFT-3341 Add testBool methods
Client: Haxe
Patch: Jens Geyer

This closes #614
2015-09-22 00:29:32 +02:00
Jens Geyer
39ba6b71f5 THRIFT-3341 Add testBool methods
Client: Delphi
Patch: Jens Geyer
2015-09-22 00:23:51 +02:00
Nobuaki Sukegawa
2a640c4ca2 THRIFT-3303 Disable concurrent cabal jobs on Travis to avoid GHC crash
This closes #592
2015-09-21 23:48:09 +02:00
Roger Meier
840f3ef649 THRIFT-3340 Python: enable json tests again
This closed #613
2015-09-21 23:36:27 +02:00
Jens Geyer
293e2f450b THRIFT-3338 Stray underscore in generated go when service name starts with "New"
Client: Go
Patch: Jens Geyer
2015-09-21 23:18:07 +02:00
Nobuaki Sukegawa
a649e7473b THRIFT-3337 Add testBool method to cross tests
This closes #611
2015-09-21 23:07:39 +02:00
Nobuaki Sukegawa
245c347b73 THRIFT-3334 Markdown notation of protocol spec is malformed
This closes #610
2015-09-21 23:06:18 +02:00
Nobuaki Sukegawa
c2993c0edf THRIFT-3332 make dist fails on clean build
This closes #609
2015-09-21 23:03:30 +02:00
Jens Geyer
61444d7be5 THRIFT-557 charset problem with file Autogenerated by Thrift
Client: Python
Patch: zhenghuabin <zhenghuabin@bytedance.com>

This closes #601
2015-09-21 22:43:28 +02:00
Jens Geyer
b925739550 THRIFT-3335 Ruby server does not handle processor exception
Client: Ruby
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #612
2015-09-21 22:36:45 +02:00
Roger Meier
ff4a8edd50 THRIFT-3326 Tests do not compile under *BSD
Patch: Joao Neves
2015-09-19 20:49:50 +02:00
Roger Meier
6857b7fe90 THRIFT-2918 Race condition in Python TProcessPoolServer test 2015-09-17 09:46:24 +02:00
jfarrell
614a67016d THRIFT-3324 - Update go get command to include all packages
Client: go
Patch: zzmp

Update go documentation
2015-09-15 17:05:41 -04:00
Jens Geyer
0f17e15255 THRIFT-3051 Go Thrift generator creates bad go code
Client: Go
Patch: Jake Farrell
2015-09-15 21:44:53 +02:00
Jens Geyer
ab1bfa9013 THRIFT-3319 CSharp tutorial will not build using the *.sln
Client: C#
Patch: Jens Geyer

This closes #604
2015-09-11 23:49:54 +02:00
Sergei Nikulov
34e0bb64bd THRIFT-2850 CMake for Apache Thrift
fixes for std/boost::thread detection; security test; qt test

This closes #598
2015-09-08 23:22:44 +02:00
Jens Geyer
5bc8b5a3a5 THRIFT-3302 Go JSON protocol should encode Thrift byte type as signed integer string
Client: Go
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #591
2015-09-05 12:50:24 +02:00
Jens Geyer
96d80200c5 THRIFT-3295 C# library does not build on Mono 4.0.2.5 or later
Client: C#
Patch: Nobuaki Sukegawa <nsukeg@gmail.com>

This closes #586
2015-09-03 21:14:30 +02:00
Jens Geyer
1f1c206b08 THRIFT-3310 lib/erl/README.md has incorrect formatting
Client: Erlang
Patch: Chris Snow <chsnow123@gmail.com>

This closes #593
2015-09-03 20:53:44 +02:00
Randy Abernethy
b92f636f7b THRIFT-3311:README.md cleanup
Client: docs
Patch: Chris Snow

Github Pull Request:
This closes #594
https://github.com/apache/thrift/pull/594
2015-08-30 10:56:35 -07:00
jfarrell
e2e5e22c11 THRIFT-3308: Fix broken test cases for 0.9.3 release candidate
client: build
Patch: jfarrell

Fix broken test cases, make check now passes with all files in dist
2015-08-25 14:59:40 -04:00
jfarrell
400d02c75f THRIFT-2269: Can deploy libthrift-source.jar to maven center repository
Client: java
Patch: jfarrell

Fix java sources issue being deployed as -src.jar
2015-08-25 01:14:12 -04:00
jfarrell
6949b7c969 THRIFT-2981: IDL with no namespace produces unparsable PHP
Client: php
Patch: Randy Abernethy

The compiler is generating the namespace statement even when there isn't one, which blows up the PHP interpreter. Patch supresses service and type file output of namespace unless there actually is one.
2015-08-25 01:09:35 -04:00
jfarrell
f13e431bab THRIFT-3305: Missing dist files for 0.9.3 release candidate
Client: build
Patch: jfarrell

Adds missing files to dist
2015-08-25 00:39:29 -04:00
Randy Abernethy
7860ee727a THRIFT-3300:Reimplement TZlibTransport in Java using streams
Client: Java Lib
Patch: Paul Magrath

This closes #590
commit c01aff7038adb9fa2098c02d0092757834fd4df4
Author: Paul Magrath <paul@swiftkey.com>
Date: 2015-08-17T17:25:24Z
THRIFT-3300 Reimplement TZlibTransport in Java using streams
2015-08-20 23:50:35 -07:00
Nobuaki Sukegawa
2fab3deb09 THRIFT-3296 - Go cross test does not conform to spec 2015-08-17 21:54:23 +10:00
Henrique Mendonça
738143cf36 THRIFT-3293 JavaScript: null values turn into empty structs in constructor
Patch: Håkon Hitland
2015-08-16 19:17:33 +10:00
Randy Abernethy
bb98e97fd3 THRIFT-3294: Java ZLib transport fix
Client: Java Lib
Patch: Paul Magrath
2015-08-05 21:02:14 -07:00
Jens Geyer
4fed1af570 THRIFT-3178 glib C does not compile
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

This closes #581
2015-08-08 00:24:13 +02:00
Jens Geyer
c6b991fe00 THRIFT-3292 Integrate new Zlib transport for Go into test suite
Client: Go
Patch: Paul Magrath <paul@swiftkey.com>

This closes #580
2015-08-08 00:24:09 +02:00
Randy Abernethy
8dbe5f60a7 THRIFT-2199:Remove dense protocol
Client: C++ library and compiler
Patch: Randy Abernethy
2015-08-01 22:57:02 -07:00
Jens Geyer
54f392b8fd THRIFT-2832 c_glib: Handle string lists correctly
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

The compiler now correctly generates code for string lists (i.e. variables of type list<string>) that are
- Passed as a parameter to a service method,
- Returned from a service method or
- Assigned a default value.

Added a unit test that covers containers (initially only string lists) used as parameters to and return values from
service methods, and as members with default values inside structs.
2015-08-05 21:45:10 +02:00
Simon South
b28e3ccdcb THRIFT-3288 c_glib: Compiler: Gently refactor functions
This change gently refactors a handful of recently modified
functions to

- Wrap lines at 80 columns,

- Improve readability (making the layout of the compiler's source
  code more closely match that of the code it's generating),

- Use more consistently the indent_up/indent_down and
  scope_up/scope_down helper functions rather than embedding
  formatting characters directly, and

- Improve slightly the formatting of the generated code.
2015-08-03 22:10:23 +02:00
Simon South
38e7155c03 THRIFT-3288 c_glib: Build unit tests without compiler warnings
These changes allow the unit tests for C (GLib) to build without
compiler warnings, even with additional warnings enabled. They
include

- Disabling string-function optimizations when glibc is used, as
  these produce compiler warnings when a string function is used
  within a call to assert ();

- Remove the "LL" suffix (added in C99) from 64-bit integer
  literals;

- Replace C++-style ("//") comments with C-style equivalents;

- Remove unused constant declarations that generated warnings;
  and

- Mark (or remove, from main ()) unused function parameters.
2015-08-03 22:10:23 +02:00
Simon South
7bc907a959 THRIFT-3288 c_glib: Compiler: Silence unused-parameter warnings
This change modifies the generated class and interface initializers
so they don't generate "unused parameter" warnings when compiled.
2015-08-03 22:10:23 +02:00
Simon South
c83a2b5185 THRIFT-3288 c_glib: Compiler: Don't mix declarations and code
This change moves variable declarations to the top of code blocks
in the generated code, resolving a number of "ISO C90 forbids mixed
declarations and code" warnings when building the unit tests.
2015-08-03 22:10:23 +02:00
Simon South
db3646faef THRIFT-3288 c_glib: Unit tests: Enable warnings, improve automake-variable use
This change

- Enables the same comprehensive set of warnings ("-Wall -Wextra
  -pedantic") specified for the unit tests for C++ and

- Changes the use of automake variables (e.g. AM_CPPFLAGS) to more
  closely match their intended use, as specified in the automake
  documentation.
2015-08-03 22:10:22 +02:00
Roger Meier
03f3f55109 THRIFT-3286 Apache Ant is a necessary dependency
adding to apt-get command

Patch: Maurya Talisetti

This closes #513
2015-08-03 22:03:36 +02:00
Simon South
89e65def89 THRIFT-3285 c_glib: Library: Build without compiler warnings
These changes allow the C (GLib) library to be built without
warnings from the compiler, even with extra compiler warnings
enabled. The changes involve

- Moving variable declarations to the top of every code block,

- Using unions instead of type-punning to follow strict-aliasing
  rules,

- Replacing variable-length array declarations with arrays
  allocated on the stack (using g_newa and g_alloca),

- Casting void pointers to a suitably sized data type before
  performing arithmetic on them,

- Replacing C++-style ("//") comments with C-style equivalents,
  and

- Removing an errant semicolon and comma.

This closes #576
2015-08-03 19:09:02 +02:00
Simon South
b62093db94 THRIFT-3285 c_glib: Library: Build with all warnings enabled
This matches the settings ("-Wall -Wextra -pedantic") used to build
the C++ library.
2015-08-03 19:07:42 +02:00
Simon South
31186c467a THRIFT-3285 c_glib: Library: Use AM_CPPFLAGS for include paths, not AM_CFLAGS
This follows the description of the two variables in the automake
documentation.
2015-08-03 19:07:42 +02:00
Simon South
c1febebef6 THRIFT-3284 c_glib: Compiler: Omit processing-function defs for empty services
This closes: #575
2015-08-02 16:19:06 +02:00
Jens Geyer
c76a9ecdd2 THRIFT-3283 c_glib: Tutorial server always exits with warning
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

This closes #574
2015-07-31 23:23:48 +02:00
Jens Geyer
a2e0c5075d THRIFT-3260 multiple warnings in c_glib tutorial
Client: c_glib
Simon South <ssouth@simonsouth.com>

This closes #573

Here are additional changes that should really and truly resolve all the warnings generated when building the c_glib tutorial:

Compiler:
- Do not output a trailing comma in exception-enum definitions.
- Move variable declarations to avoid mixing declarations and code in generated code.
- Improve the readability of affected code blocks (and rely on indent_up and indent_down for indentation).
Library
- Use only C-style comments in headers included by clients.
Tutorial
- Move THRIFT_UNUSED_VAR calls to avoid mixing declarations and code.
2015-07-31 23:23:41 +02:00
Itay Duvdevani
4ed2b855e9 THRIFT-3279 Fix a bug in retry_max_delay
The current max delay is unstable - when retry_delay == retry_max_delay the
second branch is taken, and retry_delay is set to retry_max_delay *
retry_backoff, which is larger than retry_max_delay.

This causes an oscillation between retry_max_delay and retry_max_delay *
retry_backoff.

This simply fixed it.
2015-07-30 23:55:34 +02:00
Itay Duvdevani
5445e3fdee THRIFT-3280 Initialize retry variables on construction
Currently retry variables are only initialized after a connection has been
successfully established. When the initial connection fails the retry logic is
broken since the state has not been properly initialized.

To solve this, we need to initialize the retry state before the initial
connect() request.
2015-07-30 23:53:23 +02:00
Jim King
b0b710a426 THRIFT-3164: disable insecure SSLv3 protocol in cpp lib unless SSLv3 is specifically asked for to make the defaults more secure; added a matrix security unit test for SSL in the cpp lib 2015-07-30 21:57:03 +02:00
Jens Geyer
f6eebba4a0 THRIFT-3260 multiple warnings in c_glib tutorial
Client: c_glib
Patch: Simon South <ssouth@simonsouth.com>

This closes #572

Tutorial:
- Silence unused-function warnings
- Remove spurious ";" from GObject type macro
Compiler:
- Suppress unused-var warnings in client initializers
- Omit spurious ";" after GObject type macros
2015-07-30 21:11:23 +02:00