Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

update protobuf version #504

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

update protobuf version #504

wants to merge 2 commits into from

Conversation

nlu90
Copy link
Contributor

@nlu90 nlu90 commented Feb 10, 2022

Due to the CVE:
https://nvd.nist.gov/vuln/detail/CVE-2021-22569

Reference the fix in Apache Pulsar:
apache/pulsar#13695

Note:
I also tried to update the protobuf plugin (com.github.os72:protoc-jar-maven-plugin), but there's no newer release other than 3.11.4 at this time. https://mvnrepository.com/artifact/com.github.os72/protoc-jar-maven-plugin

@nlu90 nlu90 requested a review from syhily February 10, 2022 20:19
@nlu90 nlu90 self-assigned this Feb 10, 2022
@nlu90 nlu90 requested a review from a team as a code owner February 10, 2022 20:19
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${jaxb.version}</version>
</dependency>
Copy link
Contributor

@syhily syhily Feb 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JAXB APIs are considered to be Java EE APIs and therefore are no longer contained on the default classpath in Java SE 9. In Java 11, they are completely removed from the JDK.

Without this dependency, maven will report class not found issue for: https://github.com/streamnative/pulsar-flink/blob/master/pulsar-flink-connector/src/main/java/org/apache/flink/streaming/connectors/pulsar/internal/DateTimeUtils.java#L23

Copy link
Contributor

@syhily syhily Feb 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DatatypeConverter could be dropped. I don't like one method dependency jar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants