You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Options menu not completed in newly created folders #4673
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.
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.
Activity
adnanrangrej commentedon Oct 18, 2025
Can i work on this if it is still not fixed?
jesmrec commentedon Oct 20, 2025
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.
joragua commentedon Nov 14, 2025
Hi @adnanrangrej! Are you currently working on this issue? If you have any questions, let us know and we will hep you! 🙌🏻
Thanush19 commentedon Jan 3, 2026
Hi @jesmrec , if the issue is not fixed , i can work on this
jesmrec commentedon Jan 8, 2026
sure @Thanush19, keep us informed!!
DeepDiver1975 commentedon Jul 2, 2026
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.createFolderstores the new folder withpermissions = "CK"(comment: "To be able to write inside a folder before the fetch is done") —owncloudData/.../data/files/repository/OCFileRepository.kt:78.FilterFileMenuOptionsUseCasegates each missing option on a permission char:N(hasRenamePermission) — filter atowncloudApp/.../usecases/files/FilterFileMenuOptionsUseCase.kt:120-122V(hasMovePermission) —:124-127D(hasDeletePermission) —:150-152permissionsstring:hasRenamePermission/hasMovePermission/hasDeletePermissioninowncloudDomain/.../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 atOCFileRepository.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