Commit Graph

108 Commits

Author SHA1 Message Date
Ozan Can Altiok
e46419b5ec THRIFT-4476: Typecasting problem on double list items,
emitting doubles with high precision
Client: cpp
Client: erl
Client: java
Client: js
Client: py

This closes #1511
2018-03-20 16:28:15 -04:00
James E. King III
2b09dfed9c THRIFT-4509: add jslint and fix build script output 2018-03-13 10:12:46 -04:00
Philip Frank
5066eb484b THRIFT-4509:
* switch from grunt-external-daemon and grunt-shell to grunt-shell-spawn
* update grunt to 1.0.2
* always use local copy of jquery and qunit
* commit the package-lock files for npm keep versions stable
Client: js

This closes #1506
2018-03-13 10:12:04 -04:00
Philip Frank
50862915cc THRIFT-4024: Skip() throws TProtocolException.INVALID_DATA on unknown data types
Client: js

This closes #1503
2018-03-09 17:59:21 -05:00
Philip Frank
55ddf19cca THRIFT-4436: port nodejs changes from THRIFT-3748 to js lib,
test for serialization of nested list,
run all tests when building js lib
Client: js

This closes #1457
2018-03-05 08:20:14 -05:00
Alex Volanis
7004a61e44 THRIFT-(1418|1507|3983|4120|4178|4259|4294): Multiple issues
Client: java

THRIFT-4294: Java Configure Fails for Ant >= 1.10
THRIFT-4259: Thrift does not compile due to Ant Maven task errors
THRIFT-4178: Java libraries missing from package when using cmake
THRIFT-3983: libthrift is deployed on central with pom packaging
             instead of jar
THRIFT-1507: Maven can't download resource from central when behind
             a proxy and won't use local repository
THRIFT-1418: Compiling Thrift from source: Class
             org.apache.tools.ant.taskdefs.ConditionTask doesn't
             support the nested "typefound" element

Refactor CMake install hook to allow using "sudo make install/fast"
which avoids the THRIFT-1507 and THRIFT-1418 issues.

New Gradle based build system for Thrift Java Library

* Add Gradle 4.4.1 Wrapper artifacts to enable builds
Using the Gradle Wrapper helps normalize the builds on all platforms
so we use a consistent build tool independent of package managers.

The Gradle build logic was partitioned into multiple specific
scripts to simplify understanding and maintenance of the build.

This is now hooked into CMake and Autoconf processing steps
and can build/test/publish to Maven. The README.md was updated
to illustrate the new build options and add some documentation
on the requirements for Maven publication.

Cleaned up the CMake files to reduce reliance on file globbing
which is known to cause confusion when multiple users contribute.

* Fix two minor issues in Javadoc and unit test

Return values were undeclared in Javadoc
Test was asserting on the wrong test object instance

* Create simple runner scripts for cross-check

Using Gradle as a java execution wrapper is too heavy.
I simplified the test client/server execution by using a
three generated scripts in the build directory direcly
callable by the cross-check test harness.

* Cleanup the remaining Ant build scripts

Pulled the Maven Ant task properties out of the Java build
since they are no longer used there.
Deleted the no longer used build.xml and build.properties
files from the Java build.
Made each Ant build own the Maven Ant task details in their
build.properties file.

* Fix the build issue with Java SSL in the ubuntu-trusty container

The latest Trusty JDK7 builds seem to have encountered this issue
because the OpenJDK removed the SunEC algorithms.

* Update the developer info as requested in review

Use the generic Apache Thrift developer list for contact information

* Add Clover Code coverage for easy access by developers

Clover plugin for Gradle was applied and configured which enables
code coverage reports to be available on demand via a command line
option. The documentation in the README.md was enhanced to give
the details of this change and how to take advantage of it.
2018-01-24 12:28:55 -05:00
Philip Frank
8fdd610ba7 THRIFT-4406: Optionally generate ES6 compatible JavaScript where service methods return Promises
includes tests and TypeScript support
Client: js

This closes #1452
2018-01-04 09:15:24 -05:00
Philip Frank
0a84eae1db THRIFT-4437: JavaScript WebSocket - fix duplicate callbacks and enable ThriftWS test suite
Client: js

This closes #1450
2017-12-28 07:57:36 -05:00
Philip Frank
05a08ce9c1 THRIFT-4403: Fix incorrect usage of 'this'
Client: js

This closes #1437
2017-12-04 11:03:38 -05:00
James E. King, III
619218cd7f THRIFT-4343: enable nodejs-8.x on ubuntu-artful image and update grunt-jsdoc
also fix a perl failure as we were using a deprecated language feature
in the cross test server for perl.
Client: nodejs, perl

This closes #1406
2017-10-29 10:15:10 -04:00
James E. King, III
0ad20bdbfe THRIFT-4351: use travis build stages to optimize build,
avoiding duplicate rebuilds of the same image, and also
allow personal docker hub repositories for private fork
builds to be optimized. Move ubsan build to artful image
because it catches more stuff and fix what was found.

THRIFT-4345: solidify docker build strategy for maximum
coverage: trusty, xenial, artful as stock as they can be

THRIFT-4344: add top level language summary markdown and
update readme with a new image on the layered architecture

THRIFT-3847: remove VERSION macro from config.h which
was causing a conflict on artful builds.

THRIFT-4359: fix haxe map/set decode when key is binary,
as a missing break statement caused it to use an int
during decode

This closes #1389
2017-10-19 11:29:04 -04:00
James E. King, III
48ba736a58 THRIFT-4131: js / WebSocket / fix handling oneway methods
Client: js
Patch: Martin Hejnfelt <mh@newtec.dk>

This closes #1372
2017-09-24 20:35:01 -07:00
James E. King, III
699b5bc47a THRIFT-4064: update node dependencies
This closes #1359
2017-09-21 07:02:51 -07:00
Kazuki Matsuda
b909a3897b THRIFT-3627 fix missing basic code style consistency of JavaScript.
Client: js

This closes #858
This closes #1243
2017-04-06 19:12:28 -04:00
James E. King, III
cf25489402 Build fails using Java 1.8 with Ant < 1.9
Client: Java
Patch: Adinata <mail.dieend@gmail.com>

This closes #1060
2017-01-25 20:34:04 -05:00
Nobuaki Sukegawa
4b7dbe3cf2 THRIFT-3825 Javascript test dependency is no longer available 2016-06-09 04:04:18 +09:00
Randy Abernethy
3ca89e60d2 THRIFT-2821: Add HTTP header support to JavaScript lib
Client: JavaScript lib
Patch: David Sautter

Adds a customHeaders field to the XHR transport options
supporting multiple key-value custom HTTP headers to pass
with the request.
2016-04-13 06:24:57 -07:00
Liyin Tang
f5399b2f55 THRIFT-3714 Define TProtocolException in js/src/thrift.js
This closes #926
2016-03-11 00:06:03 +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
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
01ede042aa THRIFT-3360 Improve cross test servers and clients further
This closes #629
2015-09-28 20:38:37 +02:00
Henrique Mendonça
15d904240e THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments
Patch:  Igor Tkach

This closes #519
2015-06-25 22:31:41 +10:00
Roger Meier
0856273095 fix whitespaces detected by .editorconfig 2015-06-14 22:30:22 +02:00
Henrique Mendonça
c0e4a8dc07 Revert "THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments"
This reverts commit 1568aef7d4.
2015-06-01 23:23:22 +10:00
Henrique Mendonça
1568aef7d4 THRIFT-3122 Javascript struct constructor should properly initialize struct and container members from plain js arguments
Client: Node and JS
Patch: Igor Tkach

    This closes #476
2015-05-27 22:15:46 +10:00
Nobuaki Sukegawa
113b638790 THRIFT-3148 Markdown links to coding_standards are dead
This closes #491
2015-05-13 21:40:26 +02:00
Nobuaki Sukegawa
72f8809290 THRIFT-3141 Improve logging of JavaScript test 2015-05-10 18:25:56 +02:00
Nobuaki Sukegawa
63b5120c78 THRIFT-3142 Make JavaScript use downloaded libraries 2015-05-10 18:25:56 +02:00
Nobuaki Sukegawa
fbc6977381 THRIFT-3140 ConcurrentModificationException is thrown by JavaScript test server 2015-05-10 18:25:56 +02:00
Nobuaki Sukegawa
42bc88cfbb THRIFT-3139 JS library test is flaky 2015-05-10 18:25:56 +02:00
Nobuaki Sukegawa
2c4edd88b1 THRIFT-3134 Remove use of deprecated "phantom.args" 2015-05-10 18:25:56 +02:00
henrique
eec445ef8a THRIFT-2674 JavaScript: declare Accept: and Content-Type: in request 2015-05-04 21:37:51 +10:00
henrique
55c3abcb63 Revert "THRIFT-2674 JavaScript: declare Accept: and Content-Type: in request"
This reverts commit 1e723d931e.
2015-05-04 21:05:48 +10:00
henrique
1e723d931e THRIFT-2674 JavaScript: declare Accept: and Content-Type: in request
Patch: Stig Bakken

This closes #468
2015-05-01 14:09:00 +10:00
Randy Abernethy
ded6401da4 THRIFT-2999 remove CR/LF post .getattributes text = auto
Client: all
Patch: Randy Abernethy
2015-02-15 11:28:40 -08:00
Konrad Grochowski
3bc6424c76 THRIFT-2724 - Coding standards template added all over project
Client: All
Patch: Konrad Grochowski

This closes #371
2015-02-05 12:15:19 +01:00
Randy Abernethy
5bde9f75b8 THRIFT-2970:grunt-jsdoc fails due to dependency issues
Client: JS Lib
Patch: Randy Abernethy
2015-01-31 06:19:21 -08:00
Konrad Grochowski
f9c4be80a5 line endings fix
git merge on linux can fail due to wrong line endings...
2015-01-09 11:32:26 +01:00
radekg
1d30558c8c THRIFT-2923 Initialise tpos and tstack in the Protocol constructor so writing to a protocol without a message does not fail.
This closes: #342
2015-01-04 13:55:52 +01:00
Jens Geyer
8bcfdd98ae THRIFT-2886 Integrate binary type in standard Thrift cross test
Client: C_glib, C++, D, Erlang, Go, Haskell, Lua, Java/Me, JavaScript, Node, Ocaml, Perl, PHP, Python, Ruby
Patch: Jens Geyer

This closes #341

Minimal server-side implementations and TODO stubs for various languages to let "make check" succeeed.
Not contained in this patch and still TODO:
- client side implementations, i.e. calls to testBinary() and appropriate tests
- server side hex printout missing for some languages
2015-01-03 17:37:54 +01:00
Konrad Grochowski
3b5dacba44 THRIFT-2849: spelling errors fixed using codespell tool
Client: All
Patch: Anatol Pomozov

This closes #281
2014-11-24 10:55:31 +01:00
Randy Abernethy
8c16ed79c4 THRIFT-2823:grunt tests failing
Client: JS
Patch: Randy Abernethy

The lib/js/test/build.xml was copying thrift.js incorrectly.
2014-11-15 21:29:18 -08:00
Randy Abernethy
b2652300c0 THRIFT-2823: grunt jsjq test fail
Client: JS
Patch: Randy Abernethy

Node no longer supports loading thrift.js from
parent dir, moved to test/build
2014-11-15 12:02:57 -08:00
Roger Meier
275278e00c lib/js/test/test.html: fix thrift.js include 2014-10-09 01:28:31 +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
5057b4cb5a THRIFT-2750: makes targets for get explicit
Client: Java and JavaScript Libs
Patch: Randy Abernethy

This fixes the build.xml for the Java server used to
test JavaScript. Older ants fail when get is used
with a target directory and not an explicit file name.
2014-09-30 17:34:44 -07:00
Liangliang He
5d6378f61e fix js list<map> support 2014-08-23 22:22:46 +02:00
Jens Geyer
329d59aab0 THRIFT-2576 Implement Thrift.Protocol.prototype.skip method in JavaScript library
Client: JavaScript
Patch: Hyungsul Kim

This closes #141
2014-06-19 22:11:53 +02:00
henrique
d0265c7052 THRIFT-2522 TypeScript extension for Thrift Compiler
add info and format js/README.md

    This closes #124

----
commit ada1016fdd
Author: Pascal Schweizer <pasci@hispeed.ch>
Date:   2014-03-21T16:18:59Z

    THRIFT-2522 TypeScript extension for Thrift Compiler

----
2014-05-19 19:31:09 +02:00