Skip to content

Full-text search can retrieve files that are in the Recycle Bin. #3386

@me-at-xiaozhiyuqwq

Description

@me-at-xiaozhiyuqwq

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed. / 请使用英语提交,否则会被关闭。
  • Please do not modify this template :) and fill in all the required fields.

Cloudreve version

4.15.0

Pro or Community Edition

Pro

Database type

MySQL

Browser and operating system

Edge 146.0.3856.72 on windows 11

Steps to reproduce

  1. Configure full-text search.
  2. Upload a new file (must be in a searchable format and within the allowable file size).
  3. Move this file to the Recycle Bin.
  4. Perform a full-text search.
  5. The file located in the Recycle Bin can be found via search.

✔️ Expected Behavior

Files in the Recycle Bin should not be searchable, or if searchable, the result should only show an option to "Restore" (rather than showing options like "Open" etc.), and the file should be displayed with its original filename (not using a UUID as the filename).

❌ Actual Behavior

Image Image

Addition context information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions