Skip to content

[BUG] Options menu not completed in newly created folders #4673

Open

Description

@jesmrec

Steps to reproduce

  1. Create a new folder
  2. Without refreshing screen, select the folder by long pressing and click on three-dot-button

Actual behaviour

Move, Remove and Rename options are missing. After refreshing, they are there again:

Screen_recording_20250901_100646.mp4

Expected behaviour

Every option available without refreshing

v4.6.2

Activity

  1. added this to the Backlog milestone on Sep 1, 2025
  2. added theissue type on Sep 1, 2025
  3. adnanrangrej commented on Oct 18, 2025

    @adnanrangrej

    Can i work on this if it is still not fixed?

  4. jesmrec commented on Oct 20, 2025

    @jesmrec
    MemberAuthor

    sure! go ahead @adnanrangrej . If this is your first contribution, please take a look first to our CONTRIBUTING guidelines, so that your work will be aligned with the repo structure and naming. Anything you need, please ping us. We'll be happy to help.

  5. joragua commented on Nov 14, 2025

    @joragua
    Member

    Hi @adnanrangrej! Are you currently working on this issue? If you have any questions, let us know and we will hep you! 🙌🏻

  6. Thanush19 commented on Jan 3, 2026

    @Thanush19

    Hi @jesmrec , if the issue is not fixed , i can work on this

  7. jesmrec commented on Jan 8, 2026

    @jesmrec
    MemberAuthor

    sure @Thanush19, keep us informed!!

  8. DeepDiver1975 commented on Jul 2, 2026

    @DeepDiver1975
    Contributor

    Confirmed bug, root cause located in current master (51aa1fe).

    A freshly created folder is saved locally with a placeholder permission string, so the menu-filter hides Move/Rename/Remove until a propfind refresh replaces it with the server's real permissions.

    • OCFileRepository.createFolder stores the new folder with permissions = "CK" (comment: "To be able to write inside a folder before the fetch is done") — owncloudData/.../data/files/repository/OCFileRepository.kt:78.
    • FilterFileMenuOptionsUseCase gates each missing option on a permission char:
      • Rename needs N (hasRenamePermission) — filter at owncloudApp/.../usecases/files/FilterFileMenuOptionsUseCase.kt:120-122
      • Move needs V (hasMovePermission) — :124-127
      • Remove needs D (hasDeletePermission) — :150-152
    • Those getters just test the permissions string: hasRenamePermission/hasMovePermission/hasDeletePermission in owncloudDomain/.../domain/files/model/OCFile.kt:107-120.

    "CK" has none of N/V/D, so the three options are filtered out. After refresh, propfind returns the full permission set and they reappear — matching the report.

    Fix direction: include the parent/server-implied permissions (at minimum NVD) when constructing the placeholder OCFile at OCFileRepository.kt:78, or refresh the newly created folder's row before enabling its menu. Whoever picks it up should confirm the correct char set against what a subsequent propfind returns for a created folder.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions