You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "tejaswini-imply (via GitHub)" <gi...@apache.org> on 2023/08/07 20:59:46 UTC

[PR] Upgrade jackson-databind to 2.12.7 (druid)

tejaswini-imply opened a new pull request, #14770:
URL: https://github.com/apache/druid/pull/14770

   The current version of `jackson-databind` is flagged for vulnerabilities CVE-2020-28491 (Although cbor format is not used in druid), CVE-2020-36518 (Seems genuine as deeply nested json in can cause resource exhaustion). Updating the dependency to the latest version 2.12.7 to fix these vulnerabilities.


-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Upgrade jackson-databind to 2.12.7 (druid)

Posted by "abhishekagarwal87 (via GitHub)" <gi...@apache.org>.
abhishekagarwal87 commented on PR #14770:
URL: https://github.com/apache/druid/pull/14770#issuecomment-1669085082

   FYI anyone reading this PR, we cannot upgrade to a version beyond 2.12 because of this change https://github.com/FasterXML/jackson-jaxrs-providers/issues/134
   If we want to upgrade to 2.15, one option is to copy the source code of javax.ws.rs.core.NoContentException


-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Upgrade jackson-databind to 2.12.7 (druid)

Posted by "abhishekagarwal87 (via GitHub)" <gi...@apache.org>.
abhishekagarwal87 merged PR #14770:
URL: https://github.com/apache/druid/pull/14770


-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Upgrade jackson-databind to 2.12.7 (druid)

Posted by "github-code-scanning[bot] (via GitHub)" <gi...@apache.org>.
github-code-scanning[bot] commented on code in PR #14770:
URL: https://github.com/apache/druid/pull/14770#discussion_r1286411927


##########
processing/src/main/java/org/apache/druid/guice/GuiceAnnotationIntrospector.java:
##########
@@ -54,39 +67,54 @@
       }
     }
 
+    // Annotated.getGenericType() is removed since jackson-databind 2.11 version. We need the generic type so that we can inject values of the type such as List<XYZ> correctly.
+    // Jackson library removed the method on the abstract class but the methods are still there in the implementations of AnnotatedMember. The method signatures are implementation specific and we are calling those methods to get the generic type.
+
+    if (m instanceof AnnotatedField) {
+      genericType = ((AnnotatedField) m).getAnnotated().getGenericType();
+    } else if (m instanceof AnnotatedMethod) {
+      genericType = ((AnnotatedMethod) m).getAnnotated().getGenericReturnType();
+    } else if (m instanceof AnnotatedParameter) {
+      genericType = ((AnnotatedParameter) m).getOwner().getGenericParameterType(((AnnotatedParameter) m).getIndex());

Review Comment:
   ## Deprecated method or constructor invocation
   
   Invoking [AnnotatedWithParams.getGenericParameterType](1) should be avoided because it has been deprecated.
   
   [Show more details](https://github.com/apache/druid/security/code-scanning/5415)



-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org