Commit Graph

2626 Commits

Author SHA1 Message Date
Jake Farrell
51700649d0 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
2011-10-07 00:17:25 +00:00
Jake Farrell
b5d94e07c4 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
2011-10-07 00:14:34 +00:00
Jake Farrell
336a1599d7 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
2011-10-07 00:10:20 +00:00
Jake Farrell
2ce7f66dea 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
2011-10-07 00:04:56 +00:00
Jake Farrell
7301eced16 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
2011-10-04 14:59:40 +00:00
Roger Meier
20e6ef136e 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
2011-10-03 19:37:09 +00:00
Roger Meier
3faaedf46b 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
2011-10-02 10:51:45 +00:00
Roger Meier
3516e0e306 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
2011-09-30 20:23:34 +00:00
Bryan Duxbury
9a1d2f01c6 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
2011-09-29 22:51:54 +00:00
Bryan Duxbury
44b2bb6bb5 revert THRIFT-959
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176472 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 17:07:19 +00:00
Bryan Duxbury
40d51a28d7 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
2011-09-26 21:29:15 +00:00
Bryan Duxbury
f35741729f inconsequential indentation fix to java compiler
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1176034 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 20:32:59 +00:00
Jake Farrell
7dcd49f1f9 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
2011-09-26 15:29:03 +00:00
Roger Meier
db3c9249c8 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
2011-09-25 07:16:17 +00:00
Jake Farrell
5209237739 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
2011-09-23 17:24:00 +00:00
Roger Meier
8cd3b1aa3c 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
2011-09-23 14:25:22 +00:00
Jake Farrell
4bd4f0ec25 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
2011-09-22 21:15:02 +00:00
Jake Farrell
dec8c54f8e 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
2011-09-21 00:15:27 +00:00
Bryan Duxbury
18784d7ccc 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
2011-09-20 22:53:31 +00:00
Bryan Duxbury
e80a194c47 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
2011-09-20 18:45:56 +00:00
Jake Farrell
7e3b866a35 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
2011-09-19 23:38:39 +00:00
Anthony F. Molinaro
a653067e8c 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
2011-09-18 04:57:50 +00:00
Roger Meier
84e4a3c181 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
2011-09-16 20:58:44 +00:00
Roger Meier
508b317269 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
2011-09-16 12:02:57 +00:00
Jake Farrell
32e7b2c7e3 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
2011-09-14 06:19:10 +00:00
Jake Farrell
627f1a0088 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
2011-09-14 03:43:49 +00:00
Roger Meier
1fd248fa04 fix spelling issue within license
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170181 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 13:54:46 +00:00
Roger Meier
c3f033f40b 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
2011-09-13 13:54:05 +00:00
Roger Meier
a93848b684 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
2011-09-12 22:20:11 +00:00
Roger Meier
f4eec7a57b 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
2011-09-11 18:16:21 +00:00
Roger Meier
b288050682 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
2011-09-11 09:09:52 +00:00
Roger Meier
08077bf9d8 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
2011-09-11 07:28:54 +00:00
Roger Meier
4f8a523fa0 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
2011-09-09 08:17:02 +00:00
Roger Meier
6869112f5e 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
2011-09-09 06:19:35 +00:00
Jake Farrell
2e9f5105b8 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
2011-09-09 04:32:36 +00:00
Jake Farrell
4013fa3117 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
2011-09-09 04:10:32 +00:00
Jake Farrell
251939c6b1 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
2011-09-08 16:57:40 +00:00
Bryan Duxbury
f099873704 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
2011-09-07 18:12:34 +00:00
Jake Farrell
eb7a755af4 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
2011-09-06 16:26:58 +00:00
Jake Farrell
c4beda9802 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
2011-09-06 15:19:18 +00:00
Roger Meier
2fa9c31e06 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
2011-09-05 19:15:53 +00:00
Roger Meier
212022cce6 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
2011-09-02 21:45:44 +00:00
Roger Meier
267c181c6a remove unused variable sz
add .gitignore stuff

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164696 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 20:33:33 +00:00
Bryan Duxbury
adaf82615b 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
2011-09-01 18:54:07 +00:00
Bryan Duxbury
7a9fb81796 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
2011-09-01 18:31:53 +00:00
Bryan Duxbury
6dd9cd0e3b 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
2011-09-01 18:06:20 +00:00
Bryan Duxbury
2173ce0250 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
2011-09-01 18:00:37 +00:00
Bryan Duxbury
c58c9e8e41 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
2011-09-01 16:52:56 +00:00
Bryan Duxbury
266b1737a5 THRIFT-1305. cpp: make TConnection a private inner class of
TNonblockingServer

The previous patch reverted some elements of THRIFT-1217. Fixed.

Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1164161 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 16:50:28 +00:00
Jake Farrell
9c39f7765e Thrift-1286: Modernize the Thrift Ruby Library Dev Environment
Client: Ruby
Patch: jfarrell

Updates to ruby build process with the following changes:
 - Removes dependency on echoe for spec generation
 - Adds gemfile for bulider and uses thrift.gemspec for dependency management.
 - Adds checks in configure for builder and only calls if available (make check-local on ci servers)
 - Adds checks in configure for Ruby and rake (bundler as well but this is optional for check-local and auto dependency management)
 - Still allows for rake to do its thing if all dependencies are in place
 - Removed Manifest and setup.rb
 - Adds a install task which will generate a gem and then install that gem to locally configured ruby path (no more prefix or destdir with this client)



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1163341 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 19:12:10 +00:00