-
Notifications
You must be signed in to change notification settings - Fork 669
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
Setting permissions to 16 (OCS_PERMISSIONS_SHARE) causes a sync error #2779
Comments
Just as an FYI, I ran the test a second time setting the permissions to 17 ( |
Sounds like a server bug. Sanitized server log messages:
|
@PVince81 please |
Are you guys also setting 17 ? (READ + SHARE) SHARE alone isn't enough, one needs to explicitly pass the "READ" permission, or else... here be dragons. In general the API should either set READ automatically or throw 400 Bad request if it's missing. (CC @schiesbn) |
Same exception as in #2234 |
Are you guys passing 16 (SHARE alone) or 17 (READ + SHARE) ? |
If it's about passing 16 (SHARE alone) it was fixed on master: owncloud/core#14570 |
(Starting with client - not sure if this is ultimately a server issue. I have log files for each step and will email them to @danimo )
Steps to reproduce
/usr/bin/owncloudcmd --trust /jrm/smashbox/results/test_shareFile/sharer/ owncloud://user1:@x.x.x.x/owncloud/remote.php/webdav/
curl -u : --data "path=somefile.txt&shareType=0&shareWith=user2&permissions=16" http://:@x.x.x.x/owncloud/ocs/v1.php/apps/files_sharing/api/v1/shares
/usr/bin/owncloudcmd --trust /root/jrm/smashbox/results/test_shareFile/shareeOne/ owncloud://user2:@x.x.x.x/owncloud/remote.php/webdav/
/usr/bin/owncloudcmd --trust /root/jrm/smashbox/results/test_shareFile/shareeOne/ owncloud://user2:@x.x.x.x/owncloud/remote.php/webdav/
The sync fails with an internal server error
Expected behaviour
The file should be synced the first time after editing the file.
Actual behaviour
The file fails to sync the first time after editing the file.
Server log file:
Server Host info:
Ubuntu 14.04
PHP 5.5.9
mysql
Server configuration
ownCloud Enterprise Edition 8.0 beta 2 (daily) Build:2015-01-30T04:20:37+00:00 24fc1c7
Client Configuration
owncloudcmd version 1.7.1
The text was updated successfully, but these errors were encountered: