messense / aliyundrive-webdav

阿里云盘 WebDAV 服务
MIT License
9.6k stars 1.09k forks source link

aliyundrive-webdav 2.3.2 resource driver issue #904

Closed Jas0n0ss closed 11 months ago

Jas0n0ss commented 11 months ago

问题描述

system info

[root@WRT:01:39 PM ~] # uname -a
Linux WRT 5.15.127 #0 SMP Tue Aug 22 05:54:08 2023 x86_64 GNU/Linux
[root@WRT:01:39 PM ~] # cpuinfo
Intel(R) Celeron(R) CPU  J1900  @ 1.99GHz x 4C 4T (1366.538MHz, 58.0°C)

when I change driver to resource , will receive 404

# logs
<unknown time>  INFO aliyundrive_webdav::drive: found resource drive drive_id=xxxxxxxxx
<unknown time>  INFO aliyundrive_webdav::webdav: listening on http://0.0.0.0:8090

# test connection
root@srv:~# curl -I http://192.168.4.1:8090 --user admin:xxxxx
HTTP/1.1 404 Not Found
content-length: 0
date: Thu, 21 Sep 2023 05:23:54 GMT

when I change driver back to backup , it's all good and received 200

# log
<unknown time>  INFO aliyundrive_webdav::drive: found backup drive drive_id=xxxxxxx
<unknown time>  INFO aliyundrive_webdav::webdav: listening on http://0.0.0.0:8090
# test connection
root@srv:~# curl -I http://192.168.4.1:8090 --user admin:xxxxxxx
HTTP/1.1 200 OK
content-type: text/html; charset=utf-8
date: Thu, 21 Sep 2023 05:36:35 GMT

We would like to know if this is a bug or something, anyone, any ideas?

重现步骤

when I change driver to resource , will receive 404

# logs
<unknown time>  INFO aliyundrive_webdav::drive: found resource drive drive_id=xxxxxxxxx
<unknown time>  INFO aliyundrive_webdav::webdav: listening on http://0.0.0.0:8090

# test connection
root@srv:~# curl -I http://192.168.4.1:8090 --user admin:xxxxx
HTTP/1.1 404 Not Found
content-length: 0
date: Thu, 21 Sep 2023 05:23:54 GMT

when I change driver back to backup , it's all good and received 200

# log
<unknown time>  INFO aliyundrive_webdav::drive: found backup drive drive_id=xxxxxxx
<unknown time>  INFO aliyundrive_webdav::webdav: listening on http://0.0.0.0:8090
# test connection
root@srv:~# curl -I http://192.168.4.1:8090 --user admin:xxxxxxx
HTTP/1.1 200 OK
content-type: text/html; charset=utf-8
date: Thu, 21 Sep 2023 05:36:35 GMT

版本

aliyundrive-webdav 2.3.2

运行平台

Intel(R) Celeron(R) CPU J1900 X86

日志

# logs
<unknown time>  INFO aliyundrive_webdav::drive: found resource drive drive_id=xxxxxxxxx
<unknown time>  INFO aliyundrive_webdav::webdav: listening on http://0.0.0.0:8090

# test connection
root@srv:~# curl -I http://192.168.4.1:8090 --user admin:xxxxx
HTTP/1.1 404 Not Found
content-length: 0
date: Thu, 21 Sep 2023 05:23:54 GMT
Jas0n0ss commented 11 months ago

我账号只有default的服务,没法测试 image

感谢及时回复

我发现问题的主要原因出在哪了,默认所有的资源都存在备份盘资源库里面是空的,所以backup driver 200, resource driver 404 image image