AlistGo / AlistGo/alist

Incorrect search result count (total) returned

Đang mở
#4,973 11 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug help wanted
Ngôn ngữ chính
Go
Star
50.2k
Fork
7.9k
Merge trung bình
7 ngày 21 giờ
Pull request đã merge (30 ngày)
6

Mô tả

### 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.25.1

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

Any

### Describe the bug / 问题描述

reason:
https://github.com/alist-org/alist/blob/b91ed7a78ae255f427a7480e2a713ac8a7289032/server/handles/search.go#L46
the total is assigned before going through the meta to see what is hided

effect:
![image](https://github.com/alist-org/alist/assets/58730749/6e5d0f8f-a44e-4ee5-9dc0-48c386444559)
![image](https://github.com/alist-org/alist/assets/58730749/96065ee3-57e8-4644-8637-6459ea342549)

### Reproduction / 复现链接

http://digitalocean1.itshenryz.com:5244/

### Config / 配置

Unnecessary

### Logs / 日志

Unnecessary

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.