forked from apache/orc
-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Fix for 14 vulnerable dependencies #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-COMJCRAFT-30302 - https://snyk.io/vuln/SNYK-JAVA-COMMONSCOLLECTIONS-30078 - https://snyk.io/vuln/SNYK-JAVA-IONETTY-30100 - https://snyk.io/vuln/SNYK-JAVA-IONETTY-30429 - https://snyk.io/vuln/SNYK-JAVA-IONETTY-30430 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHECOMMONS-32122 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-30627 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-30631 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-31400 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-31414 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-32124 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEZOOKEEPER-31035 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEZOOKEEPER-31428 - https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEZOOKEEPER-32301
omalley
pushed a commit
that referenced
this pull request
Feb 5, 2021
### What changes were proposed in this pull request? This PR aims to replace `mvn` with `mvnw` in `java.CMakeLists.txt`. ### Why are the changes needed? Some old OSes like CentOS7 may have the old Maven installation. Maven Wrapper will prevent build and test failures. ### How was this patch tested? Pass the CIs and manually do the following. ``` $ cd docker $ ./run-one.sh local ORC-739 centos7 ... exec: curl --silent --show-error -L https://www.apache.org/dyn/closer.lua?action=download&filename=/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz Using `mvn` from path: /root/orc/java/build/apache-maven-3.6.3/bin/mvn ... Using `mvn` from path: /root/orc/java/build/apache-maven-3.6.3/bin/mvn [INFO] Scanning for projects... ... Test project /root/build Start 1: orc-test 1/3 Test #1: orc-test ......................... Passed 6.72 sec Start 2: java-test 2/3 Test #2: java-test ........................ Passed 103.21 sec Start 3: tool-test 3/3 Test #3: tool-test ........................ Passed 19.69 sec 100% tests passed, 0 tests failed out of 3 Total Test time (real) = 129.62 sec Built target test-out Finished centos7 at Fri Jan 22 06:33:19 PM PST 2021 ```
omalley
pushed a commit
that referenced
this pull request
Aug 2, 2021
This PR aims to build and test the C++ module on CLang12
Currently, the build fails with new warnings.
Manually built and tested.
```
$ make test-out
Test project /Users/william/orc/build
Start 1: orc-test
1/2 Test #1: orc-test ......................... Passed 3.99 sec
Start 2: tool-test
2/2 Test #2: tool-test ........................ Passed 11.96 sec
100% tests passed, 0 tests failed out of 2
```
Closes apache#718
Signed-off-by: William Hyun <[email protected]>
omalley
pushed a commit
that referenced
this pull request
Aug 3, 2021
### What changes were proposed in this pull request? This PR aims to replace `mvn` with `mvnw` in `java.CMakeLists.txt`. ### Why are the changes needed? Some old OSes like CentOS7 may have the old Maven installation. Maven Wrapper will prevent build and test failures. ### How was this patch tested? Pass the CIs and manually do the following. ``` $ cd docker $ ./run-one.sh local ORC-739 centos7 ... exec: curl --silent --show-error -L https://www.apache.org/dyn/closer.lua?action=download&filename=/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz Using `mvn` from path: /root/orc/java/build/apache-maven-3.6.3/bin/mvn ... Using `mvn` from path: /root/orc/java/build/apache-maven-3.6.3/bin/mvn [INFO] Scanning for projects... ... Test project /root/build Start 1: orc-test 1/3 Test #1: orc-test ......................... Passed 6.72 sec Start 2: java-test 2/3 Test #2: java-test ........................ Passed 103.21 sec Start 3: tool-test 3/3 Test #3: tool-test ........................ Passed 19.69 sec 100% tests passed, 0 tests failed out of 3 Total Test time (real) = 129.62 sec Built target test-out Finished centos7 at Fri Jan 22 06:33:19 PM PST 2021 ``` (cherry picked from commit f0c5f00) Signed-off-by: Dongjoon Hyun <[email protected]>
omalley
pushed a commit
that referenced
this pull request
Aug 3, 2021
This PR aims to build and test the C++ module on CLang12
Currently, the build fails with new warnings.
Manually built and tested.
```
$ make test-out
Test project /Users/william/orc/build
Start 1: orc-test
1/2 Test #1: orc-test ......................... Passed 3.99 sec
Start 2: tool-test
2/2 Test #2: tool-test ........................ Passed 11.96 sec
100% tests passed, 0 tests failed out of 2
```
Closes apache#718
Signed-off-by: William Hyun <[email protected]>
omalley
pushed a commit
that referenced
this pull request
Sep 30, 2021
### What changes were proposed in this pull request?
This PR aims the following.
- Use `Java 17` instead of `Java 17 EA`.
- Remove `Java 16` to save the community testing resources
- Recover GitHub Action CI by using `java17` profile.
- Disable dependency check on `hadoop-hdfs` of `shim` module
Note that there is a TODO (ORC-1003) which fails due to some `shaded` classes.
We will revisit that.
### Why are the changes needed?
Java 17 is finally available.
### How was this patch tested?
Pass the CIs with Java 17.
When we test manually, it passed like the following.
```
$ java -version
openjdk version "17" 2021-09-14 LTS
OpenJDK Runtime Environment Zulu17.28+13-CA (build 17+35-LTS)
OpenJDK 64-Bit Server VM Zulu17.28+13-CA (build 17+35-LTS, mixed mode, sharing)
...
Test project /Users/dongjoon/APACHE/orc-merge/build
Start 1: orc-test
1/7 Test #1: orc-test ......................... Passed 3.41 sec
Start 2: java-test
2/7 Test #2: java-test ........................ Passed 97.92 sec
Start 3: java-tools-test
3/7 Test #3: java-tools-test .................. Passed 0.11 sec
Start 4: java-bench-gen-test
4/7 Test #4: java-bench-gen-test .............. Passed 0.98 sec
Start 5: java-bench-scan-test
5/7 Test #5: java-bench-scan-test ............. Passed 0.67 sec
Start 6: java-bench-hive-test
6/7 Test #6: java-bench-hive-test ............. Passed 12.47 sec
Start 7: tool-test
7/7 Test #7: tool-test ........................ Passed 10.02 sec
100% tests passed, 0 tests failed out of 7
Total Test time (real) = 125.58 sec
Built target test-out
```
omalley
pushed a commit
that referenced
this pull request
Jun 16, 2022
### What changes were proposed in this pull request?
This PR aims the following.
- Use `Java 17` instead of `Java 17 EA`.
- Remove `Java 16` to save the community testing resources
- Recover GitHub Action CI by using `java17` profile.
- Disable dependency check on `hadoop-hdfs` of `shim` module
Note that there is a TODO (ORC-1003) which fails due to some `shaded` classes.
We will revisit that.
### Why are the changes needed?
Java 17 is finally available.
### How was this patch tested?
Pass the CIs with Java 17.
When we test manually, it passed like the following.
```
$ java -version
openjdk version "17" 2021-09-14 LTS
OpenJDK Runtime Environment Zulu17.28+13-CA (build 17+35-LTS)
OpenJDK 64-Bit Server VM Zulu17.28+13-CA (build 17+35-LTS, mixed mode, sharing)
...
Test project /Users/dongjoon/APACHE/orc-merge/build
Start 1: orc-test
1/7 Test #1: orc-test ......................... Passed 3.41 sec
Start 2: java-test
2/7 Test #2: java-test ........................ Passed 97.92 sec
Start 3: java-tools-test
3/7 Test #3: java-tools-test .................. Passed 0.11 sec
Start 4: java-bench-gen-test
4/7 Test #4: java-bench-gen-test .............. Passed 0.98 sec
Start 5: java-bench-scan-test
5/7 Test #5: java-bench-scan-test ............. Passed 0.67 sec
Start 6: java-bench-hive-test
6/7 Test #6: java-bench-hive-test ............. Passed 12.47 sec
Start 7: tool-test
7/7 Test #7: tool-test ........................ Passed 10.02 sec
100% tests passed, 0 tests failed out of 7
Total Test time (real) = 125.58 sec
Built target test-out
```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes one or more vulnerable packages in the
mavendependencies of this project.See the Snyk test report for more details.
Snyk Project: omalley/orc:java/tools/pom.xml
Snyk Organization: omalley
Changes included in this PR
Vulnerabilities that will be fixed
With an upgrade:
java/pom.xmlorg.apache.hadoop:[email protected] > org.apache.hadoop:[email protected]org.apache.hadoop:[email protected] > org.apache.hadoop:[email protected]org.apache.orc:[email protected] > org.apache.orc:[email protected]You can read more about Snyk's upgrade and patch logic in Snyk's documentation.
Check the changes in this PR to ensure they won't cause issues with your project.
Stay secure,
The Snyk team