Skip to content

Commit

Permalink
[fix][sec] Bump avro version to 1.11.3 for CVE-2023-39410 (apache#21341)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun authored Oct 17, 2023
1 parent 689976b commit f5222d6
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions distribution/server/src/assemble/LICENSE.bin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ The Apache Software License, Version 2.0
- net.jodah-typetools-0.5.0.jar
- net.jodah-failsafe-2.4.4.jar
* Apache Avro
- org.apache.avro-avro-1.10.2.jar
- org.apache.avro-avro-protobuf-1.10.2.jar
- org.apache.avro-avro-1.11.3.jar
- org.apache.avro-avro-protobuf-1.11.3.jar
* Apache Curator
- org.apache.curator-curator-client-5.1.0.jar
- org.apache.curator-curator-framework-5.1.0.jar
Expand Down
4 changes: 2 additions & 2 deletions distribution/shell/src/assemble/LICENSE.bin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ The Apache Software License, Version 2.0
* Google Error Prone Annotations - error_prone_annotations-2.5.1.jar
* Javassist -- javassist-3.25.0-GA.jar
* Apache Avro
- avro-1.10.2.jar
- avro-protobuf-1.10.2.jar
- avro-1.11.3.jar
- avro-protobuf-1.11.3.jar

BSD 3-clause "New" or "Revised" License
* JSR305 -- jsr305-3.0.2.jar -- ../licenses/LICENSE-JSR305.txt
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ flexible messaging model and an intuitive client API.</description>
<kafka-client.version>3.4.0</kafka-client.version>
<rabbitmq-client.version>5.5.3</rabbitmq-client.version>
<aws-sdk.version>1.12.262</aws-sdk.version>
<avro.version>1.10.2</avro.version>
<avro.version>1.11.3</avro.version>
<joda.version>2.10.10</joda.version>
<jclouds.version>2.5.0</jclouds.version>
<guice.version>5.1.0</guice.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public void testSchemaComparison() throws Exception {
assertEquals(admin.namespaces().getSchemaCompatibilityStrategy(namespaceName.toString()),
SchemaCompatibilityStrategy.UNDEFINED);
byte[] changeSchemaBytes = (new String(Schema.AVRO(Schemas.PersonOne.class)
.getSchemaInfo().getSchema(), UTF_8) + "/n /n /n").getBytes();
.getSchemaInfo().getSchema(), UTF_8) + "\n \n \n").getBytes();
SchemaInfo schemaInfo = SchemaInfo.builder().type(SchemaType.AVRO).schema(changeSchemaBytes).build();
admin.schemas().createSchema(fqtn, schemaInfo);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ public class ProtobufSchemaTest {
"\"namespace\":\"org.apache.pulsar.client.schema.proto.Test\"," +
"\"fields\":[{\"name\":\"stringField\",\"type\":{\"type\":\"string\"," +
"\"avro.java.string\":\"String\"},\"default\":\"\"},{\"name\":\"doubleField\"," +
"\"type\":\"double\",\"default\":0},{\"name\":\"intField\",\"type\":\"int\"," +
"\"type\":\"double\",\"default\":0.0},{\"name\":\"intField\",\"type\":\"int\"," +
"\"default\":0},{\"name\":\"testEnum\",\"type\":{\"type\":\"enum\"," +
"\"name\":\"TestEnum\",\"symbols\":[\"SHARED\",\"FAILOVER\"]}," +
"\"default\":\"SHARED\"},{\"name\":\"nestedField\"," +
"\"type\":[\"null\",{\"type\":\"record\",\"name\":\"SubMessage\"," +
"\"fields\":[{\"name\":\"foo\",\"type\":{\"type\":\"string\"," +
"\"avro.java.string\":\"String\"},\"default\":\"\"}" +
",{\"name\":\"bar\",\"type\":\"double\",\"default\":0}]}]" +
",{\"name\":\"bar\",\"type\":\"double\",\"default\":0.0}]}]" +
",\"default\":null},{\"name\":\"repeatedField\",\"type\":{\"type\":\"array\"" +
",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},\"default\":[]}" +
",{\"name\":\"externalMessage\",\"type\":[\"null\",{\"type\":\"record\"" +
",\"name\":\"ExternalMessage\",\"namespace\":\"org.apache.pulsar.client.schema.proto.ExternalTest\"" +
",\"fields\":[{\"name\":\"stringField\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}," +
"\"default\":\"\"},{\"name\":\"doubleField\",\"type\":\"double\",\"default\":0}]}],\"default\":null}]}";
"\"default\":\"\"},{\"name\":\"doubleField\",\"type\":\"double\",\"default\":0.0}]}],\"default\":null}]}";

private static final String EXPECTED_PARSING_INFO = "{\"__alwaysAllowNull\":\"true\",\"__jsr310ConversionEnabled\":\"false\"," +
"\"__PARSING_INFO__\":\"[{\\\"number\\\":1,\\\"name\\\":\\\"stringField\\\",\\\"type\\\":\\\"STRING\\\"," +
Expand Down
6 changes: 6 additions & 0 deletions pulsar-io/kafka-connect-adaptor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
<groupId>io.confluent</groupId>
<artifactId>kafka-connect-avro-converter</artifactId>
<version>${confluent.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions pulsar-sql/presto-distribution/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ The Apache Software License, Version 2.0
* OpenCSV
- opencsv-2.3.jar
* Avro
- avro-1.10.2.jar
- avro-protobuf-1.10.2.jar
- avro-1.11.3.jar
- avro-protobuf-1.11.3.jar
* Caffeine
- caffeine-2.9.1.jar
* Javax
Expand Down

0 comments on commit f5222d6

Please sign in to comment.