-
Notifications
You must be signed in to change notification settings - Fork 546
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
fix security issues due to transitive dependency icu4j #790
Conversation
antlr 4.10.1 was failing with Java 8 so trying a smaller version. No CVEs in this version either. |
Earlier change was failing |
@nickibi Can I please get a review so the workflows can be run? |
@mchen07 : could we get someone to approve the CI workflow? |
@shirshanka approved it to run |
Thanks @cgtz , looks like it failed because there is an incorrect usage of @NotNull in the current code. Maybe your team can fix it using a patch like this? diff --git a/d2/src/main/java/com/linkedin/d2/discovery/stores/zk/acl/AclAwareZookeeper.java b/d2/src/main/java/com/linkedin/d2/discovery/stores/zk/acl/AclAwareZookeeper.java
index 7c06bc716..646e33271 100644
--- a/d2/src/main/java/com/linkedin/d2/discovery/stores/zk/acl/AclAwareZookeeper.java
+++ b/d2/src/main/java/com/linkedin/d2/discovery/stores/zk/acl/AclAwareZookeeper.java
@@ -20,7 +20,6 @@ import com.linkedin.d2.discovery.stores.zk.AbstractZooKeeper;
import com.linkedin.d2.discovery.stores.zk.ZKPersistentConnection;
import com.linkedin.d2.discovery.stores.zk.ZooKeeper;
import java.util.List;
-import org.antlr.v4.runtime.misc.NotNull;
import org.apache.zookeeper.AsyncCallback;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
@@ -30,6 +29,8 @@ import org.apache.zookeeper.data.ACL;
import org.apache.zookeeper.data.Stat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import javax.annotation.Nonnull;
+
/**
@@ -44,7 +45,7 @@ public class AclAwareZookeeper extends AbstractZooKeeper
private final ZKAclProvider _aclProvider;
- public AclAwareZookeeper(@NotNull ZooKeeper zooKeeper, @NotNull ZKAclProvider aclProvider)
+ public AclAwareZookeeper(@Nonnull ZooKeeper zooKeeper, @Nonnull ZKAclProvider aclProvider)
{
super(zooKeeper);
_aclProvider = aclProvider; |
These dependencies are brought in when using latest release of
rest.li
OWASP scanner on a sample project shows these vulnerabilities
Upgrading to latest
4.10.1
we get theseAfter update 0 CVEs
Ref