-
Notifications
You must be signed in to change notification settings - Fork 0
bug/dispatch fix copy object replace tag #169
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 updates the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant S3Adapter
participant S3Service as MinioClient
Client->>S3Adapter: copyFile(src, dest, clearTags=true)
S3Adapter->>S3Adapter: Check clearTags flag
S3Adapter->>S3Adapter: Set tagging directive to REPLACE
S3Adapter->>S3Adapter: Add header "x-amz-tagging" with empty value
S3Adapter->>S3Service: Send copy file request
S3Service-->>S3Adapter: Response
S3Adapter-->>Client: Return result
Suggested reviewers
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: 0
🧹 Nitpick comments (1)
dispatch-service/src/main/java/de/muenchen/oss/swim/dispatcher/adapter/out/s3/S3Adapter.java (1)
266-270: Effective workaround for MinIO's empty tag handling limitationThis is a good solution for addressing the MinIO-specific issue where empty tags aren't set as headers during copy operations. The approach correctly implements the workaround by:
- Setting the tagging directive to REPLACE
- Explicitly adding the required "x-amz-tagging" header with an empty value
Consider adding a reference to any relevant MinIO issue or documentation for better context, as this is a workaround for a specific implementation limitation rather than standard S3 behavior.
📜 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)
Description
Dispatch add workaround for copy object replace tags as minio doesn't set empty tags as header.
References
Summary by CodeRabbit