Skip to content

Conversation

@pan3793
Copy link
Member

@pan3793 pan3793 commented Jun 7, 2024

🔍 Description

This PR removes two dependencies from the kyuubi-rest-client module

  • commons-collections - has CVE Cx78f40514-81ff and is only used in one place, just rewrite to remove the dependency
  • javax.servlet-api - only used for UT, correct the scope from compile to test

Types of changes 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

Pass GHA


Checklist 📝

Be nice. Be informative.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (5623ead) to head (c24af70).

Files Patch % Lines
...main/java/org/apache/kyuubi/client/RestClient.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #6457   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         675     675           
  Lines       41641   41641           
  Branches     5685    5685           
======================================
  Misses      41641   41641           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pan3793
Copy link
Member Author

pan3793 commented Jun 7, 2024

I believe dep check script reports a false negative result, could you please confirm that? @cfmcgrady

@pan3793 pan3793 self-assigned this Jun 7, 2024
@pan3793 pan3793 added this to the v1.9.2 milestone Jun 7, 2024
@pan3793 pan3793 closed this in f7e8d69 Jun 7, 2024
pan3793 added a commit that referenced this pull request Jun 7, 2024
# 🔍 Description

This PR removes two dependencies from the `kyuubi-rest-client` module
- `commons-collections` - has CVE Cx78f40514-81ff and is only used in one place, just rewrite to remove the dependency
- `javax.servlet-api` - only used for UT, correct the scope from `compile` to `test`

## Types of changes 🔖

- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

Pass GHA

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6457 from pan3793/rest-client-dep.

Closes #6457

c24af70 [Cheng Pan] dep list
80969d0 [Cheng Pan] nit
950d4b7 [Cheng Pan] fix
1692819 [Cheng Pan] fix import
c068ba1 [Cheng Pan] nit
d46653d [Cheng Pan] fix
ca78317 [Cheng Pan] Strip dependencies from REST client

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
(cherry picked from commit f7e8d69)
Signed-off-by: Cheng Pan <chengpan@apache.org>
@pan3793
Copy link
Member Author

pan3793 commented Jun 7, 2024

Thanks, merged to master/1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants