AlistGo / AlistGo/alist

115通过alist的webdav挂载到本地进行更新时出错

Aperta
#7,542 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Go
Stelle
50.2k
Fork
7.9k
Merge medio
7g 21h
PR unite (30g)
6

Descrizione

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

- [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](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

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

### AList Version / AList 版本

v3.39.4

### Driver used / 使用的存储驱动

115

### Describe the bug / 问题描述

当我在本地上传文件到115时,报错,重新获取refresh token后恢复正常。
`
failed get objs: failed to list objs: 405a,body,div,h2,html,p{margin:0;padding:0}a{text-decoration:none;color:#3b6ea3}.container{width:1000px;margin:auto;color:#696969}.header{padding:110px 0}.header .message{height:36px;padding-left:120px;background:url(https://errors.aliyun.com/images/TB1TpamHpXXXXaJXXXXeB7nYVXX-104-162.png) no-repeat 0 -128px;line-height:36px}.main{padding:50px 0;background:#f4f5f7}#block_image{position:relative;left:120px}.footer{margin-top:30px;text-align:right}.footer a{padding:8px 30px;border-radius:10px;border:1px solid #4babec}.footer a:hover{opacity:.8}.alert-shadow{display:none;position:absolute;top:0;left:0;width:100%;height:100%;background:#999;opacity:.5}.alert{display:none;position:absolute;top:200px;left:50%;width:600px;margin-left:-300px;padding-bottom:25px;border:1px solid #ddd;box-shadow:0 2px 2px 1px rgba(0,0,0,.1);background:#fff;font-size:14px;color:#696969}.alert h2{margin:0 2px;padding:10px 15px 5px 15px;font-size:14px;font-weight:400;border-bottom:1px solid #ddd}.alert a{display:block;position:absolute;right:10px;top:8px;width:30px;height:20px;text-align:center}.alert p{padding:20px 15px}

function getRenderData(){var e=document.getElementById("renderData");return JSON.parse(e.innerHTML)}function convertTimestampToString(e){e=parseInt(e,10),e=new Date(e);return e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)+" "+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)}var en_tips={block_message:"Sorry, your request has been blocked as it may cause potential threats to the server's security.",block_url_tips:"Current URL: ",block_time_tips:"Request Time: ",block_traceid_tips:"Your Request ID is: "},cn_tips={block_message:"很抱歉,由于您访问的URL有可能对网站造成安全威胁,您的访问被阻断。",block_url_tips:"当前网址: ",block_time_tips:"请求时间: ",block_traceid_tips:"您的请求ID是: "};window.onload=function(){var e=getRenderData();if(e){var t,n=cn_tips,i=document.getElementById("block_image");for(t in"en"===e.lang?(n=en_tips,i.src="https://g.alicdn.com/sd-base/static/1.0.5/image/405.png",i.id="en_block"):(i.src="https://errors.aliyun.com/images/TB15QGaHpXXXXXOaXXXXia39XXX-660-117.png",document.getElementById("report").style.display="inline"),n)document.getElementById(t).innerText=n[t];i=e.traceid,e=i.slice(8,21);document.getElementById("traceid").innerText=i,document.getElementById("url").innerText=location.href.split("?")[0],document.getElementById("time").innerText=convertTimestampToString(e)}}{"traceid":"784e2c9c17322043412423760e0fab","lang":"cn"}: unexpected error`

### Reproduction / 复现链接

使用的ExpanDrive挂载工具,在对115内的文件夹A的.vs文件夹删除的时候,进行了A的重命名,再次在alist访问A文件夹,出现如上错误

### Config / 配置

![c439a4c0e44ff3da7be4e3c535517774](https://github.com/user-attachments/assets/dbdcbd4d-c773-477f-b8bc-ed23e2551ccc)

### Logs / 日志

[GIN] 2024/11/22 - 00:01:34 | 404 | 0s | 127.0.0.1 | PROPFIND "/dav/115(存程序压缩包)/字体样式font/"
ERRO[2024-11-22 00:01:35] failed move /115(存程序压缩包)/字体样式/.vs to /115(存程序压缩包)/字体样式font: object not found
github.com/alist-org/alist/v3/internal/op.Get
/source/internal/op/fs.go:227
github.com/alist-org/alist/v3/internal/op.GetUnwrap
/source/internal/op/fs.go:231
github.com/alist-org/alist/v3/internal/op.Move
/source/internal/op/fs.go:365
github.com/alist-org/alist/v3/internal/fs.move
/source/internal/fs/other.go:32
github.com/alist-org/alist/v3/internal/fs.Move
/source/internal/fs/fs.go:65
github.com/alist-org/alist/v3/server/webdav.moveFiles
/source/server/webdav/file.go:39
github.com/alist-org/alist/v3/server/webdav.(*Handler).handleCopyMove
/source/server/webdav/webdav.go:494
github.com/alist-org/alist/v3/server/webdav.(*Handler).ServeHTTP
/source/server/webdav/webdav.go:70
github.com/alist-org/alist/v3/server.ServeWebDAV
/source/server/webdav.go:46
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server.WebDAVAuth
/source/server/webdav.go:113
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/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/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/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_amd64.s:1700
failed to get dst dir
ERRO[2024-11-22 00:01:35] MOVE /dav/115(存程序压缩包)/字体样式/.vs object not found
github.com/alist-org/alist/v3/internal/op.Get
/source/internal/op/fs.go:227
github.com/alist-org/alist/v3/internal/op.GetUnwrap
/source/internal/op/fs.go:231
github.com/alist-org/alist/v3/internal/op.Move
/source/internal/op/fs.go:365
github.com/alist-org/alist/v3/internal/fs.move
/source/internal/fs/other.go:32
github.com/alist-org/alist/v3/internal/fs.Move
/source/internal/fs/fs.go:65
github.com/alist-org/alist/v3/server/webdav.moveFiles
/source/server/webdav/file.go:39
github.com/alist-org/alist/v3/server/webdav.(*Handler).handleCopyMove
/source/server/webdav/webdav.go:494
github.com/alist-org/alist/v3/server/webdav.(*Handler).ServeHTTP
/source/server/webdav/webdav.go:70
github.com/alist-org/alist/v3/server.ServeWebDAV
/source/server/webdav.go:46
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server.WebDAVAuth
/source/server/webdav.go:113
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/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/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/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_amd64.s:1700
failed to get dst dir
[GIN] 2024/11/22 - 00:01:35 | 500 | 634.7µs | 127.0.0.1 | MOVE "/dav/115(存程序压缩包)/字体样式/.vs"
ERRO[2024-11-22 00:01:35] MOVE /dav/115(存程序压缩包)/字体样式/.vs webdav: prefix mismatch
[GIN] 2024/11/22 - 00:01:35 | 404 | 0s | 127.0.0.1 | MOVE "/dav/115(存程序压缩包)/字体样式/.vs"
WARN[2024-11-22 00:01:35] failed get /115(存程序压缩包)/字体样式font: object not found
ERRO[2024-11-22 00:01:35] PROPFIND /dav/115(存程序压缩包)/字体样式font/ object not found
github.com/alist-org/alist/v3/internal/op.Get
/source/internal/op/fs.go:227
github.com/alist-org/alist/v3/internal/fs.get
/source/internal/fs/get.go:38
github.com/alist-org/alist/v3/internal/fs.Get
/source/internal/fs/fs.go:37
github.com/alist-org/alist/v3/server/webdav.(*Handler).handlePropfind
/source/server/webdav/webdav.go:633
github.com/alist-org/alist/v3/server/webdav.(*Handler).ServeHTTP
/source/server/webdav/webdav.go:76
github.com/alist-org/alist/v3/server.ServeWebDAV
/source/server/webdav.go:46
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server.WebDAVAuth
/source/server/webdav.go:113
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/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/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/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_amd64.s:1700
[GIN] 2024/11/22 - 00:01:35 | 404 | 625µs | 127.0.0.1 | PROPFIND "/dav/115(存程序压缩包)/字体样式font/"
[GIN] 2024/11/22 - 00:01:36 | 207 | 0s | 127.0.0.1 | PROPFIND "/dav/115(存程序压缩包)/字体样式/"
ERRO[2024-11-22 00:01:38] failed move /115(存程序压缩包)/字体样式/.vs to /115(存程序压缩包)/字体样式font: object not found
github.com/alist-org/alist/v3/internal/op.Get
/source/internal/op/fs.go:227
github.com/alist-org/alist/v3/internal/op.GetUnwrap
/source/internal/op/fs.go:231
github.com/alist-org/alist/v3/internal/op.Move
/source/internal/op/fs.go:365
github.com/alist-org/alist/v3/internal/fs.move
/source/internal/fs/other.go:32
github.com/alist-org/alist/v3/internal/fs.Move
/source/internal/fs/fs.go:65
github.com/alist-org/alist/v3/server/webdav.moveFiles
/source/server/webdav/file.go:39
github.com/alist-org/alist/v3/server/webdav.(*Handler).handleCopyMove
/source/server/webdav/webdav.go:494
github.com/alist-org/alist/v3/server/webdav.(*Handler).ServeHTTP
/source/server/webdav/webdav.go:70
github.com/alist-org/alist/v3/server.ServeWebDAV
/source/server/webdav.go:46
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/alist-org/alist/v3/server.WebDAVAuth
/source/server/webdav.go:113
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/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/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/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_amd64.s:1700
failed to get dst dir
ERRO[2024-11-22 00:01:38] MOVE /dav/115(存程序压缩包)/字体样式/.vs object not found

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.