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

按目录查询文件/文件夹接口分页参数失效 #5197

Closed
4 tasks done
vvnocode opened this issue Sep 10, 2023 · 6 comments
Closed
4 tasks done

按目录查询文件/文件夹接口分页参数失效 #5197

vvnocode opened this issue Sep 10, 2023 · 6 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@vvnocode
Copy link

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.27.0

Driver used / 使用的存储驱动

本机存储

Describe the bug / 问题描述

按目录查询文件/文件夹接口分页接口为/api/fs/list,参数如下:

{
    "path": "/Pictures/插画/yande_pools_collection",
    "password": "",
    "page": 1,
    "per_page": 0,
    "refresh": false
}

由于该文件夹下子文件有8000+多个,返回速度1.3秒,但是web端渲染花费5-6秒。

经测试,per_page在postman中传入非0值,/api/fs/list接口是可以生效的,也就是说分页接口没问题。
我在设置-站点-默认每页数量设置了30,但是实际接口调用传入依然是0。web端需要滚动时查询,而不是传入0查询全量数据。

综上,web端应该是有缺陷。

Reproduction / 复现链接

https://myip/api/fs/list

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": ""
  },
  "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",
  "log": {
    "enable": true,
    "name": "data/log/log.log",
    "max_size": 50,
    "max_backups": 30,
    "max_age": 28,
    "compress": false
  },
  "delayed_start": 0,
  "max_connections": 0,
  "tls_insecure_skip_verify": true
}

Logs / 日志

No response

@vvnocode vvnocode added the bug Something isn't working label Sep 10, 2023
@welcome
Copy link

welcome bot commented Sep 10, 2023

Thanks for opening your first issue here! Be sure to follow the issue template!

@xhofe
Copy link
Collaborator

xhofe commented Sep 10, 2023

@xhofe xhofe added the invalid This doesn't seem right label Sep 10, 2023
@github-actions
Copy link

Hello @vvnocode, your issue is invalid and will be closed.
你好 @vvnocode,你的issue无效,将被关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2023
@vvnocode
Copy link
Author

https://alist.nn.ci/zh/config/site.html#%E5%88%86%E9%A1%B5%E7%B1%BB%E5%9E%8B

设置-站点-默认每页数量设置成20了,但是没用。

@xhofe
Copy link
Collaborator

xhofe commented Sep 16, 2023

alist.nn.ci/zh/config/site.html#%E5%88%86%E9%A1%B5%E7%B1%BB%E5%9E%8B

设置-站点-默认每页数量设置成20了,但是没用。

看清楚我发的是什么

@vvnocode
Copy link
Author

alist.nn.ci/zh/config/site.html#%E5%88%86%E9%A1%B5%E7%B1%BB%E5%9E%8B

设置-站点-默认每页数量设置成20了,但是没用。

看清楚我发的是什么

谢谢

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

No branches or pull requests

2 participants