Skip to content

Critical Bug - File Loss When Creating and Deleting Certain Directories #1457

@touch4

Description

@touch4

I have mounted two disks under /olares/share, named disk1 and disk2. These mount points are recognized and accessed by the Olares system. When creating any directory whose name starts with "Application" under either of these mount points, the directory is automatically converted into a namespace (pvc-*) directory.

When this auto-converted directory is manually deleted, all sibling directories and files at the same level are also deleted, regardless of their names or contents. This is a critical flaw—the data loss it causes is unacceptable and could have severe consequences in production environments.

Steps to Reproduce:

  1. Go to disk1, and create a test directory named ABCD.
  2. Create another directory named ApplicationABCD.
  3. Observe that ApplicationABCD is automatically renamed or converted into a directory like pvc-***.
    Image
  4. Manually delete the pvc-*** directory.
  5. Check and find that the sibling ABCD directory has also been deleted.
    Image

This issue results in unexpected and irreversible data loss. It is extremely dangerous and needs to be addressed immediately. No system or user should bear the risk of such unpredictable behavior.

Environment:

  • Olares version: 1.11.7
  • OS: Ubuntu 22.04
  • Arch: AMD64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions