Skip to content

Conversation

@dezhishen
Copy link
Member

@dezhishen dezhishen commented Dec 25, 2025

fix #1788

for test container image: dezhishen/openlist:1788

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where S3 gateway uploads to Baidu Cloud fail due to invalid timestamp values. When S3 clients don't provide modification time metadata (X-Amz-Meta-Mtime or mtime), the code was creating objects with zero-value timestamps, which convert to invalid negative Unix timestamps that Baidu Cloud's API rejects.

  • Sets current time as default when modification time metadata is not provided in S3 requests
  • Aligns S3 backend behavior with the existing web API pattern that defaults to current time

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 使用s3网关上传文件到百度云失败

1 participant