Skip to content

Commit

Permalink
fix(deps): update dependency ognl:ognl to v3.4.5 (#439)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency ognl:ognl to v3.4.5

* refactor(policy): remove unnecessary type cast in OgnlConditionMatcher

- Remove redundant type cast to Map<Any, Any> when creating contextValues
- Simplify code without affecting functionality

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ahoo Wang <[email protected]>
  • Loading branch information
renovate[bot] and Ahoo-Wang authored Jan 7, 2025
1 parent ce351d9 commit 60fce42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class OgnlConditionMatcher(configuration: Configuration) :
val contextValues = mapOf(
"request" to request,
"context" to securityContext,
) as Map<Any, Any>
)
val ognlContext = Ognl.createDefaultContext(request).withValues(contextValues)
return Ognl.getValue(ognlExpression, ognlContext, request, Boolean::class.java) as Boolean
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cocache = "2.6.2"
opentelemetry = "2.11.0"
testcontainers = "1.20.4"
guava = "33.4.0-jre"
ognl = "3.4.4"
ognl = "3.4.5"
javaJwt = "4.4.0"
ip2region = "2.7.0"
justAuth = "1.16.7"
Expand Down

0 comments on commit 60fce42

Please sign in to comment.