-
Notifications
You must be signed in to change notification settings - Fork 143
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
#11441 update spring expression dependency to get rid of security issue #11432
#11441 update spring expression dependency to get rid of security issue #11432
Conversation
f0507af
to
04854d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Findings:
- Document version change explicitly in the commit message:
spring-context ....... 4.3.30.RELEASE -> 5.3.25
- Switch one changed import to
org.apache.commons.collections4.CollectionUtils
. - Do the same in
SormasToSormasShareRequestService
andShareRequestInfoService
. - Organize imports in
de.symeda.sormas.ui.campaign.expressions.ExpressionProcessor
to clean from not used imports related to springframework.
Remark: We have only one dependency on org.springframework.context.expression.MapAccessor
, the rest of the dependencies is in spring-expression
. We could reduce our dependencies to spring-expression
& spring-core
(1.4 MB) and get rid of spring-context, spring-aop, spring-beans
(2.3 MB), if we copy MapAccessor
(no other useful replacement found). We could at least exclude spring-aop, spring-beans
(1.2 MB) via Maven.
@@ -21,7 +21,7 @@ | |||
import com.j256.ormlite.logger.Logger; | |||
import com.j256.ormlite.logger.LoggerFactory; | |||
|
|||
import org.springframework.util.CollectionUtils; | |||
import org.apache.commons.collections.CollectionUtils; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch to org.apache.commons.collections4.CollectionUtils
, also in SormasToSormasShareRequestService
and ShareRequestInfoService
.
(update spring expression dependency to get rid of security issue) SpEL is need for campaigns. Added test to make sure needed dependencies are available on Android
Replaced import of spring utils CollectionUtils with apache commons4 Cleaned up imports of touched files
5b82f88
to
90e496e
Compare
SonarCloud analysis: Please find the results at https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=11432 |
1 similar comment
SonarCloud analysis: Please find the results at https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=11432 |
Fixes #11441