Skip to content

Commit 1d5e42f

Browse files
authored
Revert "fix vulnerabilities #204 (#214)" (#224)
This reverts commit bd6beb5.
1 parent bd6beb5 commit 1d5e42f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

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

1818
import org.apache.avro.Schema;
19-
import org.apache.avro.SchemaFormatter;
2019
import org.apache.pulsar.client.api.schema.SchemaInfoProvider;
2120
import org.apache.pulsar.common.schema.SchemaInfo;
2221
import org.apache.pulsar.common.schema.SchemaType;
@@ -36,7 +35,7 @@ public NativeSchemaWrapper(Schema nativeSchema, SchemaType pulsarSchemaType) {
3635
this.nativeSchema = nativeSchema;
3736
this.pulsarSchemaType = pulsarSchemaType;
3837
this.pulsarSchemaInfo = SchemaInfo.builder()
39-
.schema(SchemaFormatter.getInstance("json/inline").format(nativeSchema).getBytes(StandardCharsets.UTF_8))
38+
.schema(nativeSchema.toString(false).getBytes(StandardCharsets.UTF_8))
4039
.properties(new HashMap<>())
4140
.type(pulsarSchemaType)
4241
.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.12.1
10+
avroVersion=1.11.4
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.14
18+
pulsarVersion=3.0.0
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)