Commit Graph

168 Commits

Author SHA1 Message Date
Randy Abernethy
1107b17ae4 THRIFT-2783:Prop bin encoding in node
Client: Node Lib
Patch: John Campbell

Fixes node web socket lib bin encoding propagation.
2014-10-11 13:42:31 -07:00
jfarrell
dabdf659ef THRIFT-2778 - nodejs build cleanup
Client: nodejs
Patch: jfarrell

nodejs test file cleanup
2014-10-08 23:41:47 -04:00
Roger Meier
25023b16eb THRIFT-809 Javascript client: Please make required fields actually required.
Patch: noazark

Github Pull Request: This closes #232
2014-10-09 02:01:17 +02:00
Jens Geyer
79f988c27a THRIFT-2768: Whitespace Fixup
Client: General (Makefile.am)
Patch: Jens Geyer

Reverted makefile.am - tabs are not optional there
2014-10-03 20:42:54 +02:00
Jens Geyer
aaa8947f3a THRIFT-2768: Whitespace Fixup
Client: General (Makefile.am, *.thrift)
Patch: Jens Geyer

DocTest.thrift has NOT been changed, the trailing whitespaces are part of the test case.
2014-10-03 20:30:38 +02:00
Randy Abernethy
bd2fce6fa3 THRIFT-2751: repair node oneway bug and symlink issue
Client: Node Lib
Patch: Randy Abernethy

This patch keep npm from creating sym links on npm install.
Sym links fail when writting to some shared volumes.

Also fixes multiplex oneway bug in nodejs
2014-09-30 17:12:27 -07:00
Jens Geyer
a86886e77d THRIFT-2704 - compiler: T_ONEWAY type used for oneway methods instead of T_CALL
Patch: Konrad Grochowski

This closes #216
2014-09-17 22:36:00 +02:00
jfarrell
8fd8c6366d THRIFT-2602:Fix missing dist files
Client: build process
Patch: jfarrell

Add all missing files to the dist package.
2014-07-10 09:14:51 -04:00
Wade Simmons
0dd35a6c4b fix global leaks and copy-paste errors
- TCompactProtocol.prototype.writeBool not referencing `booleanField_`
  on `this` correctly. Also using `NULL` instead of `null`.

- TCompactProtocol.prototype.writeVarint64 had a typo for TProtocolException

- TCompactProtocol.prototype.readMapBegin had a typo between `kvtype` and
 `kvType`

- createMultiplexServer leaked a global var `processStatus`

- TFramedTransport had a line that was accidently copy pasted, leading
  to a global leak of `frameLeft`. (I created the patch the introduced
  this copy paste error in Thrift-1353, so I can confirm it was
  a mistake).

- createWebServer tried to check a non-existent var `route` and leaked
  a global `result`

Signed-off-by: Roger Meier <roger@apache.org>
2014-07-04 21:28:44 +02:00
Wade Simmons
35c8b97fbf fix TFramedTransport residual continuation
There were many bugs in the current TFramedTransport.receiver caused by
merge mistakes and bad patches. Simplify the logic so it is easier to
reason about and prevent future issues.

- THRIFT-2194 Fixed one bug with residual not being set
- THRIFT-2205 Reverted the above fix (by accident) and broke it further
  by including InputBufferUnderrunError in TFramedTransport (which is
  incorrect)

This patch cleans up TFramedTransport.receiver by only have one hold
over buffer instead of two (frame + residual).
2014-06-29 22:53:23 +02:00
Roger Meier
32f3982275 THRIFT-2578 Moving 'make cross' from test.sh to test.py
Patch: Chamila Dilshan Wijayarathna
2014-06-18 22:43:17 +02:00
Roger Meier
f8c1c989f2 THRIFT-847 Test Framework harmonization across all languages
Added
--port arg (=9090) Port number to listen
to nodejs server at lib/nodejs/test/server.js and added
--host arg (=localhost) Host to connect
--port arg (=9090) Port number to connect
to nodejs client at lib/nodejs/test/client.js

Patch: Chamila Dilshan Wijayarathna
2014-05-28 00:04:32 +02:00
ra
20aeba3e38 THRIFT-2511 Node.js compact protocol
Client: Node
Patch: Randy Abernethy

Adds Compact Protocol to Node.js, tests in testAll.sh and repairs all
library JSHint warnings.
2014-05-11 00:25:01 -07:00
Jens Geyer
6d1a83aa48 THRIFT-2506 Update TProtocolException error codes to be used consistently throughout the library
Patch: Jens Geyer
2014-05-03 00:49:05 +02:00
ra
779b9ac2ef THRIFT-2493:Node.js lib needs HTTP client
Client: node
Patch: Randy Abernethy

Clean up of many jshint warnings/errors, jsdoc for HttpConnect,
added support for https and Python to HttpConnect, added tests
for HttpConnect with https and promises.
2014-04-23 20:04:23 -07:00
ra
8f697cb649 THRIFT-2493:Node.js lib needs HTTP client
Client: node
Patch: Randy Abernethy

Adds http client to node.js along with tests.
2014-04-23 02:23:18 -07:00
ra
7201c0d38f THRIFT-2405:Node.js Multiplexer tests fail (silently)
Client: node
Patch: Randy Abernethy

Repairs client side multiplex protocol.
2014-04-22 06:37:37 -07:00
Roger Meier
a6415bc985 THRIFT-2325: SSL test certificates
CN for servername was ssltest instead of localhost
+ little update of README.md

Patch: Roger Meier
2014-04-07 23:45:19 +02:00
ra
1be80dce36 THRIFT-2446: cause servers to emit stream errors
Client: node
Patch: alexey

Mods Thrift Node Servers to emit stream errors

This closes #94
----
commit 296f296db1d415b1d2a7bd8168f48cec5766a210
Author: gruzovator <gruzovator@gmail.com>
Date: 2014-04-03T15:16:07Z
nodejs server stream error handling
2014-04-03 09:02:30 -07:00
ra
7f76e1d9f4 THRIFT-2443: node fails cross lang tests
Client: node
Patch: Randy Abernethy

adds support for recursive tests of i64 types and fixes cross
lang test failure with C++.
2014-04-02 12:31:05 -07:00
ra
a2e4e56598 THRIFT-2398:Improve Node Server Library
CLIENT: node
Patch: Randy Abernethy

Update node hello web example and line ending clean up.
2014-03-29 01:14:48 -07:00
Randy Abernethy
d60f9789db THRIFT-2398:Improve Node Server Library\nClient: Node\nPatch: Randy Abernethy\n\nGeneral server parameter harmonization and comments 2014-03-28 10:36:38 -07:00
jfarrell
55cd520edf THRIFT-2390: no close event when connection lost
Client: node
Patch: gruzovator <gruzovator@gmail.com>

Github Pull Request: This closes #83
----
commit 270183f0507afc4346486cb58b8a684174eb13db
Author: gruzovator <gruzovator@gmail.com>
Date:   2014-03-18T12:23:21Z

    fix for THRIFT-2390

    fix for THRIFT-2390 (no close event when connection lost)
2014-03-18 09:24:34 -04:00
henrique
5b78958864 fix broken license header and outdated note 2014-03-15 23:11:34 +01:00
Roger Meier
52744eed7b THRIFT-2397 Add CORS and CSP support for JavaScript and Node.js libraries
Patch: Randy Abernethy
2014-03-12 09:38:42 +01:00
henrique
2a7dccc8a0 THRIFT-2355 Add SSL and Web Socket Support to Node and JavaScript
Patch: Randy Abernethy
2014-03-07 22:16:51 +01:00
henrique
af26af6d25 THRIFT-2387 nodejs: external imports should be centralized in index.js
Patch: Pierre Lamot
2014-03-06 15:06:22 +01:00
henrique
312362314c THRIFT-2376 nodejs: allow Promise style calls for client and server
patch:  Pierre Lamot
2014-02-25 22:11:10 +01:00
Roger Meier
57b354b8f7 THRIFT-2369 Add ssl support for nodejs implementation
Patch: Pierre Lamot
2014-02-22 01:01:58 +01:00
henrique
2f51f327e3 THRIFT-2350 Add async calls to normal JavaScript
Patch: Randy Abernethy
2014-02-09 11:21:33 +01:00
henrique
a2de410531 THRIFT-2350 Add async calls to normal JavaScript
Patch: Randy Abernethy
2014-02-07 14:12:56 +01:00
Roger Meier
8909cbdf81 THRIFT-2327 nodejs: nodejs test suite should be bundled with the library
Patch: Pierre Lamot

further modifications by Roger Meier
- git mv instead of delete and add
- detect node or nodejs with configure.ac
- use exit instead of return within lib/nodejs/test/testAll.sh
2014-01-26 11:44:27 +01:00
henrique
216374ec4a THRIFT-2313 nodejs server crash after processing the first request when using MultiplexedProcessor/FramedBuffer/BinaryProtocol
patch: Pierre Lamot
2014-01-14 15:17:04 +01:00
Jens Geyer
b9d55220ce THRIFT-2205 Node.js Test Server to support test.js JavaScript Browser test and sundry fixes
Patch: Randy Abernethy, Pierre Lamot
2014-01-10 21:26:25 +01:00
Roger Meier
f161282558 nodejs: add NODE_PATH 2014-01-06 07:19:09 +01:00
Jens Geyer
2c4f306b0a THRIFT-2194 Node: Not actually prepending residual data in TFramedTransport.receiver
Patch: Justin Gallardo
2013-12-14 00:40:44 +01:00
Henrique Mendonça
e594dccc85 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/thrift
Conflicts:
	lib/nodejs/lib/thrift/static_server.js
2013-09-20 17:15:55 +02:00
Henrique Mendonça
a9e624811f THRIFT-2164 Add a Get/Post Http Server to Node along with examples
Client: nodejs
Patch: Randy Abernethy

small change to run on 0.6.x
2013-09-20 17:09:50 +02:00
Henrique Mendonça
7cf085e6c5 THRIFT-2164 Add a Get/Post Http Server to Node along with examples
Client: nodejs
Patch: Randy Abernethy

small change to run on 0.6.x
2013-09-20 16:47:02 +02:00
henrique
aff2f78b27 THRIFT-2167 nodejs lib throws error if options argument isn't passed
Client: nodejs
Patch: Randy Abernethy and Red Daly

also add examples to test makefile
2013-09-09 12:38:25 +02:00
henrique
2fdd916b8b THRIFT-2053 NodeJS: Support for Multiplexing Services
Client: nodejs
Patch: Remo Hertig
2013-08-28 14:03:34 +02:00
henrique
452dd5b42b THRIFT-1893 HTTP/JSON server/client for node.js
Client: nodejs
Patch: Phillip Campbell
2013-08-28 11:10:09 +02:00
henrique
5b8c9a9d4c THRIFT-2058:Add reconnect support to node.js library
Client: nodejs
Patch: Hamed Madani
2013-08-27 15:06:42 +02:00
Henrique Mendonça
27db434fd9 THRIFT-1659 Bring nodejs default transport in line with Java default transport 2013-06-09 22:20:25 +02:00
Henrique
08c34eae97 THRIFT-1967 Node.js tests don't cover all services
Patch: Henrique Mendonça

align with the tests we have for the original JS and C++ libraries
it also corrects two small bugs on the test server
and add nodejs to travis and make check
2013-05-11 20:41:22 +02:00
Henrique
99be0275e1 THRIFT-1957 NodeJS TFramedTransport and TBufferedTransport read bytes as unsigned
Patch: Matthew Imrie

Add method to binary.js to properly read a byte type as
signed Changed transport.js readByte methods in
TFramedBuffer and TBufferedTransport to use binary.js
readByte method Added unit test for binary.js readByte
method to binary.test.js and changed test harness to
nodeunit.
2013-05-11 01:21:52 +02:00
Roger Meier
565517a16c subversion, thanks and good bye
;-r
2013-03-22 21:08:39 +01:00
Roger Meier
0193149842 THRIFT-1801 Sync up TApplicationException codes across languages and thrift implementations
Patch: Andrew Cox
2012-12-22 21:31:03 +01:00
Henrique Mendonca
50fb50176f Thrift-1353: Switch to performance branch, get rid of BinaryParser
Client: Node.js
Patch: Wade Simmons

add missing files and licenses



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1402414 13f79535-47bb-0310-9956-ffa450edef68
2012-10-26 07:29:47 +00:00
Jake Farrell
ee4aaaee62 THRIFT-1739: missing license header in node.js files
Client: node.js
Patch: Jake Farrell

Adding license headers to node.js files.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1401134 13f79535-47bb-0310-9956-ffa450edef68
2012-10-23 00:48:17 +00:00
Henrique Mendonca
d407b2d1ca Thrift-1353: Switch to performance branch, get rid of BinaryParser
Client: Node.js
Patch: Wade Simmons

"binary" fields will be returned as Buffers instead of Strings
"int64" fields will be returned as http://github.com/broofa/node-int64 objects


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1401081 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 21:06:14 +00:00
Henrique Mendonca
8d410de0a0 Thrift-1738: node.js: export transport and protocol so they can be used outside the cassandra/server context
Client: Node.js
Patch: Barbara Raitz

exports and parse example.


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1400991 13f79535-47bb-0310-9956-ffa450edef68
2012-10-22 18:35:30 +00:00
Jake Farrell
6fcecd45a7 Updating Thrift trunk version to 1.0.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1397293 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 20:34:25 +00:00
Henrique Mendonca
41dfe6fd5e Thrift-1701:node.js TBufferedTransport buffer corruption
Patch: Marshall Roch

fix buffer copy method calls


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1389517 13f79535-47bb-0310-9956-ffa450edef68
2012-09-24 19:11:19 +00:00
Roger Meier
eaa61d8fda THRIFT-1267 Node.js can't throw exceptions
Patch: Henrique Mendonca

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1230797 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 21:38:29 +00:00
Jake Farrell
9901069442 Updating trunk to 0.9.0 version.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1208214 13f79535-47bb-0310-9956-ffa450edef68
2011-11-30 02:09:46 +00:00
Roger Meier
289cbb2e4c THRIFT-1431 Rename 'sys' module to 'util'
Patch: David Worms

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1205576 13f79535-47bb-0310-9956-ffa450edef68
2011-11-23 20:44:09 +00:00
Jake Farrell
e24ba11cbb 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
2011-11-12 14:18:30 +00:00
Roger Meier
857a8b8bf8 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
2011-10-14 06:35:28 +00:00
Jake Farrell
9c76258564 updating trunk from 0.7.0-dev to 0.8.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1157426 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 21:29:36 +00:00
Roger Meier
345ecc739a THRIFT-690 add new ApplicationExceptions (INTERNAL_ERROR, PROTOCOL_ERROR) to the following languages: as3, c_glib, cocoa, cpp, erl, hs, js, nodejs, ocaml, perl, py, rb
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153412 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 09:49:27 +00:00
Roger Meier
b34b83e89d THRIFT-1158 Node.js - package.json used by npm is invalid
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1097229 13f79535-47bb-0310-9956-ffa450edef68
2011-04-27 20:14:33 +00:00
Roger Meier
5c819c084c THRIFT-1129 Add BufferedTransport (non-framed) to Node.js library
Patch: Wade Simmons


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1090565 13f79535-47bb-0310-9956-ffa450edef68
2011-04-09 11:10:04 +00:00
Roger Meier
6d8219c105 THRIFT-6 update version info
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1078952 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 21:16:46 +00:00
Roger Meier
7f979e4f78 THRIFT-1042 Fix TApplicationException.read
Patch: Wade Simmons


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1062377 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 10:57:03 +00:00
Roger Meier
90443f4e11 THRIFT-1044 Fix JavaScript inheritance
Patch Wade Simmons


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1062279 13f79535-47bb-0310-9956-ffa450edef68
2011-01-22 21:35:48 +00:00
Roger Meier
4b3f1c3181 THRIFT-1043 Fix how the length of a map is calculated
Patch: Wade Simmons


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1062278 13f79535-47bb-0310-9956-ffa450edef68
2011-01-22 21:32:50 +00:00
T Jake Luciani
0c124bb94f THRIFT-1033: node.js target and lib
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1056613 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 03:49:16 +00:00