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
Files shared read-only are not marked read-only on the filesystem #3244
This sounds like a regression. The wanted behaviour is: The file coming from a non editable share should be set to read only on the harddisk of the client. If that is changed manually to rw again (which is of course possible) the client should not even try to upload it, but report that the change can not be uploaded, restore the original file and move the local change to a conflict file.
In my reproduction with server 8.0.2, it's caused by a server issue: it reports the read-only share's permissions as <oc:permissions>SRDNVW</oc:permissions>, including the W. I'll now retry with 8.0.3.
changed the title [-][Sharing] When you share a File with two user and unchecked the opcion EDIT, when it's Sync in DESKTOP you can edit and write the File[/-][+][Sharing] When you share a File with two users and unchecked the opcion EDIT, when it's Sync in DESKTOP you can edit and write the File[/+]on May 21, 2015
changed the title [-][Sharing] When you share a File with two users and unchecked the opcion EDIT, when it's Sync in DESKTOP you can edit and write the File[/-][+]Files shared read-only are not marked read-only on the filesystem[/+]on May 27, 2015
With unix-like permissions 'w' on folders is equivalent to CK on the folder and DNV on each contained file. So a correct solution would need to check the permissions of all contained files. It also introduces problems with downloads, as we can no longer create files in the folder.
11-11 10:14:37:657 0x7fde1a5318c0 OCC::ownCloudGui::slotSyncStateChange: Sync state changed for folder "ownCloud1" : "Sync Running"
11-11 10:14:37:657 0x7fde1a5318c0 OCC::SyncEngine::slotItemCompleted: void OCC::SyncEngine::slotItemCompleted(const OCC::SyncFileItem &, const OCC::PropagatorJob &) "aaafile.txt" INSTRUCTION_ERROR 6 "The item is not synced because of previous errors: Error downloading https://docker.oc.solidgear.es:53166/remote.php/webdav/aaafile.txt - server replied: Forbidden (Sabre\DAV\Exception\Forbidden)"
Desktop v ownCloud-2.1.0.2865-nightly20151110.pkg
Server v {"installed":true,"maintenance":false,"version":"8.1.4.0","versionstring":"8.1.4 RC1","edition":""}
@Dianafg76 You are running into the server problem owncloud/core#20426 of the permissions not being advertised correctly. Try sharing a directory instead.
I believe that I have an opposite issue with version 2.1.0 build 5683.
Recently, I receive many sync error because Owncloud marks the file with read only permission and after that it cause the sync error. For example:
PC 1 - I open some PDF file.
PC 2 - Owncloud reports the sync error because it can't synchronize the PDF file which is already present on PC 2, but not it have a read-only permission.
Similar problems with files with codes. Really annoying.
Activity
Dianafg76 commentedon May 19, 2015
LOGS
dragotin commentedon May 19, 2015
This sounds like a regression. The wanted behaviour is: The file coming from a non editable share should be set to read only on the harddisk of the client. If that is changed manually to rw again (which is of course possible) the client should not even try to upload it, but report that the change can not be uploaded, restore the original file and move the local change to a conflict file.
ckamm commentedon May 20, 2015
@dragotin I don't think we set non-editable shares to read-only on the local file system yet. Is this something that'd be ok to add to 1.8?
I'll try to reproduce the problem with the rename-to-conflict-and-revert behavior. That one should definitely exist.
ckamm commentedon May 21, 2015
I could reproduce the problem with the client trying to upload new data to a read-only share.
ckamm commentedon May 21, 2015
In my reproduction with server 8.0.2, it's caused by a server issue: it reports the read-only share's permissions as
<oc:permissions>SRDNVW</oc:permissions>, including the W. I'll now retry with 8.0.3.ckamm commentedon May 21, 2015
Same response with server 8.0.3.
danimo commentedon May 21, 2015
/cc @DeepDiver1975: Server sends wrong permissions in above scenario. Needs investigation by server team.
ckamm commentedon May 21, 2015
I've moved the server part to owncloud/core#16492.
[-][Sharing] When you share a File with two user and unchecked the opcion EDIT, when it's Sync in DESKTOP you can edit and write the File[/-][+][Sharing] When you share a File with two users and unchecked the opcion EDIT, when it's Sync in DESKTOP you can edit and write the File[/+][-][Sharing] When you share a File with two users and unchecked the opcion EDIT, when it's Sync in DESKTOP you can edit and write the File[/-][+]Files shared read-only are not marked read-only on the filesystem[/+]15 remaining items
ckamm commentedon Nov 10, 2015
Current status:
ckamm commentedon Nov 10, 2015
Setting shared-folder permissions:
We'll not go there for now.
Dianafg76 commentedon Nov 11, 2015
I tested this issue and appears the same error:

LOG:
Desktop v ownCloud-2.1.0.2865-nightly20151110.pkg
Server v {"installed":true,"maintenance":false,"version":"8.1.4.0","versionstring":"8.1.4 RC1","edition":""}
Dianafg76 commentedon Nov 11, 2015
With Dektop v ownCloud-2.1.0.2871-nightly20151111.pkg I can see the same error
ckamm commentedon Nov 11, 2015
@Dianafg76 You are running into the server problem owncloud/core#20426 of the permissions not being advertised correctly. Try sharing a directory instead.
KUTlime commentedon Jan 11, 2016
I believe that I have an opposite issue with version 2.1.0 build 5683.
Recently, I receive many sync error because Owncloud marks the file with read only permission and after that it cause the sync error. For example:
PC 1 - I open some PDF file.
PC 2 - Owncloud reports the sync error because it can't synchronize the PDF file which is already present on PC 2, but not it have a read-only permission.
Similar problems with files with codes. Really annoying.
It is related or it is some other bug?