Skip to content

Commit

Permalink
Merge pull request #1642 from daneshk/2201.8.x
Browse files Browse the repository at this point in the history
[2201.8.x] Update the native protobuf version
  • Loading branch information
daneshk authored Sep 27, 2024
2 parents 1f56ead + 5be9851 commit 2594ff9
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 45 deletions.
3 changes: 2 additions & 1 deletion ballerina-tests/tests/03_bidirectional_streaming_client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ isolated function testBidiStreamingDefaultHttpsPortWithNoService() returns grpc:

string|grpc:Error? err = strClient->receiveString();
test:assertTrue(err is grpc:Error);
test:assertTrue((<grpc:Error>err).message().startsWith("Connection refused: "));
test:assertTrue((<grpc:Error>err).message().startsWith("Connection refused: "),
msg = "Failed with error: " + (<grpc:Error>err).message());
}
}
31 changes: 16 additions & 15 deletions ballerina-tests/tests/74_route_guide_with_reflection_client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,22 @@ function testRouteGuideFileByFilenameReflection() returns error? {
},
"file_descriptor_response": {
"file_descriptor_proto": [10,30,103,111,111,103,108,101,47,112,114,111,116,111,98,117,102,47,119,114,97,112,
112,101,114,115,46,112,114,111,116,111,18,15,103,111,111,103,108,101,46,112,114,111,116,111,98,117,102,
34,28,10,11,68,111,117,98,108,101,86,97,108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,1,34,27,
10,10,70,108,111,97,116,86,97,108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,2,34,27,10,10,73,
110,116,54,52,86,97,108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,3,34,28,10,11,85,73,110,116,
54,52,86,97,108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,4,34,27,10,10,73,110,116,51,50,86,97,
108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,5,34,28,10,11,85,73,110,116,51,50,86,97,108,117,
101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,13,34,26,10,9,66,111,111,108,86,97,108,117,101,18,13,10,
5,118,97,108,117,101,24,1,32,1,40,8,34,28,10,11,83,116,114,105,110,103,86,97,108,117,101,18,13,10,5,118,
97,108,117,101,24,1,32,1,40,9,34,27,10,10,66,121,116,101,115,86,97,108,117,101,18,13,10,5,118,97,108,117,
101,24,1,32,1,40,12,66,131,1,10,19,99,111,109,46,103,111,111,103,108,101,46,112,114,111,116,111,98,117,
102,66,13,87,114,97,112,112,101,114,115,80,114,111,116,111,80,1,90,49,103,111,111,103,108,101,46,103,111,
108,97,110,103,46,111,114,103,47,112,114,111,116,111,98,117,102,47,116,121,112,101,115,47,107,110,111,
119,110,47,119,114,97,112,112,101,114,115,112,98,248,1,1,162,2,3,71,80,66,170,2,30,71,111,111,103,108,
101,46,80,114,111,116,111,98,117,102,46,87,101,108,108,75,110,111,119,110,84,121,112,101,115,98,6,112,
114,111,116,111,51]
112,101,114,115,46,112,114,111,116,111,18,15,103,111,111,103,108,101,46,112,114,111,116,111,98,117,102,34,
35,10,11,68,111,117,98,108,101,86,97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,40,1,82,5,118,97,
108,117,101,34,34,10,10,70,108,111,97,116,86,97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,40,2,82,
5,118,97,108,117,101,34,34,10,10,73,110,116,54,52,86,97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,
40,3,82,5,118,97,108,117,101,34,35,10,11,85,73,110,116,54,52,86,97,108,117,101,18,20,10,5,118,97,108,117,
101,24,1,32,1,40,4,82,5,118,97,108,117,101,34,34,10,10,73,110,116,51,50,86,97,108,117,101,18,20,10,5,118,97,
108,117,101,24,1,32,1,40,5,82,5,118,97,108,117,101,34,35,10,11,85,73,110,116,51,50,86,97,108,117,101,18,20,
10,5,118,97,108,117,101,24,1,32,1,40,13,82,5,118,97,108,117,101,34,33,10,9,66,111,111,108,86,97,108,117,101,
18,20,10,5,118,97,108,117,101,24,1,32,1,40,8,82,5,118,97,108,117,101,34,35,10,11,83,116,114,105,110,103,86,
97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,40,9,82,5,118,97,108,117,101,34,34,10,10,66,121,116,
101,115,86,97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,40,12,82,5,118,97,108,117,101,66,131,1,10,
19,99,111,109,46,103,111,111,103,108,101,46,112,114,111,116,111,98,117,102,66,13,87,114,97,112,112,101,114,
115,80,114,111,116,111,80,1,90,49,103,111,111,103,108,101,46,103,111,108,97,110,103,46,111,114,103,47,112,
114,111,116,111,98,117,102,47,116,121,112,101,115,47,107,110,111,119,110,47,119,114,97,112,112,101,114,115,
112,98,248,1,1,162,2,3,71,80,66,170,2,30,71,111,111,103,108,101,46,80,114,111,116,111,98,117,102,46,87,101,
108,108,75,110,111,119,110,84,121,112,101,115,98,6,112,114,111,116,111,51]
}
});
check streamingClient->complete();
Expand Down
31 changes: 16 additions & 15 deletions ballerina-tests/tests/75_packaging_with_reflection_client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,22 @@ function testPackagingFileByFilenameReflection() returns error? {
},
"file_descriptor_response": {
"file_descriptor_proto": [10,30,103,111,111,103,108,101,47,112,114,111,116,111,98,117,102,47,119,114,97,112,
112,101,114,115,46,112,114,111,116,111,18,15,103,111,111,103,108,101,46,112,114,111,116,111,98,117,102,
34,28,10,11,68,111,117,98,108,101,86,97,108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,1,34,27,
10,10,70,108,111,97,116,86,97,108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,2,34,27,10,10,73,
110,116,54,52,86,97,108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,3,34,28,10,11,85,73,110,116,
54,52,86,97,108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,4,34,27,10,10,73,110,116,51,50,86,97,
108,117,101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,5,34,28,10,11,85,73,110,116,51,50,86,97,108,117,
101,18,13,10,5,118,97,108,117,101,24,1,32,1,40,13,34,26,10,9,66,111,111,108,86,97,108,117,101,18,13,10,
5,118,97,108,117,101,24,1,32,1,40,8,34,28,10,11,83,116,114,105,110,103,86,97,108,117,101,18,13,10,5,118,
97,108,117,101,24,1,32,1,40,9,34,27,10,10,66,121,116,101,115,86,97,108,117,101,18,13,10,5,118,97,108,117,
101,24,1,32,1,40,12,66,131,1,10,19,99,111,109,46,103,111,111,103,108,101,46,112,114,111,116,111,98,117,
102,66,13,87,114,97,112,112,101,114,115,80,114,111,116,111,80,1,90,49,103,111,111,103,108,101,46,103,111,
108,97,110,103,46,111,114,103,47,112,114,111,116,111,98,117,102,47,116,121,112,101,115,47,107,110,111,
119,110,47,119,114,97,112,112,101,114,115,112,98,248,1,1,162,2,3,71,80,66,170,2,30,71,111,111,103,108,
101,46,80,114,111,116,111,98,117,102,46,87,101,108,108,75,110,111,119,110,84,121,112,101,115,98,6,112,
114,111,116,111,51]
112,101,114,115,46,112,114,111,116,111,18,15,103,111,111,103,108,101,46,112,114,111,116,111,98,117,102,
34,35,10,11,68,111,117,98,108,101,86,97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,40,1,82,5,118,
97,108,117,101,34,34,10,10,70,108,111,97,116,86,97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,40,2,
82,5,118,97,108,117,101,34,34,10,10,73,110,116,54,52,86,97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,
32,1,40,3,82,5,118,97,108,117,101,34,35,10,11,85,73,110,116,54,52,86,97,108,117,101,18,20,10,5,118,97,108,
117,101,24,1,32,1,40,4,82,5,118,97,108,117,101,34,34,10,10,73,110,116,51,50,86,97,108,117,101,18,20,10,5,
118,97,108,117,101,24,1,32,1,40,5,82,5,118,97,108,117,101,34,35,10,11,85,73,110,116,51,50,86,97,108,117,101,
18,20,10,5,118,97,108,117,101,24,1,32,1,40,13,82,5,118,97,108,117,101,34,33,10,9,66,111,111,108,86,97,108,
117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,40,8,82,5,118,97,108,117,101,34,35,10,11,83,116,114,105,110,
103,86,97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,40,9,82,5,118,97,108,117,101,34,34,10,10,66,
121,116,101,115,86,97,108,117,101,18,20,10,5,118,97,108,117,101,24,1,32,1,40,12,82,5,118,97,108,117,101,66,
131,1,10,19,99,111,109,46,103,111,111,103,108,101,46,112,114,111,116,111,98,117,102,66,13,87,114,97,112,112,
101,114,115,80,114,111,116,111,80,1,90,49,103,111,111,103,108,101,46,103,111,108,97,110,103,46,111,114,103,
47,112,114,111,116,111,98,117,102,47,116,121,112,101,115,47,107,110,111,119,110,47,119,114,97,112,112,101,
114,115,112,98,248,1,1,162,2,3,71,80,66,170,2,30,71,111,111,103,108,101,46,80,114,111,116,111,98,117,102,46,
87,101,108,108,75,110,111,119,110,84,121,112,101,115,98,6,112,114,111,116,111,51]
}
});
}
Expand Down
12 changes: 6 additions & 6 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "grpc"
version = "1.10.8"
version = "1.10.9"
distribution = "2201.8.0"
authors = ["Ballerina"]
keywords = ["network", "grpc", "protobuf", "server-streaming", "client-streaming", "bidirectional-streaming"]
Expand All @@ -16,11 +16,11 @@ graalvmCompatible = true
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "grpc-native"
version = "1.10.8"
path = "../native/build/libs/grpc-native-1.10.8.jar"
version = "1.10.9"
path = "../native/build/libs/grpc-native-1.10.9-SNAPSHOT.jar"

[[platform.java17.dependency]]
path = "../test-utils/build/libs/grpc-test-utils-1.10.8.jar"
path = "../test-utils/build/libs/grpc-test-utils-1.10.9-SNAPSHOT.jar"
scope = "testOnly"

[[platform.java17.dependency]]
Expand Down Expand Up @@ -145,8 +145,8 @@ path = "./lib/netty-tcnative-boringssl-static-2.0.65.Final-osx-x86_64.jar"
[[platform.java17.dependency]]
groupId = "com.google.protobuf"
artifactId = "protobuf-java"
version = "3.20.3"
path = "./lib/protobuf-java-3.20.3.jar"
version = "3.25.5"
path = "./lib/protobuf-java-3.25.5.jar"

[[platform.java17.dependency]]
groupId = "com.google.api.grpc"
Expand Down
2 changes: 1 addition & 1 deletion ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ id = "grpc-compiler-plugin"
class = "io.ballerina.stdlib.grpc.plugin.GrpcCompilerPlugin"

[[dependency]]
path = "../compiler-plugin/build/libs/grpc-compiler-plugin-1.10.8.jar"
path = "../compiler-plugin/build/libs/grpc-compiler-plugin-1.10.9-SNAPSHOT.jar"
10 changes: 5 additions & 5 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ modules = [
[[package]]
org = "ballerina"
name = "cache"
version = "3.7.0"
version = "3.7.1"
dependencies = [
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "jballerina.java"},
Expand Down Expand Up @@ -68,7 +68,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "grpc"
version = "1.10.8"
version = "1.10.9"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "crypto"},
Expand All @@ -94,7 +94,7 @@ modules = [
[[package]]
org = "ballerina"
name = "http"
version = "2.10.14"
version = "2.10.15"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "auth"},
Expand Down Expand Up @@ -127,7 +127,7 @@ modules = [
[[package]]
org = "ballerina"
name = "io"
version = "1.6.0"
version = "1.6.1"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"}
Expand Down Expand Up @@ -307,7 +307,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "protobuf"
version = "1.6.0"
version = "1.6.1"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "time"}
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This file contains all the notable changes done to the Ballerina gRPC package th
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.10.9] - 2024-09-27
### Fixed
- [Address CVE-2024-7254 vulnerability](https://github.com/ballerina-platform/ballerina-library/issues/7013)

## [1.10.8] - 2024-06-18
### Fixed
- [Address netty vulnerability: CVE-2024-29025](https://github.com/ballerina-platform/ballerina-library/issues/6242)
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ checkstylePluginVersion=10.12.0
commonsLang3Version=3.8.1
slf4jVersion=1.7.30
protoGoogleCommonsVersion=1.17.0
protobufJavaVersion=3.20.3
protobufJavaVersion=3.25.5
jknackHandlebarsVersion=4.0.6
nettyVersion=4.1.108.Final
nettyTcnativeVersion=2.0.65.Final
Expand All @@ -34,7 +34,7 @@ stdlibConstraintVersion=1.4.0
stdlibCryptoVersion=2.5.0
stdlibLogVersion=2.9.0
stdlibOsVersion=1.8.0
stdlibProtobufVersion=1.6.0
stdlibProtobufVersion=1.6.1
stdlibRandomVersion=1.5.0
stdlibTaskVersion=2.5.0

Expand Down

0 comments on commit 2594ff9

Please sign in to comment.