alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
39.38k stars 5.11k forks source link

对象存储,文件及文件夹重命名报错 #6550

Open ww198610 opened 1 month ago

ww198610 commented 1 month ago

Please make sure of the following things

AList Version / AList 版本

v3.35.0

Driver used / 使用的存储驱动

对象存储

Describe the bug / 问题描述

1、test333 文件重命名后,没有效果 2、cn11244555666 文件夹可以修改 3、微信图片_20230906085336.jpg 报错

Reproduction / 复现链接

https://pan.01logistic.com 账号:test 密码:123456

Config / 配置

conf.json只改了一个site_url image

Logs / 日志

错误的: ERRO[2024-05-30 01:49:44] failed rename /test1/微信图片_20230906085336.jpg to 微信图片_2023090608533611.jpg: NoSuchKey: The specified key does not exist. status code: 404, request id: ZV862XM3BXPBTXVS, host id: 1CHho4oiZ071TuZOXuWCHJb2ugHa3iztedsh6I4J6pi27NtirL3nm56W021nVPhs9oVDDx/HDAY= github.com/alist-org/alist/v3/internal/op.Rename /home/runner/work/alist/alist/internal/op/fs.go:424 github.com/alist-org/alist/v3/internal/fs.rename /home/runner/work/alist/alist/internal/fs/other.go:40 github.com/alist-org/alist/v3/internal/fs.Rename /home/runner/work/alist/alist/internal/fs/fs.go:81 github.com/alist-org/alist/v3/server/handles.FsRename /home/runner/work/alist/alist/server/handles/fsmanage.go:161 github.com/gin-gonic/gin.(Context).Next /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/alist-org/alist/v3/server/middlewares.Auth /home/runner/work/alist/alist/server/middlewares/auth.go:73 github.com/gin-gonic/gin.(Context).Next /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded /home/runner/work/alist/alist/server/middlewares/check.go:14 github.com/gin-gonic/gin.(Context).Next /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1 /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 github.com/gin-gonic/gin.(Context).Next /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.LoggerWithConfig.func1 /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240 github.com/gin-gonic/gin.(Context).Next /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.(Engine).handleHTTPRequest /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 github.com/gin-gonic/gin.(Engine).ServeHTTP /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 net/http.serverHandler.ServeHTTP /opt/hostedtoolcache/go/1.22.3/x64/src/net/http/server.go:3137 net/http.(conn).serve /opt/hostedtoolcache/go/1.22.3/x64/src/net/http/server.go:2039 runtime.goexit /opt/hostedtoolcache/go/1.22.3/x64/src/runtime/asm_amd64.s:1695

welcome[bot] commented 1 month ago

Thanks for opening your first issue here! Be sure to follow the issue template!

ww198610 commented 3 weeks ago

有没有一种可能,是因为中文字符的问题,我从S3中将微信图片_20230906085336.jpg改为20230906085336.jpg,再次用alist,进行重命名,就正常了

ww198610 commented 3 weeks ago

我把代码down下来,看了一下,发现中文会导致修改失败,尝试修改了一下代码就成功了。这个只是rename,只是一个验证我的想法 image

同时我发现一个问题,通过亚马逊S3后台,新建的文件夹,无法移动,无法重命名,不提示报错(非中文)