This repository was archived by the owner on Feb 1, 2023. It is now read-only.
File tree 3 files changed +6
-6
lines changed
src/main/java/ai/deepcode/javaclient/core
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 2.3.3] - 2022-05
2
+ - fix: recognition of bundle that contains no files
3
+
1
4
## [ 2.3.2] - 2022-05
2
5
- fix: make re-try attempts for most api calls if not succeed for any reason (except 401 - auth failed)
3
6
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
6
6
7
7
group = " io.snyk.code.sdk"
8
8
archivesBaseName = " snyk-code-client"
9
- version = " 2.3.2 "
9
+ version = " 2.3.3 "
10
10
11
11
repositories {
12
12
mavenLocal()
Original file line number Diff line number Diff line change @@ -592,11 +592,8 @@ private CreateBundleResponse makeNewBundle(
592
592
new ExtendBundleWithHashRequest (request , removedFiles ));
593
593
}
594
594
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" )) {
600
597
newBundleId = "" ;
601
598
}
602
599
checkApiCallSucceed (project , bundleResponse , "Bad Create/Extend Bundle request: " );
You can’t perform that action at this time.
0 commit comments