Skip to content

Commit 391ed00

Browse files
committed
fix vulnerabilities #204
1 parent 876f96e commit 391ed00

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

commons/src/main/java/com/datastax/oss/cdc/NativeSchemaWrapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package com.datastax.oss.cdc;
1717

1818
import org.apache.avro.Schema;
19+
import org.apache.avro.SchemaFormatter;
1920
import org.apache.pulsar.client.api.schema.SchemaInfoProvider;
2021
import org.apache.pulsar.common.schema.SchemaInfo;
2122
import org.apache.pulsar.common.schema.SchemaType;
@@ -35,7 +36,7 @@ public NativeSchemaWrapper(Schema nativeSchema, SchemaType pulsarSchemaType) {
3536
this.nativeSchema = nativeSchema;
3637
this.pulsarSchemaType = pulsarSchemaType;
3738
this.pulsarSchemaInfo = SchemaInfo.builder()
38-
.schema(nativeSchema.toString(false).getBytes(StandardCharsets.UTF_8))
39+
.schema(SchemaFormatter.getInstance("json/inline").format(nativeSchema).getBytes(StandardCharsets.UTF_8))
3940
.properties(new HashMap<>())
4041
.type(pulsarSchemaType)
4142
.name(nativeSchema.getName())

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ snapshotsRepoUrl=https://repo.aws.dsinternal.org/artifactory/datastax-snapshots-
77
releasesRepoUrl=https://repo.datastax.com/artifactory/datastax-public-releases-local
88

99
# deps version
10-
avroVersion=1.11.4
10+
avroVersion=1.12.1
1111
lombokVersion=1.18.20
1212
ossDriverVersion=4.16.0
1313
cassandra3Version=3.11.10
1414
cassandra4Version=4.0.4
1515
dse4Version=6.8.23
1616

1717
pulsarGroup=org.apache.pulsar
18-
pulsarVersion=3.0.0
18+
pulsarVersion=3.0.14
1919
# Used when running tests locally, CI will override those values
2020
testPulsarImage=datastax/lunastreaming
2121
testPulsarImageTag=2.10_3.4

0 commit comments

Comments
 (0)