alist icon indicating copy to clipboard operation
alist copied to clipboard

mtime元数据问题,导致s3上传文件报错

Open liuzhiyongliuzhiyong opened this issue 5 months ago • 4 comments

Please make sure of the following things

  • [x] I have read the documentation. 我已经阅读了文档

  • [x] I'm sure there are no duplicate issues or discussions. 我确定没有重复的issue或讨论。

  • [x] I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational). 我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • [x] I'm sure this issue is not fixed in the latest version. 我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.45.1

Driver used / 使用的存储驱动

百度网盘

Describe the bug / 问题描述

大部分工具或者框架使用s3上传文件不会带meta元数据,但是项目中如果没有获取到客户端传过来的meta会使用一个1970年的时间,导致上传到各云盘文件接口报错

Reproduction / 复现链接

以下为测试百度网盘s3方式上传文件 Image

Image

Config / 配置

以下为测试百度网盘s3方式上传文件 Image

Image

Logs / 日志

No response

liuzhiyongliuzhiyong avatar Jul 04 '25 03:07 liuzhiyongliuzhiyong

您提到的问题是关于使用 S3 上传文件时,缺少 meta 元数据导致的错误。在项目中,如果没有获取到客户端传过来的 meta 数据,会使用一个 1970 年的时间戳,这可能导致上传到各云盘文件接口时出现错误。

为了帮助解决这个问题,我们可以尝试以下步骤:

  1. 检查代码逻辑:确保在上传文件时,正确处理了 meta 数据。如果客户端没有提供 meta 数据,可能需要设置一个合理的默认值,而不是使用 1970 年的时间戳。

  2. 代码修改建议:我们可以查看相关代码文件,看看是否有需要修改的地方。您是否有权限查看或修改代码?

  3. 更新到最新版本:确保您使用的是 AList 的最新版本,因为有可能在更新中已经修复了这个问题。

如果您需要进一步的帮助或具体的代码修改建议,请告诉我!我可以帮助您查找相关代码文件并提出修改建议。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

petercat-assistant[bot] avatar Jul 04 '25 03:07 petercat-assistant[bot]

问题已经修复。等待下个版本一起发布

skysliences avatar Jul 15 '25 12:07 skysliences

问题已经修复。等待下个版本一起发布

感谢大佬

liuzhiyongliuzhiyong avatar Jul 17 '25 03:07 liuzhiyongliuzhiyong

不好意思,大佬,3.47.0版本这个问题好像还是存在

问题已经修复。等待下个版本一起发布

liuzhiyongliuzhiyong avatar Jul 30 '25 01:07 liuzhiyongliuzhiyong