Skip to content

Remove reflections lib in favor of ClassGraph #450

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

Merged
merged 2 commits into from
Oct 22, 2019

Conversation

smyrick
Copy link
Contributor

@smyrick smyrick commented Oct 22, 2019

📝 Description

There is a security issue with one of the dependencies of org.reflections:reflection:0.9.11. Instead of resolving the dep issue we should migrate away from this library since the last version was released in 2017.

https://github.com/classgraph/classgraph is an active supported library with reported faster implementation of reflection.

The security issue was in com.google.guava:guava:20.0 but since we were still using some guava code in our library I have added com.google.guava:guava:28-jre as an explicit dependency

🔗 Related Issues

Fixes #449

Fixes ExpediaGroup#449

There is a securty issue with one of the dependencies of org.reflections:reflection:0.9.11. Instead of resolving the dep issue we should migrate away from this library since the last version was released in 2017. https://github.com/classgraph/classgraph is an active supported library with reported faster implementation of reflection
@smyrick smyrick added changes: patch Changes require a patch version type: dependency changes Dependency change which doesn't affect our library usage type: refactor Code changes that have no impact on users labels Oct 22, 2019
@codecov-io
Copy link

codecov-io commented Oct 22, 2019

Codecov Report

Merging #450 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #450      +/-   ##
============================================
+ Coverage     97.92%   97.94%   +0.01%     
- Complexity      326      328       +2     
============================================
  Files           106      106              
  Lines          1254     1265      +11     
  Branches        206      207       +1     
============================================
+ Hits           1228     1239      +11     
  Misses            7        7              
  Partials         19       19
Impacted Files Coverage Δ Complexity Δ
...om/expediagroup/graphql/generator/SubTypeMapper.kt 100% <100%> (ø) 5 <4> (+2) ⬆️
...oup/graphql/federation/FederatedSchemaGenerator.kt 100% <100%> (ø) 4 <2> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0724ef9...087462b. Read the comment docs.

Copy link
Collaborator

@dariuszkuc dariuszkuc left a comment

Choose a reason for hiding this comment

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

LGTM

@smyrick
Copy link
Contributor Author

smyrick commented Oct 22, 2019

Not sure what is going on with GH actions builds pass locally and on travis.

@smyrick smyrick merged commit 4abb38f into ExpediaGroup:master Oct 22, 2019
@smyrick smyrick deleted the reflections-lib branch October 22, 2019 21:35
dariuszkuc pushed a commit to dariuszkuc/graphql-kotlin that referenced this pull request Aug 5, 2022
* Remove reflections lib in favor of ClassGraph

Fixes ExpediaGroup#449

There is a securty issue with one of the dependencies of org.reflections:reflection:0.9.11. Instead of resolving the dep issue we should migrate away from this library since the last version was released in 2017. https://github.com/classgraph/classgraph is an active supported library with reported faster implementation of reflection

* Remove val property from SubTypeMapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: patch Changes require a patch version type: dependency changes Dependency change which doesn't affect our library usage type: refactor Code changes that have no impact on users
Development

Successfully merging this pull request may close these issues.

graphql-kotlin-schema-generator 1.2.2 contains security issue
3 participants