diff --git a/CHANGELOG.md b/CHANGELOG.md index 766a377..abe458b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [2.3.3] - 2022-05 +- fix: recognition of bundle that contains no files + ## [2.3.2] - 2022-05 - fix: make re-try attempts for most api calls if not succeed for any reason (except 401 - auth failed) diff --git a/build.gradle b/build.gradle index 7f4e8a9..71d11a3 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { group = "io.snyk.code.sdk" archivesBaseName = "snyk-code-client" -version = "2.3.2" +version = "2.3.3" repositories { mavenLocal() diff --git a/src/main/java/ai/deepcode/javaclient/core/AnalysisDataBase.java b/src/main/java/ai/deepcode/javaclient/core/AnalysisDataBase.java index c1f82ca..52521e4 100644 --- a/src/main/java/ai/deepcode/javaclient/core/AnalysisDataBase.java +++ b/src/main/java/ai/deepcode/javaclient/core/AnalysisDataBase.java @@ -592,11 +592,8 @@ private CreateBundleResponse makeNewBundle( new ExtendBundleWithHashRequest(request, removedFiles)); } String newBundleId = bundleResponse.getBundleHash(); - // By man: "Extending a bundle by removing all the parent bundle's files is not allowed." - // In reality new bundle returned with next bundleID: - // .../DEEPCODE_PRIVATE_BUNDLE/0000000000000000000000000000000000000000000000000000000000000000 - if (newBundleId.endsWith( - "/DEEPCODE_PRIVATE_BUNDLE/0000000000000000000000000000000000000000000000000000000000000000")) { + // assigned to every bundle that contains no files + if (newBundleId.endsWith("0000000000000000000000000000000000000000000000000000000000000000")) { newBundleId = ""; } checkApiCallSucceed(project, bundleResponse, "Bad Create/Extend Bundle request: ");