Skip to content

v4.2.2天翼云盘无法覆盖替换上传文件 #2620

Description

@shou-jj

请确认以下事项

  • 我已确认阅读并同意 AGPL-3.0 第15条
    本程序不提供任何明示或暗示的担保,使用风险由您自行承担。

  • 我已确认阅读并同意 AGPL-3.0 第16条
    无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。

  • 我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。

  • 我已确认阅读了OpenList文档

  • 我已确认没有重复的问题或讨论。

  • 我已确认是OpenList的问题,而不是其他原因(例如 网络依赖操作)。

  • 我认为此问题必须由OpenList处理,而非第三方。

  • 我已确认这个问题在最新版本中没有被修复。

  • 我没有阅读这个清单,只是闭眼选中了所有的复选框,请关闭这个 Issue 。

OpenList 版本(必填)

v4.2.2

使用的存储驱动(必填)

天翼云盘客户端

问题描述(必填)

更新4.2.2后天翼云盘客户端上传相同内容要是有一样的选择覆盖上传后100%报错,我是webdav挂载在mt客户端,提示报错是Error contacting http://127.0.0.1:5244/dav/天翼家庭云/脚本备份/tools/19eca78a6e5baac0be3.tmp (500 Internal Server Error)
回退4.2.1就都正常了

日志(必填)

[GIN] 2026/06/15 - 11:58:59 | 207 | 51.227865ms | 192.168.0.3 | PROPFIND "/dav/"
[GIN] 2026/06/15 - 11:59:04 | 207 | 663.108333ms | 192.168.0.3 | PROPFIND "/dav/天翼家庭云/"
[GIN] 2026/06/15 - 11:59:05 | 207 | 295.845937ms | 192.168.0.3 | PROPFIND "/dav/天翼家庭云/脚本备份/"
[GIN] 2026/06/15 - 11:59:07 | 207 | 336.356615ms | 192.168.0.3 | PROPFIND "/dav/天翼家庭云/脚本备份/tools/"
�[33mWARN�[0m[2026-06-15 11:59:07] failed get /天翼家庭云/脚本备份/tools/ZSTD: object not found
�[31mERRO�[0m[2026-06-15 11:59:07] HEAD /dav/天翼家庭云/脚本备份/tools/ZSTD object not found
github.com/OpenListTeam/OpenList/v4/internal/op.Get
/home/runner/work/OpenList/OpenList/internal/op/fs.go:213
github.com/OpenListTeam/OpenList/v4/internal/fs.get
/home/runner/work/OpenList/OpenList/internal/fs/get.go:37
github.com/OpenListTeam/OpenList/v4/internal/fs.Get
/home/runner/work/OpenList/OpenList/internal/fs/fs.go:44
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).handleGetHeadPost
/home/runner/work/OpenList/OpenList/server/webdav/webdav.go:242
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).ServeHTTP
/home/runner/work/OpenList/OpenList/server/webdav/webdav.go:67
github.com/OpenListTeam/OpenList/v4/server.ServeWebDAV
/home/runner/work/OpenList/OpenList/server/webdav.go:47
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDav.DownloadRateLimiter.func3
/home/runner/work/OpenList/OpenList/server/middlewares/limit.go:51
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDav.UploadRateLimiter.func2
/home/runner/work/OpenList/OpenList/server/middlewares/limit.go:28
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDAVAuth
/home/runner/work/OpenList/OpenList/server/webdav.go:151
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server/middlewares.StoragesLoaded
/home/runner/work/OpenList/OpenList/server/middlewares/check.go:35
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:644
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:600
net/http.serverHandler.ServeHTTP
/opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:3340
net/http.(*conn).serve
/opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:2109
runtime.goexit
/opt/hostedtoolcache/go/1.25.0/x64/src/runtime/asm_arm64.s:1268
[GIN] 2026/06/15 - 11:59:07 | 404 | 9.378906ms | 192.168.0.3 | HEAD "/dav/天翼家庭云/脚本备份/tools/ZSTD"
[GIN] 2026/06/15 - 11:59:11 | 207 | 7.481823ms | 192.168.0.3 | PROPFIND "/dav/天翼家庭云/脚本备份/tools/"
[GIN] 2026/06/15 - 11:59:18 | 201 | 5.246957446s | 192.168.0.3 | PUT "/dav/天翼家庭云/脚本备份/tools/19ecb266d28cbe281cc.tmp"
[GIN] 2026/06/15 - 11:59:19 | 204 | 472.453282ms | 192.168.0.3 | DELETE "/dav/天翼家庭云/脚本备份/tools/tools.sh"
�[31mERRO�[0m[2026-06-15 11:59:19] failed rename /天翼家庭云/脚本备份/tools/19ecb266d28cbe281cc.tmp to tools.sh: json: cannot unmarshal number into Go struct field RenameResp.id of type string
github.com/OpenListTeam/OpenList/v4/internal/op.Rename
/home/runner/work/OpenList/OpenList/internal/op/fs.go:475
github.com/OpenListTeam/OpenList/v4/internal/fs.rename
/home/runner/work/OpenList/OpenList/internal/fs/other.go:31
github.com/OpenListTeam/OpenList/v4/internal/fs.Rename
/home/runner/work/OpenList/OpenList/internal/fs/fs.go:96
github.com/OpenListTeam/OpenList/v4/server/webdav.moveFiles
/home/runner/work/OpenList/OpenList/server/webdav/file.go:59
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).handleCopyMove
/home/runner/work/OpenList/OpenList/server/webdav/webdav.go:562
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).ServeHTTP
/home/runner/work/OpenList/OpenList/server/webdav/webdav.go:78
github.com/OpenListTeam/OpenList/v4/server.ServeWebDAV
/home/runner/work/OpenList/OpenList/server/webdav.go:47
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDAVAuth
/home/runner/work/OpenList/OpenList/server/webdav.go:151
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server/middlewares.StoragesLoaded
/home/runner/work/OpenList/OpenList/server/middlewares/check.go:35
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:644
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:600
net/http.serverHandler.ServeHTTP
/opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:3340
net/http.(*conn).serve
/opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:2109
runtime.goexit
/opt/hostedtoolcache/go/1.25.0/x64/src/runtime/asm_arm64.s:1268
�[31mERRO�[0m[2026-06-15 11:59:19] MOVE /dav/天翼家庭云/脚本备份/tools/19ecb266d28cbe281cc.tmp json: cannot unmarshal number into Go struct field RenameResp.id of type string
github.com/OpenListTeam/OpenList/v4/internal/op.Rename
/home/runner/work/OpenList/OpenList/internal/op/fs.go:475
github.com/OpenListTeam/OpenList/v4/internal/fs.rename
/home/runner/work/OpenList/OpenList/internal/fs/other.go:31
github.com/OpenListTeam/OpenList/v4/internal/fs.Rename
/home/runner/work/OpenList/OpenList/internal/fs/fs.go:96
github.com/OpenListTeam/OpenList/v4/server/webdav.moveFiles
/home/runner/work/OpenList/OpenList/server/webdav/file.go:59
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).handleCopyMove
/home/runner/work/OpenList/OpenList/server/webdav/webdav.go:562
github.com/OpenListTeam/OpenList/v4/server/webdav.(*Handler).ServeHTTP
/home/runner/work/OpenList/OpenList/server/webdav/webdav.go:78
github.com/OpenListTeam/OpenList/v4/server.ServeWebDAV
/home/runner/work/OpenList/OpenList/server/webdav.go:47
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server.WebDAVAuth
/home/runner/work/OpenList/OpenList/server/webdav.go:151
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/OpenListTeam/OpenList/v4/server/middlewares.StoragesLoaded
/home/runner/work/OpenList/OpenList/server/middlewares/check.go:35
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:644
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:600
net/http.serverHandler.ServeHTTP
/opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:3340
net/http.(*conn).serve
/opt/hostedtoolcache/go/1.25.0/x64/src/net/http/server.go:2109
runtime.goexit
/opt/hostedtoolcache/go/1.25.0/x64/src/runtime/asm_arm64.s:1268
[GIN] 2026/06/15 - 11:59:19 | 500 | 262.782499ms | 192.168.0.3 | MOVE "/dav/天翼家庭云/脚本备份/tools/19ecb266d28cbe281cc.tmp"
[GIN] 2026/06/15 - 11:59:19 | 207 | 2.859583ms | 192.168.0.3 | PROPFIND "/dav/天翼家庭云/脚本备份/tools/"

配置文件内容(必填)

{
"force": false,
"site_url": "",
"cdn": "",
"jwt_secret": "gs8032l9Z2D2xmmF",
"token_expires_in": 48,
"database": {
"type": "sqlite3",
"host": "",
"port": 0,
"user": "",
"password": "",
"name": "",
"db_file": "/data/adb/modules/OpenList/data/data.db",
"table_prefix": "x_",
"ssl_mode": "",
"dsn": ""
},
"meilisearch": {
"host": "http://localhost:7700",
"api_key": "",
"index": "openlist"
},
"scheme": {
"address": "0.0.0.0",
"http_port": 5244,
"https_port": 5255,
"force_https": false,
"cert_file": "/data/adb/modules/OpenList/data/server.crt",
"key_file": "/data/adb/modules/OpenList/data/server.key",
"unix_file": "",
"unix_file_perm": "",
"enable_h2c": false,
"enable_h3": false
},
"temp_dir": "/data/adb/modules/OpenList/data/temp",
"bleve_dir": "/data/adb/modules/OpenList/data/bleve",
"dist_dir": "",
"log": {
"enable": true,
"name": "/data/adb/modules/OpenList/data/log/log.log",
"max_size": 50,
"max_backups": 30,
"max_age": 28,
"compress": false,
"filter": {
"enable": false,
"filters": [
{
"cidr": "",
"path": "/ping",
"method": ""
},
{
"cidr": "",
"path": "",
"method": "HEAD"
},
{
"cidr": "",
"path": "/dav/",
"method": "PROPFIND"
}
]
}
},
"delayed_start": 0,
"auto_memory_limit": 4,
"min_free_memory": 0,
"max_block_limit": 0,
"max_connections": 0,
"max_concurrency": 64,
"tls_insecure_skip_verify": true,
"tasks": {
"download": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"transfer": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"upload": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"copy": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"move": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"decompress_upload": {
"workers": 5,
"max_retry": 2,
"task_persistant": false
},
"allow_retry_canceled": false
},
"cors": {
"allow_origins": [
""
],
"allow_methods": [
"
"
],
"allow_headers": [
"*"
]
},
"s3": {
"enable": false,
"port": 5246,
"ssl": false
},
"ftp": {
"enable": true,
"listen": ":5221",
"find_pasv_port_attempts": 50,
"active_transfer_port_non_20": false,
"idle_timeout": 900,
"connection_timeout": 30,
"disable_active_mode": false,
"default_transfer_binary": false,
"enable_active_conn_ip_check": true,
"enable_pasv_conn_ip_check": true
},
"sftp": {
"enable": true,
"listen": ":5222"
},
"last_launched_version": "v4.2.2",
"proxy_address": ""
}

复现链接(可选)

No response

AI生成内容(可选)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions