common/thrift.git
13 years agoThrift-1435: make TException.Message property conformant to the usual expectations
Jake Farrell [Wed, 23 Nov 2011 14:30:41 +0000 (14:30 +0000)] 
Thrift-1435: make TException.Message property conformant to the usual expectations
Client: delphi
Patch: Jens Geyer

Make delphi exceptions act like standard TException within other languages

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1205415 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1432: Javascript struct constants declared in the same file as their struct...
Jake Farrell [Mon, 21 Nov 2011 13:52:51 +0000 (13:52 +0000)] 
Thrift-1432: Javascript struct constants declared in the same file as their struct definition will cause an error
Client: js
Patch: Mike Riley

Flips print out of constants and structs within the generator to allow for use of constants within the structs.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1204495 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1391: Improved Delphi XE test cases
Jake Farrell [Thu, 17 Nov 2011 00:17:29 +0000 (00:17 +0000)] 
Thrift-1391: Improved Delphi XE test cases
Client: delphi
Patch: Jens Geyer

Improved TestClient:
 - collects test results and reports errors
 - added or completed a number of tests, like listTest, mapmapTest, multiExceptionTest and others
 - exception content test also included

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1202948 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1387 Build MSVC libraries with Boost Threads instead of Pthreads
Roger Meier [Wed, 16 Nov 2011 19:11:34 +0000 (19:11 +0000)] 
THRIFT-1387 Build MSVC libraries with Boost Threads instead of Pthreads
Minor Fix: add PDB files to vcxproj files
Patch: Peace C

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1202843 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1426: Dist package missing files for release 0.8
Jake Farrell [Wed, 16 Nov 2011 12:58:36 +0000 (12:58 +0000)] 
Thrift-1426: Dist package missing files for release 0.8
Client: build
Patch: Jake Farrell

Cleans up dist target and removes extra folders.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1202686 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1428: shared.thrft does not include namespace for php, so thrift compiler...
Jake Farrell [Wed, 16 Nov 2011 12:12:37 +0000 (12:12 +0000)] 
Thrift-1428: shared.thrft does not include namespace for php, so thrift compiler generate incorrect name
Client: test
Patch: Ruslan Shevchenko

shared.thrft does not include namespace for php, so thrift compiler generate incorrect name

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1202653 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1411. java: java generator does not provide type parameter for TBaseProcessor
Bryan Duxbury [Mon, 14 Nov 2011 23:12:20 +0000 (23:12 +0000)] 
THRIFT-1411. java: java generator does not provide type parameter for TBaseProcessor

Patch: Jake Douglas

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1201961 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1425:The Node package is incompatible with latest node (0.6) & npm (1.0.27)
Jake Farrell [Sat, 12 Nov 2011 14:18:30 +0000 (14:18 +0000)] 
Thrift-1425:The Node package is incompatible with latest node (0.6) & npm (1.0.27)
Client: nodejs
Patch: David Worms

Changes web to url within bug stanza for nodejs packaging

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1201270 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1401: JSON-protocol for Delphi XE Libraries
Jake Farrell [Thu, 10 Nov 2011 21:11:46 +0000 (21:11 +0000)] 
Thrift-1401: JSON-protocol for Delphi XE Libraries
Client: delphi
Patch: Jake Farrell

Fixing windows newlines removed incorrectly.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1200551 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1401: JSON-protocol for Delphi XE Libraries
Jake Farrell [Thu, 10 Nov 2011 20:32:44 +0000 (20:32 +0000)] 
Thrift-1401: JSON-protocol for Delphi XE Libraries
Client: delphi
Patch: Jens Geyer

Adds support for the JSON protocol to the existing Delphi XE libraries.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1200538 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1424:Ruby specs fail when run with rake
Jake Farrell [Thu, 10 Nov 2011 00:53:17 +0000 (00:53 +0000)] 
Thrift-1424:Ruby specs fail when run with rake
Client: ruby
Patch: Peter Sanford

Fixes specs failing to load the spec_helper in ruby 1.9.2

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1200070 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1421: Debian Packages can not be built
Jake Farrell [Wed, 9 Nov 2011 15:24:25 +0000 (15:24 +0000)] 
Thrift-1421: Debian Packages can not be built
Client: debian
Patch: Jake Farrell

Commenting out erlang from debian build until jsx can be fixed.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1199792 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-184: Add OSGi Manifest headers to the libthrift java library to be able to...
Jake Farrell [Tue, 8 Nov 2011 01:39:47 +0000 (01:39 +0000)] 
Thrift-184: Add OSGi Manifest headers to the libthrift java library to be able to use Thrift in the OSGi runtime
Client: java
Patch: Jake Farrell

Updated manifest to add OSGI support.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1199047 13f79535-47bb-0310-9956-ffa450edef68

13 years agoRemoving trailing quote in java build.properties file.
Jake Farrell [Sun, 6 Nov 2011 23:40:07 +0000 (23:40 +0000)] 
Removing trailing quote in java build.properties file.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198592 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1421: Debian Packages can not be built (ruby build fails)
Jake Farrell [Sun, 6 Nov 2011 20:29:26 +0000 (20:29 +0000)] 
Thrift-1421: Debian Packages can not be built (ruby build fails)
Client: deb
Patch: Jake Farrell

Removing ruby from deb as it is now available as a gem.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198549 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1382: Bundle install doesnot work because thrift crashes
Jake Farrell [Sun, 6 Nov 2011 19:58:32 +0000 (19:58 +0000)] 
Thrift-1382: Bundle install doesnot work because thrift crashes
Client: ruby

Fixing strlcpy header.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198543 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1382: Bundle install doesnot work because thrift crashes
Jake Farrell [Sun, 6 Nov 2011 17:43:44 +0000 (17:43 +0000)] 
Thrift-1382: Bundle install doesnot work because thrift crashes
Client: ruby

Adding header for strlcpy.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198503 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1382: Bundle install doesnot work because thrift crashes
Jake Farrell [Sun, 6 Nov 2011 16:07:45 +0000 (16:07 +0000)] 
Thrift-1382: Bundle install doesnot work because thrift crashes
Client: ruby
Patch: Jake Farrell

Fixes strlcpy header include issue with ruby 1.9.x.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198394 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1251: Generated java code should indicate which fields are required and which...
Jake Farrell [Sun, 6 Nov 2011 15:02:30 +0000 (15:02 +0000)] 
Thrift-1251: Generated java code should indicate which fields are required and which are optional
Client: java
Patch: Jake Farrell

Fixes optional/required comments on fields.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198386 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1361 revert compiler/cpp/src/thrifty.yy change
Roger Meier [Sun, 6 Nov 2011 12:04:28 +0000 (12:04 +0000)] 
THRIFT-1361 revert compiler/cpp/src/thrifty.yy change
=> breaks mingw build
=> memleak fixes reported by cppcheck

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198347 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1361 Optional replacement of pthread by boost::thread
Roger Meier [Sun, 6 Nov 2011 11:29:41 +0000 (11:29 +0000)] 
THRIFT-1361 Optional replacement of pthread by boost::thread
Patch: Alexandre Parenteau
rev3

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198339 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1277 Node.js serializes false booleans as null
Roger Meier [Sun, 6 Nov 2011 10:37:11 +0000 (10:37 +0000)] 
THRIFT-1277 Node.js serializes false booleans as null
revert patch => breaks js

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1198334 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1415: delphi: add version Info to the library
Jake Farrell [Sat, 5 Nov 2011 13:36:27 +0000 (13:36 +0000)] 
Thrift-1415: delphi: add version Info to the library
Client: delphi
Patch: Jens Geyer

Adding versioning to delphi library

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1197957 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1277: Node.js serializes false booleans as null
Jake Farrell [Sat, 5 Nov 2011 13:16:34 +0000 (13:16 +0000)] 
Thrift-1277: Node.js serializes false booleans as null
Client: js
Patch: Hans Duedal

When serializing boolean types, false booleans are serialized as null instead of false switching to  using loose compare instead

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1197955 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1335: Add accept timeout to TServerSocket
Roger Meier [Fri, 4 Nov 2011 11:55:49 +0000 (11:55 +0000)] 
THRIFT-1335: Add accept timeout to TServerSocket
Client: cpp
Patch: Dave Watson

FIX: add accTimout_ Initialization to DomainSocket Constructor

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1197523 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1420. java: Nonblocking and HsHa server should make sure to close all their...
Bryan Duxbury [Fri, 4 Nov 2011 00:23:30 +0000 (00:23 +0000)] 
THRIFT-1420. java: Nonblocking and HsHa server should make sure to close all their socket connections when the selector exits

This patch makes the selector threads close out all of their open sockets before completely exiting. In testing, this appears to alleviate issues with hanging clients.

Patch: Thomas Kielbus

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1197370 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1419. java: AbstractNonBlockingServer does not catch errors when invoking...
Bryan Duxbury [Wed, 2 Nov 2011 22:40:01 +0000 (22:40 +0000)] 
THRIFT-1419. java: AbstractNonBlockingServer does not catch errors when invoking the processor

This patch changes the invoke() method to catch Throwables instead of just Exceptions.

Patch: Thomas Kielbus"

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1196848 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1416 Python Unit test is broken on ci
Roger Meier [Tue, 1 Nov 2011 21:03:33 +0000 (21:03 +0000)] 
THRIFT-1416 Python Unit test is broken on ci
remove repr from TestSuite

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1196273 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1409: Name conflict check does not work properly for exception object(Delphi).
Jake Farrell [Tue, 1 Nov 2011 01:08:46 +0000 (01:08 +0000)] 
Thrift-1409: Name conflict check does not work properly for exception object(Delphi).
Client: delphi
Patch: Kenjiro Fukumitsu

Delphi compiler's naming check does not work properly with exception object in the function that generates struct writer.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1195747 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1413: Generated code does not read MapEnd / ListEnd / SetEnd
Jake Farrell [Mon, 31 Oct 2011 14:13:13 +0000 (14:13 +0000)] 
THRIFT-1413: Generated code does not read MapEnd / ListEnd / SetEnd
Client: delphi
Patch: Jens Geyer

The generated code lacks calls to ReadMapEnd, ReadListEnd and ReadSetEnd. Although actually no problem occurs with the BinaryProtocol, other protocols (like JSON) do some important things there.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1195466 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1408: Delphi Test Server: Exception test case fails due to naming conflict...
Jake Farrell [Mon, 31 Oct 2011 14:07:14 +0000 (14:07 +0000)] 
Thrift-1408: Delphi Test Server: Exception test case fails due to naming conflict with e.message
Client: delphi
Patch: jens Geyer

Fix name comflict with e.message

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1195461 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1407: Typo in Python socket server causes Thrift to fail when we enable a...
Jake Farrell [Wed, 26 Oct 2011 12:36:17 +0000 (12:36 +0000)] 
THRIFT-1407: Typo in Python socket server causes Thrift to fail when we enable a global socket timout
Client: py
Patch: adalc

Fixes typo in python socket server timeout

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189170 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1405: Delphi compiler does not generates container serializer properly
Jake Farrell [Wed, 26 Oct 2011 02:40:14 +0000 (02:40 +0000)] 
THRIFT-1405: Delphi compiler does not generates container serializer properly
Client: delphi
Patch: Kenjiro Fukumitsu

Fixess a bug in the function that generates serializer of containers

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189009 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1399: One of the TServerImpl.Create CTORs lacks implementation
Jake Farrell [Wed, 26 Oct 2011 02:33:31 +0000 (02:33 +0000)] 
THRIFT-1399: One of the TServerImpl.Create CTORs lacks implementation
Client: delphi
Patch: Jens Geyer

Adding delphi test server missing constructor.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189007 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1406: Build error after applying THRIFT-1395
Jake Farrell [Wed, 26 Oct 2011 02:29:48 +0000 (02:29 +0000)] 
THRIFT-1406: Build error after applying THRIFT-1395
Client: delphi
Patch: Jens Geyer

Fixes build failure due to t_delphi_generator.cc:780: error: integer constant is too
large for 'long' type

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189006 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1404: Delphi compiler generates struct reader code with problem.
Jake Farrell [Wed, 26 Oct 2011 02:25:07 +0000 (02:25 +0000)] 
THRIFT-1404: Delphi compiler generates struct reader code with problem.
Client: delphi
Patch: Kenjiro Fukumitsu

After recieved STOP,it calls additional ReadFieldEnd, which is different from the implementation of other language compiler.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189005 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1395: Patch to prevent warnings for integer types in some cases
Jake Farrell [Tue, 25 Oct 2011 02:20:26 +0000 (02:20 +0000)] 
Thrift-1395: Patch to prevent warnings for integer types in some cases
Client: delpi
Patch: Jens Geyer

Constants such as i32 = 0x80000000 produce a Delphi warning. The current code renders such values as positive integer, which needs an explicit typecast to satisfy the Delphi compiler.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1188494 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1400. rb: Ruby native extension aborts with __stack_chk_fail in OSX
Bryan Duxbury [Mon, 24 Oct 2011 17:29:16 +0000 (17:29 +0000)] 
THRIFT-1400. rb: Ruby native extension aborts with __stack_chk_fail in OSX

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1188248 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1397: CI server fails during build due to unused parameters in delphi generator
Jake Farrell [Thu, 20 Oct 2011 13:30:08 +0000 (13:30 +0000)] 
THRIFT-1397: CI server fails during build due to unused parameters in delphi generator
Client: delphi
Patch: Kenjiro Fukumitsu

Cleans up unused parameters in delphi generator.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1186794 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1396: Dephi generator has dependacy on boost 1.42 later.
Jake Farrell [Thu, 20 Oct 2011 02:49:48 +0000 (02:49 +0000)] 
Thrift-1396: Dephi generator has dependacy on boost 1.42 later.
Client: delphi
Patch: Kenjiro Fukumitsu

Patch to fully remove boost uuid within the delphi generator.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1186603 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1390L Debian package build fix for squeeze
Jake Farrell [Thu, 20 Oct 2011 02:11:02 +0000 (02:11 +0000)] 
Thrift-1390L Debian package build fix for squeeze
Client: build
Patch: Jake Farrell

Fix debian build deps for libmomo-system-web2.0-cil.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1186602 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1361 Optional replacement of pthread by boost::thread
Roger Meier [Wed, 19 Oct 2011 09:27:01 +0000 (09:27 +0000)] 
THRIFT-1361 Optional replacement of pthread by boost::thread
revert boost changes

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1186049 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1361 Optional replacement of pthread by boost::thread
Roger Meier [Tue, 18 Oct 2011 22:19:30 +0000 (22:19 +0000)] 
THRIFT-1361 Optional replacement of pthread by boost::thread
Patch: Alexandre Parenteau

Remark: lib/cpp/src/concurrency/BoostMutex.cpp is unmodified

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1185904 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1393: TTransportException's thrown from THttpClient contain superfluous slashe...
Jake Farrell [Tue, 18 Oct 2011 15:31:17 +0000 (15:31 +0000)] 
Thrift-1393: TTransportException's thrown from THttpClient contain superfluous slashes in the Exception message
Client : php
Patch: Nick Jones

The THttpClient class ensures the $uri_ property has a slash prefixed by appending one if needed in the constructor. However in THttpClient::read, there are 2 exceptions thrown where a slash is concatenated between the port and uri. This results in a superfluous slash in the TTransportException message.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1185723 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1366: Delphi generator, lirbrary and unit test.
Jake Farrell [Tue, 18 Oct 2011 14:35:26 +0000 (14:35 +0000)] 
Thrift-1366: Delphi generator, lirbrary and unit test.
Client: delphi
Patch: Kenjiro Fukumitsu

Adding delphi XE generator, lib and unit tests.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1185688 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1261 STDIO support for node-thrift
Roger Meier [Fri, 14 Oct 2011 06:35:28 +0000 (06:35 +0000)] 
THRIFT-1261 STDIO support for node-thrift
Patch: Jordan Shaw

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1183221 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1130. compiler: Add the ability to specify symbolic default value for optional...
Bryan Duxbury [Thu, 13 Oct 2011 21:32:52 +0000 (21:32 +0000)] 
THRIFT-1130. compiler: Add the ability to specify symbolic default value for optional boolean

Patch: Nevo Hed

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1183115 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1381 Thrift C++ libs have incorrectly versioned names
Roger Meier [Tue, 11 Oct 2011 19:48:57 +0000 (19:48 +0000)] 
THRIFT-1381 Thrift C++ libs have incorrectly versioned names
Patch: Jake Farrell

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1182052 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1387 Build MSVC libraries with Boost Threads instead of Pthreads
Roger Meier [Tue, 11 Oct 2011 19:02:37 +0000 (19:02 +0000)] 
THRIFT-1387 Build MSVC libraries with Boost Threads instead of Pthreads
Patch: Peace C & Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1182024 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1384: Java help meny missing newline near javame flag
Jake Farrell [Fri, 7 Oct 2011 23:15:03 +0000 (23:15 +0000)] 
THRIFT-1384: Java help meny missing newline near javame flag
Client: build
patch: Jake Farrell

Adds newline to java stanza in thrift --help menu

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1180276 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1373: Fix user-defined exception generation in thrift (python)
Jake Farrell [Fri, 7 Oct 2011 17:41:48 +0000 (17:41 +0000)] 
Thrift-1373: Fix user-defined exception generation in thrift (python)
Client: py
Patch: Dave Watson

forgotten include of TException in py imports section

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1180119 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1379: fix uninitialized enum values in thrift C++ objects
Jake Farrell [Fri, 7 Oct 2011 00:25:46 +0000 (00:25 +0000)] 
Thrift-1379: fix uninitialized enum values in thrift C++ objects
Client: cpp
Patch: Dave Watson

The thrift-generated code for C++ class objects does not provide any
initialization for enum values, so they wind up containing random/uninitialized
data. This causes problems when clients do not send argument data, as the server
receives random data rather than zero for unpassed args.
Enums should be initialized to zero.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179909 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1377: abort PHP deserialization on unknown field type
Jake Farrell [Fri, 7 Oct 2011 00:17:25 +0000 (00:17 +0000)] 
Thrift-1377: abort PHP deserialization on unknown field type
client: php
Patch: Dave Watson

Previously the code incorrectly ignored unknown field types. After
reading the field header, if it was an unknown type it would incorrectly
assume there was no data, and start trying to read the next field
immediately.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179907 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1376: Make port specification option in thrift remote
Jake Farrell [Fri, 7 Oct 2011 00:14:34 +0000 (00:14 +0000)] 
Thrift-1376: Make port specification option in thrift remote
Client: py
Patch: Dave Watson

The thrift-generated Python service client allows overriding the default host/port by doing "-h host:port" on the command line. Oftentimes, you want to override the host but not the port, as most services run on well-defined ports.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179905 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1375: fixed a hex char conversion bug in TJSONProtocol
Jake Farrell [Fri, 7 Oct 2011 00:10:20 +0000 (00:10 +0000)] 
Thrift-1375: fixed a hex char conversion bug in TJSONProtocol
Client: java
Patch: Dave Watson

Fixed a hex char conversion bug in TJSONProtocol: 10 ~ 15 <=> 'a' ~ 'f'.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179904 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1373: Fix user-defined exception generation in thrift (python)
Jake Farrell [Fri, 7 Oct 2011 00:04:56 +0000 (00:04 +0000)] 
Thrift-1373: Fix user-defined exception generation in thrift (python)
Client: py
Patch: Dave Watson

Fixed python code generation so that user-defined exceptions have a
base class of TException rather than Exception.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1179903 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1370: Debian packaging should Build-Depend on libglib2.0-dev
Jake Farrell [Tue, 4 Oct 2011 14:59:40 +0000 (14:59 +0000)] 
THRIFT-1370: Debian packaging should Build-Depend on libglib2.0-dev
Client: build
Patch: Christian Hofstaedtler

The Debian packaging builds the c_glib interface library, but does not name libglib2.0-dev as a Build-Dependency. While this usually won't affect manual builds, this is a problem for automated build environments which will not have libglib2.0-dev installed unless explicitly requested by Build-Depends.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1178823 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1361 Optional replacement of pthread by boost::thread (minor fix)
Roger Meier [Mon, 3 Oct 2011 19:37:09 +0000 (19:37 +0000)] 
THRIFT-1361 Optional replacement of pthread by boost::thread (minor fix)
FIX: member initialization order within constructor

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1178532 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1361 Optional replacement of pthread by boost::thread
Roger Meier [Sun, 2 Oct 2011 10:51:45 +0000 (10:51 +0000)] 
THRIFT-1361 Optional replacement of pthread by boost::thread
Patch: alexandre parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1178176 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
Roger Meier [Fri, 30 Sep 2011 20:23:34 +0000 (20:23 +0000)] 
THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
Patch: Peace

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1177817 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadd utility for benchmarking protocols against each other
Bryan Duxbury [Thu, 29 Sep 2011 22:51:54 +0000 (22:51 +0000)] 
add utility for benchmarking protocols against each other

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1177458 13f79535-47bb-0310-9956-ffa450edef68

13 years agorevert THRIFT-959
Bryan Duxbury [Tue, 27 Sep 2011 17:07:19 +0000 (17:07 +0000)] 
revert THRIFT-959

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176472 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1365. java: TupleProtocol#writeBitSet unintentionally writes a variable length...
Bryan Duxbury [Mon, 26 Sep 2011 21:29:15 +0000 (21:29 +0000)] 
THRIFT-1365. java: TupleProtocol#writeBitSet unintentionally writes a variable length byte array

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176072 13f79535-47bb-0310-9956-ffa450edef68

13 years agoinconsequential indentation fix to java compiler
Bryan Duxbury [Mon, 26 Sep 2011 20:32:59 +0000 (20:32 +0000)] 
inconsequential indentation fix to java compiler

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176034 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1357: Erlang dependency breaks build
Jake Farrell [Mon, 26 Sep 2011 15:29:03 +0000 (15:29 +0000)] 
THRIFT-1357: Erlang dependency breaks build
Client: erl
Patch: Peter Neumark

Updates json protocol to work with JSX 0.9.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1175906 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1359 --gen-cob cpp:cob_style does not compile anymore
Roger Meier [Sun, 25 Sep 2011 07:16:17 +0000 (07:16 +0000)] 
THRIFT-1359 --gen-cob cpp:cob_style does not compile anymore
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1175308 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1355: Running make in lib/rb doesn't build the native extensions
Jake Farrell [Fri, 23 Sep 2011 17:24:00 +0000 (17:24 +0000)] 
Thrift-1355: Running make in lib/rb doesn't build the native extensions
Client: rb
Patch: jfarrell

Builds extension prior to running spec calls to resolve test deps.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1174896 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
Roger Meier [Fri, 23 Sep 2011 14:25:22 +0000 (14:25 +0000)] 
THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
=> some more improvements

Patch: James Dickson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1174801 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1354: Add rake task to build just the gem file
Jake Farrell [Thu, 22 Sep 2011 21:15:02 +0000 (21:15 +0000)] 
Thrift-1354: Add rake task to build just the gem file
Client: rb
Patch: jfarrell

Updates ruby build to now build the gem by default and adds a rake task to create the gem.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1174393 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-857: tests run by "make install" fail if generators are disabled
Jake Farrell [Wed, 21 Sep 2011 00:15:27 +0000 (00:15 +0000)] 
Thrift-857: tests run by "make install" fail if generators are disabled
Client: build
Patch: jfarrell

removes --enable-gen* from configure and adds all generators by default.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173436 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1339. java: Extend Tuple Protocol to TUnions
Bryan Duxbury [Tue, 20 Sep 2011 22:53:31 +0000 (22:53 +0000)] 
THRIFT-1339. java: Extend Tuple Protocol to TUnions

This patch implements TupleProtocol (and general Scheme support) to TUnion descendants.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173418 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1331. rb: Ruby library deserializes an empty map to nil
Bryan Duxbury [Tue, 20 Sep 2011 18:45:56 +0000 (18:45 +0000)] 
THRIFT-1331. rb: Ruby library deserializes an empty map to nil

This patch properly detects when the metadata is omitted in Compact Protocol messages.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173300 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1350: Go library code does not build against latest release
Jake Farrell [Mon, 19 Sep 2011 23:38:39 +0000 (23:38 +0000)] 
THRIFT-1350: Go library code does not build against latest release
Client: go
Patch: Kyle Consalus

Go has moved it's URL-handling code into a "url" package, patch updates for these new changes.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1172901 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1227 - erlang implementation of thrift json protocol
Anthony F. Molinaro [Sun, 18 Sep 2011 04:57:50 +0000 (04:57 +0000)] 
THRIFT-1227 - erlang implementation of thrift json protocol

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1172199 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
Roger Meier [Fri, 16 Sep 2011 20:58:44 +0000 (20:58 +0000)] 
THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0
Patch: James Dickson and Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1171777 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0 (partial)
Roger Meier [Fri, 16 Sep 2011 12:02:57 +0000 (12:02 +0000)] 
THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0 (partial)
no chmod on windows for go and py compiler
Patch: James Dickson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1171520 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1335: Add accept timeout to TServerSocket
Jake Farrell [Wed, 14 Sep 2011 06:19:10 +0000 (06:19 +0000)] 
THRIFT-1335: Add accept timeout to TServerSocket
Client: cpp
Patch: Dave Watson

Added an accept timeout to the TServerSocket poll loop

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170443 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1345: Allow building without test cases
Jake Farrell [Wed, 14 Sep 2011 03:43:49 +0000 (03:43 +0000)] 
Thrift-1345: Allow building without test cases
Client: build env
Patch: Vitali Lovich

Adds --without-tests to configure to omit processing/building the test directories.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170426 13f79535-47bb-0310-9956-ffa450edef68

13 years agofix spelling issue within license
Roger Meier [Tue, 13 Sep 2011 13:54:46 +0000 (13:54 +0000)] 
fix spelling issue within license

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170181 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1342 Compilation problem on Windows of fastbinary.c
Roger Meier [Tue, 13 Sep 2011 13:54:05 +0000 (13:54 +0000)] 
THRIFT-1342 Compilation problem on Windows of fastbinary.c
Patch: alexandre parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170180 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1341 TProtocol.h endian detection wrong with boost
Roger Meier [Mon, 12 Sep 2011 22:20:11 +0000 (22:20 +0000)] 
THRIFT-1341 TProtocol.h endian detection wrong with boost
Patch: alexandre parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1169963 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1115 python TBase class for dynamic (de)serialization, and __slots__ option...
Roger Meier [Sun, 11 Sep 2011 18:16:21 +0000 (18:16 +0000)] 
THRIFT-1115 python TBase class for dynamic (de)serialization, and __slots__ option for memory savings
Patch: Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1169492 13f79535-47bb-0310-9956-ffa450edef68

13 years agouncomment handler parameter, so compile does not fail if they
Roger Meier [Sun, 11 Sep 2011 09:09:52 +0000 (09:09 +0000)] 
uncomment handler parameter, so compile does not fail if they
are undefined

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1167686 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1243 TAsyncChannel callbacks
Roger Meier [Sun, 11 Sep 2011 07:28:54 +0000 (07:28 +0000)] 
THRIFT-1243 TAsyncChannel callbacks
improved exception handling
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1167679 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1238 Thrift JS client cannot read map of structures
Roger Meier [Fri, 9 Sep 2011 08:17:02 +0000 (08:17 +0000)] 
THRIFT-1238 Thrift JS client cannot read map of structures
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1167032 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1296 SSL detection is broken
Roger Meier [Fri, 9 Sep 2011 06:19:35 +0000 (06:19 +0000)] 
THRIFT-1296 SSL detection is broken

mingw toolchain used to build "Thrift Compiler for Windows"
does not support libcrypto, so we just check if we building the cpp library

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1167013 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1333: Make RWGuard not copyable
Jake Farrell [Fri, 9 Sep 2011 04:32:36 +0000 (04:32 +0000)] 
THRIFT-1333: Make RWGuard not copyable
Client: cpp
Patch: Dave Watson

Copying would cause contained mutex to unlock twice, changing to noncopyable.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166996 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1334: Add more info to IllegalStateException
Jake Farrell [Fri, 9 Sep 2011 04:10:32 +0000 (04:10 +0000)] 
Thrift-1334: Add more info to IllegalStateException
Client cpp
Patch: Dave Watson

Add support for the message field in IllegalStateException

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166992 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1332: TSSLTransportParameters class uses hard coded value keyManagerType:...
Jake Farrell [Thu, 8 Sep 2011 16:57:40 +0000 (16:57 +0000)] 
THRIFT-1332: TSSLTransportParameters class uses hard coded value keyManagerType: SunX509
Client: java
Patch: Vladimir Zhilyaev

Convert Keymanger and TrustManager over to using detected jvm values rather than hard coded.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166798 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1328. java: TBaseHelper.toString(...) appends ByteBuffer data outside of valid...
Bryan Duxbury [Wed, 7 Sep 2011 18:12:34 +0000 (18:12 +0000)] 
THRIFT-1328. java: TBaseHelper.toString(...) appends ByteBuffer data outside of valid buffer range

This patch now correctly considers both arrayOffset and position when determining how to access the backing array of a buffer.

Patch: Andy Schlaikjer

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1166292 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1322: OCaml lib fail to compile: Thrift.ml line 305, int vs int32 mismatch
Jake Farrell [Tue, 6 Sep 2011 16:26:58 +0000 (16:26 +0000)] 
Thrift-1322: OCaml lib fail to compile: Thrift.ml line 305, int vs int32 mismatch
Client: OCaml

Updates the ocaml lib INTERNAL and PROTOCOL error enums to use the correct numeric values

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1165753 13f79535-47bb-0310-9956-ffa450edef68

13 years agoThrift-1279: type set is handled incorrectly when writing object
Jake Farrell [Tue, 6 Sep 2011 15:19:18 +0000 (15:19 +0000)] 
Thrift-1279: type set is handled incorrectly when writing object
Client: php
Patch: Darius Staisiunas

Fixes issue to iIterate through scalar types correctly.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1165703 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1320 Consistency of configure generated config.h
Roger Meier [Mon, 5 Sep 2011 19:15:53 +0000 (19:15 +0000)] 
THRIFT-1320 Consistency of configure generated config.h
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1165400 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-322 IHttpHandler for Thrift
Roger Meier [Fri, 2 Sep 2011 21:45:44 +0000 (21:45 +0000)] 
THRIFT-322 IHttpHandler for Thrift
Patch: Nils Huegelmann

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164723 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremove unused variable sz
Roger Meier [Fri, 2 Sep 2011 20:33:33 +0000 (20:33 +0000)] 
remove unused variable sz
add .gitignore stuff

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164696 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1319. java: Mismatch between how a union reads and writes a container
Bryan Duxbury [Thu, 1 Sep 2011 18:54:07 +0000 (18:54 +0000)] 
THRIFT-1319. java: Mismatch between how a union reads and writes a container

This patch fixes the problem in the java generator (and removes an unnecessary comment). It also amends TestTUnion to catch this.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164202 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1316. cpp: update server classes to accept
Bryan Duxbury [Thu, 1 Sep 2011 18:31:53 +0000 (18:31 +0000)] 
THRIFT-1316. cpp: update server classes to accept
TProcessorFactory objects

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164201 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1314. cpp: add TProcessorFactory
Bryan Duxbury [Thu, 1 Sep 2011 18:06:20 +0000 (18:06 +0000)] 
THRIFT-1314. cpp: add TProcessorFactory

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164190 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1315. cpp: generate server interface factory classes
Bryan Duxbury [Thu, 1 Sep 2011 18:00:37 +0000 (18:00 +0000)] 
THRIFT-1315. cpp: generate server interface factory classes

Patch: Adam Simpkins

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164187 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTHRIFT-1317. cpp: Remove copy constructibility from
Bryan Duxbury [Thu, 1 Sep 2011 16:52:56 +0000 (16:52 +0000)] 
THRIFT-1317. cpp: Remove copy constructibility from
thrift::concurrency::Guard

Patch: Jordan DeLong

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164164 13f79535-47bb-0310-9956-ffa450edef68