github-advanced-security[bot] commented on code in PR #1368:
URL: https://github.com/apache/syncope/pull/1368#discussion_r3166123518
##########
core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/ImplementationDataBinderImpl.java:
##########
@@ -74,25 +74,24 @@
implementation.setType(implementationTO.getType());
implementation.setBody(implementationTO.getBody());
- if (implementation.getEngine() == ImplementationEngine.JAVA) {
- Class<?> baseClazz = Optional.ofNullable(
-
ImplementationTypesHolder.getInstance().getValues().get(implementation.getType())).
- map(intf -> {
- try {
- return Class.forName(intf);
- } catch (ClassNotFoundException e) {
- LOG.error("While resolving interface {} for
implementation type {}",
- intf, implementation.getType());
- return null;
- }
- }).
- orElse(null);
-
- if (baseClazz == null) {
- sce.getElements().add("No Java interface found for " +
implementation.getType());
- throw sce;
- }
+ Class<?> baseClazz = Optional.ofNullable(
+
ImplementationTypesHolder.getInstance().getValues().get(implementation.getType())).
+ map(intf -> {
+ try {
+ return Class.forName(intf);
+ } catch (ClassNotFoundException e) {
+ LOG.error("While resolving interface {} for
implementation type {}",
+ intf, implementation.getType());
Review Comment:
## CodeQL / Log Injection
This log entry depends on a [user-provided value](1).
This log entry depends on a [user-provided value](2).
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2612)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]