访问不存在的文件/文件夹时一直加载而不是提示不存在
Please make sure of the following things
-
[X] I have read the documentation. 我已经阅读了文档。
-
[X] I'm sure there are no duplicate issues or discussions. 我确定没有重复的issue或讨论。
-
[X] I'm sure it's due to
AListand not something else(such as Network ,DependenciesorOperational). 我确定是AList的问题,而不是其他原因(例如网络,依赖或操作)。 -
[X] I'm sure this issue is not fixed in the latest version. 我确定这个问题在最新版本中没有被修复。
AList Version / AList 版本
v3.38.0
Driver used / 使用的存储驱动
本机存储、阿里云盘open,123云盘均出现,疑似无关存储驱动
Describe the bug / 问题描述
当访问一个不存在的文件/文件夹时,界面会显示一直转圈圈加载,我的预期是提示文件/文件夹不存在 例如我分享我的一个文件夹链接到了某地,如果路径改变,或者输错路径什么的,打开来链接就会一直加载,让人以为这个路径还在,但实际这个路径已经不存在了,不利于查看真实情况 ~~我才不会说是因为我输错路径一直加载以为出bug加载不了文件夹了才发现的~~ 怀疑这是一个不利于用户查看的特性,希望能修改(
Reproduction / 复现链接
例如官方提供的演示站 https://alist.pages.dev/test 访问test这个不存在的文件夹,就会一直加载
Config / 配置
{ "force": false, "site_url": "/", "cdn": "", "jwt_secret": "********", "token_expires_in": 48, "database": { "type": "sqlite3", "host": "", "port": 0, "user": "", "password": "", "name": "", "db_file": "data\data.db", "table_prefix": "x_", "ssl_mode": "", "dsn": "" }, "meilisearch": { "host": "http://localhost:7700", "api_key": "", "index_prefix": "" }, "scheme": { "address": "0.0.0.0", "http_port": 5244, "https_port": -1, "force_https": false, "cert_file": "", "key_file": "", "unix_file": "", "unix_file_perm": "" }, "temp_dir": "data\temp", "bleve_dir": "data\bleve", "dist_dir": "", "log": { "enable": true, "name": "data\log\log.log", "max_size": 10, "max_backups": 5, "max_age": 28, "compress": false }, "delayed_start": 0, "max_connections": 0, "tls_insecure_skip_verify": true, "tasks": { "download": { "workers": 5, "max_retry": 1, "task_persistant": true }, "transfer": { "workers": 5, "max_retry": 2, "task_persistant": true }, "upload": { "workers": 5, "max_retry": 0, "task_persistant": false }, "copy": { "workers": 5, "max_retry": 2, "task_persistant": true } }, "cors": { "allow_origins": [ "" ], "allow_methods": [ "" ], "allow_headers": [ "*" ] }, "s3": { "enable": false, "port": 5246, "ssl": false } }
Logs / 日志
No response
Thanks for opening your first issue here! Be sure to follow the issue template!
试了一下,在地址栏手动输入一个不存在的路径,接口会返回错误信息,但是页面还在播放加载动画
提了修复 PR:https://github.com/AlistGo/alist-web/pull/241