Skip to content
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

华为云对象存储 中文文件/文件夹改名报错 #7858

Open
4 tasks done
qengli opened this issue Jan 21, 2025 · 2 comments
Open
4 tasks done

华为云对象存储 中文文件/文件夹改名报错 #7858

qengli opened this issue Jan 21, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@qengli
Copy link

qengli commented Jan 21, 2025

Please make sure of the following things

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

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

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

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

AList Version / AList 版本

v3.39.1

Driver used / 使用的存储驱动

华为云对象存储obs

Describe the bug / 问题描述

将含有中文的文件夹或文件改名时会报如下错误:奇怪的是从全英文的名称改成中文的不会报错,但一旦文件名中有了中文再想改名就会报错了

Image

Reproduction / 复现链接

Config / 配置

Image

Image

Logs / 日志

后台日志

[GIN] 2025/01/21 - 16:16:18 | 200 |  218.914109ms |   58.246.101.71 | POST     "/api/fs/rename"
^[[31mERRO^[[0m[2025-01-21 16:16:31] failed rename /obs/testq1/未命名文件夹.txt to 未命名文1件夹.txt: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
        status code: 403, request id: 0000019487EF3FF790124E6C50BBE435, host id: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
github.com/alist-org/alist/v3/internal/op.Rename
        /source/internal/op/fs.go:428
github.com/alist-org/alist/v3/internal/fs.rename
        /source/internal/fs/other.go:40
github.com/alist-org/alist/v3/internal/fs.Rename
        /source/internal/fs/fs.go:81
github.com/alist-org/alist/v3/server/handles.FsRename
        /source/server/handles/fsmanage.go:161
github.com/gin-gonic/gin.(*Context).Next
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/alist-org/alist/v3/server/middlewares.Auth
        /source/server/middlewares/auth.go:73
github.com/gin-gonic/gin.(*Context).Next
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
        /source/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
        /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
        /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:589
net/http.serverHandler.ServeHTTP
        /usr/local/go/src/net/http/server.go:3210
net/http.(*conn).serve
        /usr/local/go/src/net/http/server.go:2092
runtime.goexit
        /usr/local/go/src/runtime/asm_arm.s:884
@qengli qengli added the bug Something isn't working label Jan 21, 2025
@Jason-Fly
Copy link
Contributor

可以复现

Image

@Jason-Fly
Copy link
Contributor

已定位到问题,请求头中的X-Amz-Copy-Source没有转义,导致计算出的签名错误

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants