Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit a1c51f3

Browse files
committed
fix: recognition of bundle that contains no files
1 parent c14dbf6 commit a1c51f3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [2.3.3] - 2022-05
2+
- fix: recognition of bundle that contains no files
3+
14
## [2.3.2] - 2022-05
25
- fix: make re-try attempts for most api calls if not succeed for any reason (except 401 - auth failed)
36

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66

77
group = "io.snyk.code.sdk"
88
archivesBaseName = "snyk-code-client"
9-
version = "2.3.2"
9+
version = "2.3.3"
1010

1111
repositories {
1212
mavenLocal()

src/main/java/ai/deepcode/javaclient/core/AnalysisDataBase.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -592,11 +592,8 @@ private CreateBundleResponse makeNewBundle(
592592
new ExtendBundleWithHashRequest(request, removedFiles));
593593
}
594594
String newBundleId = bundleResponse.getBundleHash();
595-
// By man: "Extending a bundle by removing all the parent bundle's files is not allowed."
596-
// In reality new bundle returned with next bundleID:
597-
// .../DEEPCODE_PRIVATE_BUNDLE/0000000000000000000000000000000000000000000000000000000000000000
598-
if (newBundleId.endsWith(
599-
"/DEEPCODE_PRIVATE_BUNDLE/0000000000000000000000000000000000000000000000000000000000000000")) {
595+
// assigned to every bundle that contains no files
596+
if (newBundleId.endsWith("0000000000000000000000000000000000000000000000000000000000000000")) {
600597
newBundleId = "";
601598
}
602599
checkApiCallSucceed(project, bundleResponse, "Bad Create/Extend Bundle request: ");

0 commit comments

Comments
 (0)