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

Inconsistent behaviour after deleting password protected folder from inside hidden files #12273

Open
anon-pradip opened this issue Mar 10, 2025 · 2 comments
Assignees
Labels
Type:Bug Something isn't working

Comments

@anon-pradip
Copy link
Contributor

Describe the bug

When a password protected folder is deleted from inside either the hidden file .PasswordProtectfolders or the hidden file .space, the original password protected folder is not deleted. Also another password protected folder with the same name can be made even though the folder is deleted from those hidden files.

Steps to reproduce

  1. Admin enables the option Show hidden files
  2. Admin creates a new password protected folder main-folder
  3. Admin navigates to ".PasswordProtectedFolders → projects → Personal → main-folder"
  4. Admin deletes main-folder
  5. Admin navigates back to Files
  6. Admin tries to create a new password protected folder main-folder

Expected behavior

The password protected folder main-folder in root is deleted too.

Actual behavior

The password protected folder main-folder in root is not deleted and folder with same name can be created again.

Setup

ownCloud Web UI 11.3.0
Infinite Scale 7.1.0+2e8bc225e Community

Additional context

This same behavior exists in the Project Space too.

Screencast.from.2025-03-10.16-48-20.webm

Confused if this is a feature.

@anon-pradip anon-pradip added the Type:Bug Something isn't working label Mar 10, 2025
@nabim777
Copy link
Member

CC @LukasHirt

@LukasHirt
Copy link
Collaborator

The only possible solution to this that I can think of is using the same approach as when deleting the file, just reversing it. Meaning:

flowchart TD
    A[Folder is deleted] --> B{Is folder inside .PasswordProtectedFolders?}
    B -->|No| C[End]
    B -->|Yes| D[Construct path to .psec filebased on folder's path]
    D --> E{.psec file found?}
    E -->|No| F[End]
    E -->|Yes| G[Delete .psec file]
    G --> H[End]
Loading

@LukasHirt LukasHirt moved this from Qualification to Prio 3 or less in Infinite Scale Team Board Mar 14, 2025
@LukasHirt LukasHirt self-assigned this Mar 18, 2025
@LukasHirt LukasHirt moved this from Prio 3 or less to In progress in Infinite Scale Team Board Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Bug Something isn't working
Projects
Status: In progress
Development

No branches or pull requests

3 participants