-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Create Share API not honoring "permissions" parameter #17504
Comments
I can confirm this behavior for 16.0.7 and 18.0.1 RC2. Possible workaround using HTTP PUT afterwards: |
Not really server/apps/files_sharing/lib/Controller/ShareAPIController.php Lines 538 to 541 in f998769
If you want to be allowed to drop files, you need PERMISSION_CREATE. And any link share always have the PERMISSION_READ too. So if you give Nonetheless, a proper file drop does not require PERMISSION_UPDATE nor PERMISSION_DELETE. Manually changing the permissions to 4 afterwards works AND return 4, meaning we don't check the READ anymore 🤔 @rullzer @MorrisJobke what is this about the READ permissions, should we allow file drop without PERMISSION_READ ? |
This comment was marked as resolved.
This comment was marked as resolved.
Corresponding PR is not yet merged, so this cannot work yet. |
Very related open Issues:
There have been a couple of changes in behavior in between this issue and the above. Main ones:
My guess is, since this has come up a couple times, we also should do up a doc clarification: |
Steps to reproduce
Expected behaviour
Share permissions should be 4: "File drop (upload only)"
Actual behaviour
Share permissions are 15: "Allow upload and editing"
Server configuration
Operating system:
Ubuntu 18.04.1
Web server:
Apache/2.4.38 (Debian)
Database:
sqlite3 3.28.0
PHP version:
7.3.10
Nextcloud version:
17.0.0.9
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
Where did you install Nextcloud from:
docker
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: No
Are you using encryption: No
Are you using an external user-backend, if yes which one: LDAP
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Google Chrome 77.0.3865.90 (Official Build) (64-bit)
Operating system:
Windows 10 OS Version 1809 (Build 17763.678)
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: