GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add preview MultipartUploadClient#listParts by ShreyasSinha · Pull Request #3359 · googleapis/java-storage

This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Conversation

@ShreyasSinha

@ShreyasSinha ShreyasSinha commented Oct 22, 2025

Copy link
Copy Markdown
Collaborator
  1. Adding model classes for List request and response.
  2. Implemented List for Multipart Upload.

Refer: #3348

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ShreyasSinha added 14 commits October 20, 2025 08:00
@ShreyasSinha
chore: Refactor retrier creation from HttpStorageOptions to StorageOp…
cbad1ca
…tions
@ShreyasSinha
chore: Refactor retrier creation from HttpStorageOptions to StorageOp…
d6f4cc9
…tions
@ShreyasSinha
feat: Added API for CreateMultipartUpload.
bdbb55f
@ShreyasSinha
chore: Merge branch 'mpu-feature-1' into mpu-feature-2
a1f6efa
@ShreyasSinha
added missing javadoc
3bfd51b
@ShreyasSinha
Fixed lint issues
1157004
@ShreyasSinha
chore: adding review changes.
585707d
@ShreyasSinha
chore: addind review comment fixes
eca5d54
@ShreyasSinha
chore: added test cases
04ff3d5
@ShreyasSinha
chore: fixed IT tests
f4e30f9
@ShreyasSinha
removing mockito conifg no longer required
86a9ab9
@ShreyasSinha
chore: added missing library
1863d02
@ShreyasSinha
feat: Adding API for ListParts
a35e4d6
@ShreyasSinha
chore: adding logic for list parts.
07afc4e
@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: storage Issues related to the googleapis/java-storage API. labels Oct 22, 2025
@ShreyasSinha
ShreyasSinha marked this pull request as ready for review October 22, 2025 18:32
@ShreyasSinha
ShreyasSinha requested a review from a team October 22, 2025 18:32
ShreyasSinha added 5 commits October 22, 2025 18:36
@ShreyasSinha
chore: adding missing final statement
48e1a2f
@ShreyasSinha
fixing licence number
81648dc
@ShreyasSinha
fixing lint error
2a5d1a0
@ShreyasSinha
chore: adding beta api annotation.
21c5c94
@ShreyasSinha
chore: added missing annotation
fffd81b
@ShreyasSinha
ShreyasSinha requested a review from a team October 22, 2025 20:01
ShreyasSinha added 6 commits October 23, 2025 05:36
@ShreyasSinha
chore: adding fixes for review comments
744db03
@ShreyasSinha
chore: Removed merge conflicts.
3757fed
@ShreyasSinha
chore: Adding lint issues.
08b084f
@ShreyasSinha
chore: Adding fixes for IT.
e565af6
@ShreyasSinha
Merge branch 'mpu-feature-2' into mpu-feature-3
eaff90e
@ShreyasSinha
added test
0b378af
ShreyasSinha added 4 commits October 24, 2025 14:18
@ShreyasSinha
chore: merged feature 2 into feature 3
5c7c6ca
@ShreyasSinha
choere: coverted Integer to int.
daaad24
@ShreyasSinha
chore: fixed datatypes of few variables
b261690
@ShreyasSinha
chore:adding handling for storage class nad owner
6acb2a2
@product-auto-label product-auto-label Bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Oct 26, 2025
ShreyasSinha added 3 commits October 26, 2025 08:18
@ShreyasSinha
chore: Removed unwanted library decleration
ddfa9fd
@ShreyasSinha
chore: Adding seperate test for all use case of List parts.
337f972
@ShreyasSinha
chore: adding beta api annotation.
c7549b1
@ShreyasSinha
ShreyasSinha requested a review from BenWhitehead October 28, 2025 19:00
BenWhitehead
BenWhitehead reviewed Oct 28, 2025
View reviewed changes
Comment thread ...-storage/src/main/java/com/google/cloud/storage/multipartupload/model/ListPartsResponse.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/StorageClass.java
Comment on lines +115 to +119
@JsonCreator
public static StorageClass valueOf(String constant) {
if (constant == null || constant.isEmpty()) {
return null;
}

@BenWhitehead BenWhitehead Oct 28, 2025

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary?

If I remove it and run the following test, the test passes:

  private static final class TestXmlObject2 {
    @JacksonXmlProperty(localName = "storageClass")
    private StorageClass storageClass;
  }
  @Test
  public void testParseStringValueEnum() throws IOException {
    //language=xml
    String xml = "<TestXmlObject2>\n"
        + "  <storageClass>STANDARD</storageClass>"
        + "</TestXmlObject2>";
    InputStream in = new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8));
    TestXmlObject2 expected = new TestXmlObject2(StorageClass.STANDARD);
    TestXmlObject2 actual =
        xmlObjectParser.parseAndClose(in, StandardCharsets.UTF_8, TestXmlObject2.class);
    assertThat(actual).isEqualTo(expected);
  }

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ShreyasSinha ShreyasSinha Oct 30, 2025

Copy link
Copy Markdown
Collaborator Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required incase we have a null string. Try to run test https://paste.googleplex.com/5523315682836480 after removing it. You'll get https://paste.googleplex.com/5523315682836480 failure.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@BenWhitehead BenWhitehead Oct 30, 2025

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, but that is a deserialization issue not an enum resolution issue.

Enums can't have null values, and changing this method breaks that contract.
The exception explicitly states this fact:

Caused by: java.lang.IllegalArgumentException: Empty enum constants not allowed.
        at com.google.cloud.StringEnumType.valueOf(StringEnumType.java:66)
        at com.google.cloud.storage.StorageClass.valueOf(StorageClass.java:116)

Here is a PR that makes enum parsing work for xml without modifying any behavior or adding additional annotations: #3377

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@BenWhitehead

BenWhitehead commented Oct 28, 2025

Copy link
Copy Markdown
Collaborator

I'll spend some time tomorrow figuring out the dependencies failing build.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BenWhitehead

BenWhitehead commented Oct 29, 2025

Copy link
Copy Markdown
Collaborator

Applying the following patch to this branch should fix the failing dependency check

Index: google-cloud-storage/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/google-cloud-storage/pom.xml b/google-cloud-storage/pom.xml
--- a/google-cloud-storage/pom.xml	(revision c7549b10d56e40c5576a6a7f471d7cd6f8bba397)
+++ b/google-cloud-storage/pom.xml	(date 1761754153688)
@@ -28,6 +28,14 @@
       <artifactId>jackson-datatype-jsr310</artifactId>
     </dependency>
     <dependency>
+      <groupId>com.fasterxml.jackson.core</groupId>
+      <artifactId>jackson-databind</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>com.fasterxml.jackson.core</groupId>
+      <artifactId>jackson-annotations</artifactId>
+    </dependency>
+    <dependency>
       <groupId>com.google.guava</groupId>
       <artifactId>guava</artifactId>
     </dependency>

The fix can be verified locally by running mvn dependency:analyze -DfailOnWarning=true

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ShreyasSinha
chore: added review comments
3869259
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Oct 30, 2025
@ShreyasSinha
ShreyasSinha requested a review from BenWhitehead October 30, 2025 18:45
@BenWhitehead BenWhitehead mentioned this pull request Oct 30, 2025
chore: mpu preview merge train #3378
Merged
10 tasks done
@BenWhitehead

BenWhitehead commented Oct 30, 2025

Copy link
Copy Markdown
Collaborator

Assuming my fixes in #3377 are included in the ultimate merge train, this PR can be considered done.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

BenWhitehead
BenWhitehead approved these changes Oct 31, 2025
View reviewed changes

@BenWhitehead BenWhitehead left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ready for merge train

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Base automatically changed from mpu-feature-2 to staged-mpu-merge-train November 3, 2025 21:11
@BenWhitehead BenWhitehead changed the title feat: Adding API for ListParts feat: add MultipartUploadClient#listParts Nov 3, 2025
@BenWhitehead BenWhitehead changed the title feat: add MultipartUploadClient#listParts feat: add preview MultipartUploadClient#listParts Nov 3, 2025
BenWhitehead added a commit that referenced this pull request Nov 3, 2025
@ShreyasSinha @BenWhitehead
chore: mpu client preview merge train
479ffee
BEGIN_NESTED_COMMIT

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#createMultipartUpload #3356
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#listParts #3359
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#abortMultipartUpload #3361
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#uploadPart #3375
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#completeMultipartUpload #3372
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadSettings
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
END_COMMIT_OVERRIDE

END_NESTED_COMMIT

Other changes:
1. chore: refactor retrier creation from HttpStorageOptions to StorageOptions #3350
2. chore: refactorings for CreateMultipartUpload #3364
3. chore: fix xml parsing of StringEnumValue's so that the enum contract is not broken #3377
4. chore: add PredefinedAcl#xmlEntry

Co-authored-by: BenWhitehead <[email protected]>
BenWhitehead added a commit that referenced this pull request Nov 3, 2025
@ShreyasSinha @BenWhitehead
chore: mpu client preview merge train
7ad9fa4
BEGIN_NESTED_COMMIT

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#createMultipartUpload #3356
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#listParts #3359
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#abortMultipartUpload #3361
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#uploadPart #3375
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#completeMultipartUpload #3372
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadSettings
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
END_COMMIT_OVERRIDE

END_NESTED_COMMIT

Other changes:
1. chore: refactor retrier creation from HttpStorageOptions to StorageOptions #3350
2. chore: refactorings for CreateMultipartUpload #3364
3. chore: fix xml parsing of StringEnumValue's so that the enum contract is not broken #3377
4. chore: add PredefinedAcl#xmlEntry

Co-authored-by: BenWhitehead <[email protected]>
BenWhitehead added a commit that referenced this pull request Nov 3, 2025
@ShreyasSinha @BenWhitehead
chore: mpu client preview merge train
160fa9a
BEGIN_NESTED_COMMIT

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#createMultipartUpload #3356
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#listParts #3359
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#abortMultipartUpload #3361
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#uploadPart #3375
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadClient#completeMultipartUpload #3372
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
feat: add preview MultipartUploadSettings
END_COMMIT_OVERRIDE

BEGIN_COMMIT_OVERRIDE
END_COMMIT_OVERRIDE

END_NESTED_COMMIT

Other changes:
1. chore: refactor retrier creation from HttpStorageOptions to StorageOptions #3350
2. chore: refactorings for CreateMultipartUpload #3364
3. chore: fix xml parsing of StringEnumValue's so that the enum contract is not broken #3377
4. chore: add PredefinedAcl#xmlEntry

Co-authored-by: BenWhitehead <[email protected]>
@BenWhitehead

BenWhitehead commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator

merged to main in #3378

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BenWhitehead BenWhitehead closed this Nov 3, 2025
@BenWhitehead
BenWhitehead deleted the mpu-feature-3 branch November 3, 2025 23:51
@release-please release-please Bot mentioned this pull request Nov 3, 2025
chore(main): release 2.60.0 #3360
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@BenWhitehead BenWhitehead BenWhitehead approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the googleapis/java-storage API. size: l Pull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@ShreyasSinha @BenWhitehead
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.