client icon indicating copy to clipboard operation
client copied to clipboard

owncloud client needs a concept for making read only content available

Open konradop opened this issue 13 years ago • 3 comments

Actual behaviour

current version 1.2.5 of client has no concept to make read only shared folders available. read only content is synced to local disk once successfull, but the client tries to sync back any local changes to the server unsuccessfull, local data can be changed and gets out of sync with the shared content on the server without any notification.

problem is already well described in #519 #488

i think it's necesarry that the client would get a clear concept on making read only shared folders available local.

  • local content must remain a 100% accurate copy of the shared read only server content!
  • therefor the client must performe an one direction echo rather than a bidirection sync, if it finds a read only web dav folder at server side.
  • in first place, the user should not be able to make chages in thoses folder localy. but write protection must not be to strong, because the users local data should stay in the users control. ways prevent local user change could be

softer locking

  • - client sets the locked bit on files and folder in read only folder branch this kind of protection is relativ easy to understand and to be removed by the local user, but makes clear that local changes here should not happen. OS X puts even a lock symbol on the finder icons

stronger locking

  • - client changes permission privilige from read&write to read only this protection would be stronger, but may be harder to understand for normal users, more dificult to remove from files, if they are copied to an other disk location be altered, etc.

user cooperation

  • - visual add a stop sign to the file or folder icon ( state related icons like in dropbox would be clearly a fantastic feature for the future )

in second place, if the user did make local changes, the client sync has to deal with it: when a sync is running

  • the read only content root folder gets a special subfolder like _localUserChanges
  • any local file with content changes are moved to this subfolder with full folder structure
  • if files where moved to this folder, the user get a notification
  • any local folder or file name changes are ignored!
  • any local change in folder structure is ignored!
  • than the client runs an echo copy and the whole read only local content is overwritten by the actual server version

that would be grate !

Server configuration

OS: win S 2k8r2x64 hyper-v vm httpd: ISS php: 5.4.14 DB: MySQL owncloud: 5.0.6

Client configuration

ownclound client 1.2.5 / 1.3.0.beta1 OS X 10.7

konradop avatar May 25 '13 06:05 konradop

In version 1.4.1, I had a read-only file in my repo. It gave me this error:

image

It was only later that I realized that the reason for the problem was the file being read-only. BTW, the file was not changed. I.e. after making file writeable, owncloud did not overwrite it with new version from server.

Some concept for read-only files would be nice. Or at least an understandable error/warning.

ghost avatar Oct 04 '13 11:10 ghost

Doublechecked that with current head code. There will be a proper error message.

BTW - a concept for read only files, how would that look like in a sync environment? The concept imo can only be: If the local file can not be stored, lets try again next time, together with a proper error message.

dragotin avatar Oct 04 '13 12:10 dragotin

I know this is closed.

@dragotin Imagine you are in a company (this is ownCloud Enterprise, right?) and you place the documents for an employee under "Human Resources/Employee/EmployeeID" you would like the employee to see their documentation but would not want him/her to be able to remove (either by mistake or intentionally) the info in that folder. This is why we need read only sharing for groups. So a group can see the files, and get them, but not delete them.

How about a group where only 1 (or a handful) are able to modify the info in a document, but all of the deparment (or company) can download that file? This is also a good place for Read Only Sharing.

This is common in a "File sharing" environment where you set permissions to user, group and world. This IS a filesharing service but improved, right?

How dos it look in a SYNC environment? that is easy! rsync (presumably a sync tool) can do sync from source and delete extraneous files on destination. That is what read only folders should do (discard all changes made locally by users with no write permission). "rsync --delete source dest" in case you were wondering.

So, I too find this a valid request.

kryztoval avatar Dec 05 '13 04:12 kryztoval