end up with folder "test2" only
end up with folder "test2" and folder "test"
Operating system:
Web server:
Database:
PHP version:
ownCloud version: (see ownCloud admin page)
Updated from an older ownCloud or fresh install:
Updated from 8.0.1
List of activated apps:
Enabled:
Disabled:
The content of config/config.php:
$CONFIG = array (
'instanceid' => 'xxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxx',
'datadirectory' => '/xxx/oc_store/xxxx',
'dbtype' => 'mysql',
'version' => '8.1.1.3',
'dbname' => 'oc_xxxx',
'dbhost' => 'x.x.x.x',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxxx',
'dbpassword' => 'xxxxx',
'installed' => true,
'forcessl' => true,
'logtimezone' => 'Europe/Rome',
'log_rotate_size' => 10485760,
'default_language' => 'it',
'loglevel' => 3,
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'x.x.x.x',
'mail_smtpport' => '25',
'mail_domain' => 'xxxxxxx.yyy',
'theme' => '',
'maintenance' => false,
'trusted_domains' =>
array (
0 => 'xxxxxxx.yyy',
),
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'share_folder' => '/Shared',
'mail_from_address' => 'cloud',
'defaultapp' => 'roundcube',
'appstoreenabled' => true,
'appstoreurl' => 'https://api.owncloud.com/v1',
'appstore.experimental.enabled' => true,
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Browser:
Operating system:
Insert your webserver log here
Insert your ownCloud log here
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
ownCLoud client log
09/09/2015 17:12:05Shared/prova/2 C:\#Sync Spostamento non consentito poiché l'origine è in sola lettura
09/09/2015 16:27:08Shared/prova/2 C:\#Sync Caricato
09/09/2015 16:27:08Shared/prova/1 C:\#Sync Rimozione non consentita, ripristino
09/09/2015 16:27:02Shared/prova/1 C:\#Sync Spostamento non consentito poiché l'origine è in sola lettura
09/09/2015 16:26:31Shared/prova/1 C:\#Sync Caricato
@schiesbn
I don't understand.
on @schiesbn profile is a solution?
Il 09/09/2015 17:50, Frank Karlitschek ha scritto:
@schiesbn https://github.com/schiesbn
—
Reply to this email directly or view it on GitHub
https://github.com/owncloud/core/issues/18933#issuecomment-138953891.
@mdkdog with which permissions did you shared "testshare". I tried it with all permissions and only with "create, change" and only with "change" permissions and could never reproduce it.
btw, what does this mean exactly "end up with folder "test2" and folder "test""?
Directly after the rename you only have "test" but after the next sync run you have both on the client and on the server "test2" and "test"?
permissions are "create, change" no "delete".
Directly after the rename (on client) i only have "test2" but after the next sync run i have both on the client and on the server "test2" and "test".
ah, now I can reproduce it. The first time I tried it with a normal webdav client because it is faster and shouldn't make a difference. Now I tried it with the desktop client 2.0.1 and can reproduce it.
So what does the sync client different compared to a webdav move on rename? cc @danimo @dragotin
it looks to me that is trying to do a copy then delete the original...when "delete" fails for lack of permissions is restoring the original ("Rimozione non consentita, ripristino" from client logs).
let me know if there is something i could do to help... (keep in mind that i'm not a programmer).
normally the client should do a move, otherwise we would lost all information like shares on the folder.
from the apache access log the client perform following operations
127.0.0.1 - user2 [14/Sep/2015:17:42:48 +0200] "PROPFIND /master/remote.php/webdav/ HTTP/1.1" 207 1074 "-" "Mozilla/5.0 (Linux) mirall/2.0.1"
127.0.0.1 - user2 [14/Sep/2015:17:42:57 +0200] "PROPFIND /master/remote.php/webdav/ HTTP/1.1" 207 2426 "-" "Mozilla/5.0 (Linux) mirall/2.0.1"
127.0.0.1 - user2 [14/Sep/2015:17:43:00 +0200] "PROPFIND /master/remote.php/webdav/ HTTP/1.1" 207 2425 "-" "Mozilla/5.0 (Linux) mirall/2.0.1"
127.0.0.1 - user2 [14/Sep/2015:17:43:00 +0200] "PROPFIND /master/remote.php/webdav/testshare HTTP/1.1" 207 4489 "-" "Mozilla/5.0 (Linux) mirall/2.0.1"
127.0.0.1 - user2 [14/Sep/2015:17:43:00 +0200] "PROPFIND /master/remote.php/webdav/testshare/test HTTP/1.1" 207 1378 "-" "Mozilla/5.0 (Linux) mirall/2.0.1"
127.0.0.1 - user2 [14/Sep/2015:17:43:00 +0200] "MKCOL /master/remote.php/webdav/testshare/test2 HTTP/1.1" 201 679 "-" "Mozilla/5.0 (Linux) mirall/2.0.1"
on a local folder the client does the right thing:
127.0.0.1 - user2 [14/Sep/2015:17:45:33 +0200] "PROPFIND /master/remote.php/webdav/ HTTP/1.1" 207 2938 "-" "Mozilla/5.0 (Linux) mirall/2.0.1"
127.0.0.1 - user2 [14/Sep/2015:17:45:33 +0200] "PROPFIND /master/remote.php/webdav/testshare HTTP/1.1" 207 5008 "-" "Mozilla/5.0 (Linux) mirall/2.0.1"
127.0.0.1 - user2 [14/Sep/2015:17:45:33 +0200] "MOVE /master/remote.php/webdav/local/test HTTP/1.1" 201 679 "-" "Mozilla/5.0 (Linux) mirall/2.0.1"
@guruz @ogoffart any idea ? In what situation would the sync client behave like this ?
@mdkdog in your report subject you mention "rename permission", did you share with restricted permissions ?
I talked with @schiesbn and he said that in his test case all permissions were given, so probably unrelated.
Folder is shared with "create" and "change" permissions, without "delete".
Tried v8.1.1 with sync client 2.0.1 with all permissions, could not reproduce the issue.
However if I remove the "delete" permission from the share the following happens:

Now if I rename a folder directly in the web UI, it works, because it is allowed. "rename" doesn't count as a deletion.
At some point I wrote a smashbox automated test to check for file operations which helped make it a bit clearer what operations allow what, see https://github.com/owncloud/smashbox/blob/master/lib/oc-tests/test_sharePermissions.py#L128
Maybe the sync client's interpretation of the permissions is not accurate ?
Raised https://github.com/owncloud/client/issues/3856 in the client repo
@ogoffart suggested here https://github.com/owncloud/client/issues/3856#issuecomment-150153458 to add the "N" permission when the file is updatable. Something to try.
Hi,
I would like to congratulate everyone for the One year anniversary of this bug report!
sarcasm aside.... is there anyone looking into this ?
Setting to 9.1.2 to give this another try
Already fixed in nextcloud by nickvergessen:
https://github.com/nextcloud/server/commit/cf69a2b7eb06eb3e1894e73441d8877aac1e51f6
There is a slight chance that it is already fixed in 9.1, but best is to write an integration test to confirm and enforce this.
Works for me on 9.1.1RC2
Also works with 9.0.2 and 9.0.3.
Also works with 8.1.9
Retried with 8.1.1 and it was broken there, to confirm that my test steps were correct.
Please upgrade!
ownCloud 8.2.1 (stable) not working ...i will wait for 9.1.1
8.2.1 is very old, try with 8.2.7 which works
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Hi,
I would like to congratulate everyone for the One year anniversary of this bug report!
sarcasm aside.... is there anyone looking into this ?