File picker offers "New" even without create permission or quota
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start with lib/components/FilePicker/FilePicker.vue, especially the menu visibility around lines 28–29 and onCreateFolder() around line 322. Check how the picker exposes the current folder's create permission and quota, then add or update a test for folders without create permission or with zero available quota. Done means the “New” menu is hidden or disabled in those cases.
Written by the indexing model from the issue text.
Description
Describe the bug
The file picker always shows the "New" (create folder) menu, independent of whether the user may create something in the current folder (no create permission, or no quota left):
Only noMenu hides it. onCreateFolder() then simply tries to create the folder and shows the resulting error:
Originally reported in nextcloud/server#57440 (file picker of Photos, Collectives and others with an account whose quota is 0 B).
To Reproduce
- Set an account's quota to 0 B (or open a read-only shared folder in the picker).
- Open any file picker (e.g. "Move or copy", or the folder picker in Photos).
- The "New" menu is offered; creating a folder fails with an error.
Expected behavior
The "New" menu is hidden or disabled when the current folder lacks the create permission or quota-available-bytes is 0 (similar to how the Files app hides its "New" button), with a test.
- Dominant language
- TypeScript
- Stars
- 19
- Forks
- 10
- Avg merge
- 17h 4m
- Merged PRs (30d)
- 30
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud-libraries/nextcloud-dialogs
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
nextcloud-libraries/nextcloud-dialogs#2772 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
nextcloud-libraries/nextcloud-dialogs#2770 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nextcloud-libraries/nextcloud-dialogs#2756 · 1 reaction ·
Maintainers usually reply within 1 day
-
Actions on ToastsOpen1. to develop
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
nextcloud-libraries/nextcloud-dialogs#2669 · 1 comment ·
Maintainers usually reply within 1 day
-
1. to develop
Difficulty 4/5 3-5 days Newbie friendliness 48/100
nextcloud-libraries/nextcloud-dialogs#2510 · 2 comments ·
Maintainers usually reply within 1 day
All issues in nextcloud-libraries/nextcloud-dialogs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Make the "%" unit spacing the same in the web and in A10Possibly taken @kragent66-glitch claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 comment ·
-
Editor: leave an uploaded or inserted image's alt text empty, so the preview asks for a descriptionOpen
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
sveltejs/svelte.dev#2417 ·
Maintainers usually reply within 1 day
-
[Bug]: A Markdown link with both a :line suffix and a #L fragment opens a path containing ":line"Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day