Commit Graph

6725 Commits

Author SHA1 Message Date
Jens Geyer
423ab3997d bump version 2023-02-15 22:20:10 +01:00
Jens Geyer
c30ee69ef6 Added reference to existing netstd README.md file to satisfy nuget package upload 2023-02-14 23:33:29 +01:00
Jens Geyer
2f2696bdf6 release branch 0.18.0 2023-02-07 00:12:09 +01:00
Jens Geyer
4eee681527 fix veralign.sh 2023-02-06 23:40:56 +01:00
dependabot[bot]
61d3e747ad Bump http, fixnum, logging, dart_style, build_test, build_web_compilers, mockito and build_runner
Bumps [http](https://github.com/dart-lang/http/tree/master/pkgs), [fixnum](https://github.com/dart-lang/fixnum), [logging](https://github.com/dart-lang/logging), [dart_style](https://github.com/dart-lang/dart_style), [build_test](https://github.com/dart-lang/build), [build_web_compilers](https://github.com/dart-lang/build), [mockito](https://github.com/dart-lang/mockito) and [build_runner](https://github.com/dart-lang/build). These dependencies needed to be updated together.

Updates `http` from 0.12.2 to 0.13.5
- [Release notes](https://github.com/dart-lang/http/releases)
- [Commits](https://github.com/dart-lang/http/commits/HEAD/pkgs)

Updates `fixnum` from 0.10.11 to 1.1.0
- [Release notes](https://github.com/dart-lang/fixnum/releases)
- [Changelog](https://github.com/dart-lang/fixnum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/fixnum/compare/0.10.11...v1.1.0)

Updates `logging` from 0.11.4 to 1.1.1
- [Release notes](https://github.com/dart-lang/logging/releases)
- [Changelog](https://github.com/dart-lang/logging/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/logging/compare/0.11.4...v1.1.1)

Updates `dart_style` from 1.3.10 to 2.2.4
- [Release notes](https://github.com/dart-lang/dart_style/releases)
- [Changelog](https://github.com/dart-lang/dart_style/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/dart_style/compare/1.3.10...v2.2.4)

Updates `build_test` from 0.10.12+1 to 2.1.6
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/compare/build_test-v0.10.12...build_test-v2.1.6)

Updates `build_web_compilers` from 2.12.0 to 3.2.7
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/compare/build_web_compilers-v2.12.0...build_web_compilers-v3.2.7)

Updates `mockito` from 4.1.4 to 5.3.2
- [Release notes](https://github.com/dart-lang/mockito/releases)
- [Changelog](https://github.com/dart-lang/mockito/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/mockito/compare/4.1.4...5.3.2)

Updates `build_runner` from 1.11.1+1 to 2.3.3
- [Release notes](https://github.com/dart-lang/build/releases)
- [Commits](https://github.com/dart-lang/build/compare/build_runner-v1.11.1...build_runner-v2.3.3)

---
updated-dependencies:
- dependency-name: http
  dependency-type: direct:production
- dependency-name: fixnum
  dependency-type: direct:production
- dependency-name: logging
  dependency-type: direct:production
- dependency-name: dart_style
  dependency-type: direct:production
- dependency-name: build_test
  dependency-type: direct:production
- dependency-name: build_web_compilers
  dependency-type: direct:production
- dependency-name: mockito
  dependency-type: direct:production
- dependency-name: build_runner
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06 23:17:18 +01:00
Yuxuan 'fishy' Wang
14489341ce go: Use new atomic types introduced in go1.19
Those come with nocopy protection, so they can prevent bugs like people
passing the types by value instead of by pointer from the compiler.
2023-02-02 16:00:26 -08:00
dependabot[bot]
d21188a627 Bump json5 from 2.1.1 to 2.2.3
Bumps [json5](https://github.com/json5/json5) from 2.1.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.1.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 22:09:01 +01:00
dependabot[bot]
27a3311a7d Bump minimatch from 3.0.4 to 3.0.8 in /lib/ts
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.0.8.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.0.8)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 22:06:36 +01:00
dependabot[bot]
b973d11caa Bump minimatch from 3.0.4 to 3.0.8 in /lib/js
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.0.8.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.0.8)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 22:06:24 +01:00
dependabot[bot]
e59defd540 Bump minimatch from 3.0.4 to 3.1.2
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 22:06:13 +01:00
dependabot[bot]
d89e37047f Bump qs from 6.5.2 to 6.5.3 in /lib/ts
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 22:05:39 +01:00
dependabot[bot]
41621ee4c2 Bump qs from 6.5.2 to 6.5.3
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 22:05:20 +01:00
Yuxuan 'fishy' Wang
b94eac7ca0 Update supported go versions
Following our policy regarding supported go releases, change the
supported go versions to 1.19.* and 1.20.* with the release of go 1.20.
2023-02-02 12:59:53 -08:00
Christian Westberg
f223bd3b54 Improve enum support for json generator
Client: [json]
2023-01-16 22:37:17 +01:00
Yuxuan 'fishy' Wang
b39370ec3b THRIFT-5601: Fix forward typedef in go compiler
Client: go

While https://github.com/apache/thrift/pull/951 fixed the bug with
forward typedef used in container values, it also introduced a bug that
broke forward typedef used in other cases in go code. Limit the fix of
it to only the container key and value types to fix other cases.
2023-01-03 10:49:04 -08:00
dejank-isystem
916ae8b813 py server: Listen also on IPv4 2023-01-01 11:55:31 +01:00
dejank-isystem
277feceaed netstd Server: Add IPv6
Unlike servers in other languages (tested: cpp & python), netstd (Csharp) listens only on IPv4.
This can cause errors and delays on clients if they use "localhost" for hostname.
2023-01-01 11:55:31 +01:00
Christopher Friedt
9c0de2d1eb lib: c_glib: fix compile error due to missing unistd.h
Previously, the c_glib library tests failed to compile due
to implicit function declarationsn for `sleep()`, `fork()`,
and `alarm()`.

Include `<unistd.h>` to address all of those issues (on
platforms that have `<unistd.h>`).

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2022-11-25 09:08:21 +01:00
Chris Friedt
850c61f608 lib: cpp: transport: include thrift/config.h in TFDTransport
The `PlatformSocket.h` defines some macros that reference
symbols in the libc without including the necessary headers.

Moreover, the headers are protected by config macros
(i.e. `#ifdef HAVE_UNISTD_H`). This makes header ordering
rather fragile.

Explicitly include `<thrift/config.h>` and conditionally
include `<unistd.h>` prior to referencing them.

A future improvement to reduce fragility would be to add
includes directly in `PlatformSocket.h`.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-11-22 21:56:29 +01:00
Chris Friedt
779deabf0e lib: cpp: automake: ship thrift/numeric_cast.h
The `<thrift/numeric_cast.h>` header should be part of the
installed thrift artifacts since it is included by other
installed headers.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-11-22 21:56:29 +01:00
Jens Geyer
27ff942b5c THRIFT-5669 "required" keyword is illegal in a "throws" clause 2022-11-22 11:04:59 +01:00
Triton
9a4e998b61 [docs] Add missing slash to avoid empty cell
A missing slash in the end `</td>` tag of field cell for Delphi and
.NET Standard was generating an additional empty cell, breaking the
table (and generating misleading info).

[skip ci]
2022-11-20 22:53:18 +01:00
Christopher Friedt
6e9cbbd059 lib: cpp: TTransportException: create thrift::numeric_cast
This adds an equivalent implementation of `boost::numeric_cast`
written purely in standard c++.

The implementation is relatively trivial and reduces the
dependency on `boost`.

Adapted from
https://stackoverflow.com/a/49658950/5636218

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-11-20 12:05:39 +01:00
Chris Friedt
f525e4cbb6 THRIFT-5666: lib: cpp: prefer poll.h over sys/poll.h
The `<sys/poll.h>` header is not actually where `poll(2)` must be
defined according to the spec. However, it may be the case that
some random UNIX-like OS uses `<sys/poll.h>` instead.

Both use cases can be supported simply by including the proper
header, if it exists.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-11-20 12:04:03 +01:00
Chris Friedt
8f83e46250 THRIFT-5663: lib: cpp: usleep was not declared in this scope
Several build failures in Travis resulted from an include-order
problem in `TFileTransport.cpp`. It would probably be better to
simply include the right header files in `PlatformSocket.h`
but it's possible that might slow down compilation.

```
error: 'usleep' was not declared in this scope
..
 #  define THRIFT_SLEEP_USEC usleep
```

Also fixing the same (potential) problem in `TFDTransport.cpp`.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-11-20 12:02:44 +01:00
Kino Roy
c495448024
THRIFT-5657: Use Swift 5.7 in travis build (#2719) 2022-11-20 14:52:04 +08:00
Jens Geyer
8cf48c9350 switched delphi keyword tables from map to set and array init 2022-11-18 16:23:43 +01:00
Jens Geyer
318fb9c2f1 switched netstd keywords from map to set and array init 2022-11-18 16:23:43 +01:00
Jens Geyer
56281fb972 FIX: make dist error "No rule to make target 'go.sum', needed by 'distdir'. Stop." 2022-11-18 08:51:25 +01:00
Jens Geyer
75e445ae8d THRIFT-3956 Java keywords that are legal in IDL can lead to generated code that will not compile 2022-11-18 08:51:25 +01:00
Yuxuan 'fishy' Wang
e8353cb46e Use multi-module to cleanup top level go.mod
Client: go

The go library itself does not have any third-party dependencies. We
have one third party dependency from the test code, which kind of
polluted from top-level go.mod file to the users of thrift go library.

We previous tried to clean that up by creating go.mod file at
lib/go/thrift, which caused issues to the release process and thus
reverted.

Use multi-module to separate tests requiring mock to their own modules
so that we can keep the top-level go.mod file clean.

Also some minor fixes on the github actions go workflow.
2022-11-02 15:44:07 -07:00
Yuxuan 'fishy' Wang
2acfe0fc7a THRIFT-5650: Implement UUID in Go compiler
Client: go
2022-10-26 14:40:10 -07:00
Christopher Friedt
cea5559ecf lib: cpp: protocol: declare when methods override
This avoids compiler warnings about inconsistent use
of `override`.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-10-26 22:48:43 +02:00
zeshuai007
5ef174b5c1 Implement Validate message reply seq ids 2022-10-25 22:42:09 +02:00
Wu Jian Ping
22aa3e5286 clear retry timer first then emit close event 2022-10-25 22:36:49 +02:00
Wu Jian Ping
8940715a1b fix reconnect issue for nodejs 2022-10-25 22:36:49 +02:00
Chris Friedt
6aba57bb6b lib: cpp: TOutput: add zephyr-specific strerror_s implementation
In Zephyr, optimize `TOutput::strerror_s` to minimize (stack)
space. The string error table is in ROM in any case, so string
values will not be overwritten (if they happen to be compiled-in).

Signed-off-by: Chris Friedt <cfriedt@fb.com>
2022-10-25 22:27:49 +02:00
Chris Friedt
0bc818f363 lib: cpp: TProtocol: support zephyr byteorder
Zephyr's byteorder is defined in
`<zephyr/sys/byteorder.h>`. However, the `bswap_xx`
macros are also defined there. They need to be `#undef`d
first when building for big-endian architectures, since
the Thrift byteorder macros are no-ops for little-endian
architectures.

Signed-off-by: Chris Friedt <cfriedt@fb.com>
2022-10-25 22:20:47 +02:00
Chris Friedt
0a29a48e5a lib: cpp: add missing functional and cmath includes
Manual runs of the autotools docker script were failing due to
`std::functional` not being a member of `std`. Similar error
messages for `std::ceil` and `std::log`.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-10-23 22:11:55 +02:00
Chris Friedt
ef3d52e04c build: docker: scripts: autotools: do not fail if .m2/ exists
Previously, when doing manual runs inside of the docker container,
the `autotools.sh` script would fail if the `.m2/` directory already
existed. This was a minor annoyance.

Simply pass the `-p` flag to `mkdir`.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-10-23 22:08:51 +02:00
Chris Friedt
efea697501 lib: cpp: thrift: include functional in TServerFramework
Use of `std::placeholders::_1` requires `<functional>`.

Signed-off-by: Chris Friedt <cfriedt@fb.com>
2022-10-23 11:17:47 +02:00
Yuxuan 'fishy' Wang
19c13b4cc6 THRIFT-5650: Implement UUID in Go library
Client: go

This is only the library part of THRIFT-5650. I still have some open
questions for the compiler part so that will be done later.

While I'm here, also made some changes to go CI process:

* Update ubuntu-bionic to use go 1.18 for travis
* Update ubuntu-jammy to use the latest go 1.19.x for travis
* Run both go 1.18 and 1.19 for github actions
* Also run test/go tests for github actions
2022-10-21 10:36:06 -07:00
Kino Roy
baa0daa478
THRIFT-5653: Update TType.uuid raw value to 16 (#2717)
Removes non-standard utf8 type with raw value 16 and replaces uuid raw value with 16
2022-10-21 15:20:35 +08:00
Jens Geyer
cd7a2aa098 THRIFT-5656 Escape Delphi keywords with '&' prefix instead of '_' suffix
Client: Delphi
Patch: Jens Geyer
2022-10-17 21:25:37 +02:00
Jens Geyer
0b1e9513b4 THRIFT-5652 IDL uuid literals can be improved
Compiler (general)
Patch: Jens Geyer

This closes #2714
2022-10-16 12:04:49 +02:00
Jens Geyer
ec0141cc55 * THRIFT-4655 Parser fails on the word "from"
Client: Compiler (general)
Patch: Jens Geyer

This also fixes an unhandled "normalize" case with enums in netstd that came up during tests for this ticket.

This closes #2715
2022-10-16 11:41:33 +02:00
Jiayu Liu
9207b28b7d
fix various java codestyle issues (#2710)
* fix various java codestyle issues

* Update lib/java/src/main/java/org/apache/thrift/server/TSaslNonblockingServer.java
2022-10-15 16:53:55 +08:00
dependabot[bot]
439778ae44 Bump junit from 4.11 to 4.13.1 in /contrib/thrift-maven-plugin
Bumps [junit](https://github.com/junit-team/junit4) from 4.11 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.11.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.11...r4.13.1)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 23:25:11 +02:00
Jens Geyer
3e0e0cc06f Update contrib/thrift-maven-plugin/pom.xml
Co-authored-by: Jiayu Liu <Jimexist@users.noreply.github.com>
2022-10-14 22:51:36 +02:00
herocms
f57b8e7626 update com.google.guava:guava 14.0.1 to 30.0-jre 2022-10-14 22:51:36 +02:00