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

更新索引无效 #5564

Closed
4 tasks done
Ausli opened this issue Nov 24, 2023 · 9 comments
Closed
4 tasks done

更新索引无效 #5564

Ausli opened this issue Nov 24, 2023 · 9 comments
Labels
bug Something isn't working stale No activity for more than 30 days

Comments

@Ausli
Copy link

Ausli commented Nov 24, 2023

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

Driver used / 使用的存储驱动

onedriver

Describe the bug / 问题描述

启用了自动更新索引,删除文件后文件依然在索引中,没有生效,点入链接显示 object not found

Reproduction / 复现链接

url: https://file.richsnow.top/
user: test
password: test123456
权限:删除 上传

Config / 配置

屏幕截图 2023-11-24 213513

Logs / 日志

屏幕截图 2023-11-24 213427
屏幕截图 2023-11-24 213352
image

@Ausli Ausli added the bug Something isn't working label Nov 24, 2023
Copy link

welcome bot commented Nov 24, 2023

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

@Ausli
Copy link
Author

Ausli commented Nov 24, 2023

文件删除后,索引不更新,这应该是一个bug

@anwen-anyi
Copy link
Contributor

这个自动更新索引是指的 文件有新增进行数据索引,但是数据已经写到数据库了,应该没考虑删除自动删除无效索引,那得实时监测列表变化吧,毕竟只是一个列表程序,不是专业的网盘程序,不好搞。我也只是一个用户,当时添加索引时候已经很难搞了 理解开发者。

例如我原本添加了 /a/b.txt 文件,我在网盘中把它删除了,再加上AList有列表缓存不是实时刷新的,就算刷新了也无法感知,只能重新索引全部的才能知道哪里少了,这样索引全部的和手动全部索引没区别了

以上是我个人使用的理解,所以这个不好处理。

@Ausli
Copy link
Author

Ausli commented Nov 26, 2023

@anwen-anyi 这个应该不难,我只需要修改后更新即可不需要实时监测列表变化,因为我的所有操作都是在alist中完成的,只需要修改命名,删除文件修改索引即可,索引做到了文件上传添加到了索引,但删除文件后还在,这个应该就属于漏洞了。而且它这个索引感觉就有问题,更新填了路径值/a索引点了,索引直接失效了,只能重构索引。

@anwen-anyi
Copy link
Contributor

@anwen-anyi 这个应该不难,我只需要修改后更新即可不需要实时监测列表变化,因为我的所有操作都是在alist中完成的,只需要修改命名,删除文件修改索引即可,索引做到了文件上传添加到了索引,但删除文件后还在,这个应该就属于漏洞了。而且它这个索引感觉就有问题,更新填了路径值/a索引点了,索引直接失效了,只能重构索引。

🐱 需求一句话 技术敲烂手) 是bug没错,但是应该不好搞。

@IAALAI
Copy link

IAALAI commented Nov 26, 2023

@anwen-anyi 这个应该不难,我只需要修改后更新即可不需要实时监测列表变化,因为我的所有操作都是在alist中完成的,只需要修改命名,删除文件修改索引即可,索引做到了文件上传添加到了索引,但删除文件后还在,这个应该就属于漏洞了。而且它这个索引感觉就有问题,更新填了路径值/a索引点了,索引直接失效了,只能重构索引。

确实,调API删文件的时候,后端就可以操作索引了

Copy link

stale bot commented Jan 9, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No activity for more than 30 days label Jan 9, 2024
@github-actions github-actions bot mentioned this issue Jan 19, 2024
4 tasks
Copy link

Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale No activity for more than 30 days
Projects
None yet
Development

No branches or pull requests

3 participants