-
Notifications
You must be signed in to change notification settings - Fork 0
bug/dispatch fix tagging with empty values #177
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
Conversation
WalkthroughThe pull request modifies the Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Caller
participant Adapter as S3Adapter
participant Minio as MinioClient
Client->>Adapter: Call getTagsOfFile()
Adapter->>Minio: getObjectTags(getObjectTagsArgs)
Minio-->>Adapter: Return tags (map, may contain null values)
Adapter->>Adapter: Process tags (replace null with "")
Adapter->>Client: Return processed tags
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
dispatch-service/src/main/java/de/muenchen/oss/swim/dispatcher/adapter/out/s3/S3Adapter.java(1 hunks)
🧰 Additional context used
🪛 GitHub Actions: build all
dispatch-service/src/main/java/de/muenchen/oss/swim/dispatcher/adapter/out/s3/S3Adapter.java
[error] 329-329: The following files had format violations: Run 'mvn spotless:apply' to fix these violations.
🔇 Additional comments (1)
dispatch-service/src/main/java/de/muenchen/oss/swim/dispatcher/adapter/out/s3/S3Adapter.java (1)
326-333:Details
✅ Verification successful
Good implementation of the null-to-empty-string conversion for tag values.
The code properly addresses the issue with Minio treating empty tags as null instead of empty strings. By converting any null values to empty strings, you ensure consistent behavior in the application.
🏁 Script executed:
#!/bin/bash # Check if there are other places in the codebase that might need similar null handling for Minio tags rg -A 5 -B 5 "minioClient\.getObjectTags" --type java # Look for potential references to the Minio issue mentioned in the PR rg "empty tags" --type javaLength of output: 1795
Null-to-Empty Tag Conversion Verified
The implementation correctly converts null tag values to empty strings, addressing the Minio behavior around empty tags. Our verification confirms that this handling is only applied in
dispatch-service/src/main/java/de/muenchen/oss/swim/dispatcher/adapter/out/s3/S3Adapter.javaand that similar logic isn’t required elsewhere. The code is robust and no further modifications are needed.🧰 Tools
🪛 GitHub Actions: build all
[error] 329-329: The following files had format violations: Run 'mvn spotless:apply' to fix these violations.
Description
Dispatch fix tagging with empty values.
Implement workaround because Minio handles empty tags as null instead of empty string.
Reference
Issue minio/minio-java#1634
Summary by CodeRabbit