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
[Feature Request] Define actions on read only mounts #6252
Referencing: owncloud/core#29873 ([Feature Request] Mark mount as read only in the mount settings)
If you try to write into a read only marked mount, you can do so because the filesystem allows it but the change gets never synced and you do not know what the original data was.
make the issue aware to the user
propose actions to the user like
-- "move to a different location and restore original"
-- "reject changes and restore original"
-- ...
From client perspective, mounted storages with read only permission should behave the same way as received shares with read only permission? Currently nothing happens, but files/folders get error overlay icon and the client UI shows there is a problem.
@mmattel What do you mean with „restore original data“? If I delete files locally, they immediately download again.
From client perspective, mounted storages with read only permission should behave the same way as received shares with read only permission?
Yes
but files/folders get error overlay icon and the client UI shows there is a problem
But you (the user) does not know the cause. Right-click on that file and because the client knows the mount is read only, info and actions should be proposed
What do you mean with „restore original data“? If I delete files locally, they immediately download again.
This is great, but if you change the file and save it (=replacement), the changed version persists in status "problem" because of the conflict. Therefore an action should be proposed to the user like move and as you say the original will be downloaded again automatically when move or delete has been chosen. The same if you write a fresh file into a read only mount - define actions on right click and propose them to the user.
It would be an idea, at least part of, to have actions in the item list (I tweaked the current see below).
But only in case the underlaying mount is read only AND the status of the item (file/folder) is "warning"...
This one comes up with right-click and the file/folder status is ok
This one comes up with right-click and the underlaying mount is readonly and file/folder has been physically created/changed (=status warning).
In case there was a fresh create without original present, show a move only instead of the two items.
Because there are filesystem change triggers, it would be additionally possible to check if there is a write to a read only mount. In case there could be a pop up warning closing automatically after x seconds about this fact without rejecting the action. Helpful when you open a document via an app change something and write back. The action itself could be done via the mouse as described above. But the user gets at least a reminder...
The popup message could be:
"You write to a read only mount. The changed data will never be synced. Please move or delete it"
"oc:permissions" is fetched and used by the client in general, not only for mounts.
This means that the client does not need to wait for a core implementation as it is already present 😄
A client implementation could start immediateley, because oc:permissions has the read-only attribute on read-only shares (=mount from the reciever side) already set.
If owncloud/core#29873 ([Feature Request] Mark mount as read only in the mount settings) gets realized, no change would be needed in the client side!
(Sorry if some things are now double present, but I just wanted to sort out and document properly)
There is another good point for implementing a solution.
If you change or add a file in the filesystem pointing to a read only mount in oC, you endless create and pollute log data because of continious failing write attempts.
@ckamm@SamuAlfageme
mind to remember this FR and take a look on?
This FR is important to fix respectively handle file creation/changes on read only mount/shares in the client properly.
Adding special resolution context menu options is possible, but I'd say we should go for improving the conflict resolution ui first as that seems to have larger benefit with comparable complexity to me.
How about we treat changes/additions in read-only folders similarly to conflicts to make them more user-visible? (tray notifications, icon changes, badge on account settings, listed in "not synced" tab)
How about we treat changes/additions in read-only folders similarly to conflicts to make them more user-visible?
Yes!! Well, they're pretty much visible now:
...But scares the hell out of the user to see that many error lines, with duplicated "Not allowed because you don't have permission to add files in that folder" messages. The warning + (1) condensed/summary message on the account tab is a way nicer approach.
You miss the point what the problem is about. Get out of your shoes and into standard office users who are absolutely agnostic about the owncloud backend (owncloud - who - what?). Users have no clue about what is going on the backand side and do not want to know about. Forget anything else.
The ordinary office user connects (or gets connected by an admin) the client to the backend and syncs data. At this point he does not know if the backend has some folders (mounts) which are RW or RO. He sees a bunch of folders (in his filesystem), documents get downloaded (synced) and he can create or change. Here the issue starts. He adds documents or folders or changes some content of extisting documents and some of them are synced but others are always conficting (because we know the backend has RO status). DO NOT EXPECT that the office user diggs around to identify the cause. "I write data into the folder but sync is is not working" - this is the situation.
On a higher level, speaking in our shoes we know, the user writes into his filesystem which is RW by design but the client cant sync to the backend in case the backend target is RO. We know this because of the mount attribute transferred. (No need to try syncing first). This creates an unsolvable conflict and millions of log data.
Solution:
As described on top,
writing to the filesystem triggers the client,
the client recognizes by the attribute of the folder (mount) synced it is RO,
a mechanism (context menue, pop up) shows the user the conflict and poroposes suggestion(s).
At this stage it is vital that the correct and easy info is shown to the client so he can take proper (and easy) actions to resolve.
If you do not do it immediately, the context menu helps to do it later.
This is what I proposed.
@SamuAlfageme your screenshot is a good thing and necessary. But the office user has to go into the client and gets a info. I am a step before, directly where the issue is visible to the user - at the file/folder level (filesystem) he sees on his screen. Office users quickly forget that there is a sync client. The existence of a sync client is totally out of scope in less than a day, mostly immediately after installation or setup (if the user has anything to do with it)
we show in the client and are able to act within the client- @ckamm proposal
we show the user on the filesystem via a status dependent context menue - my proposal
A good combination !
I know that I said it already, the status dependent context menue having restore and move is essential as the ordinary office user will forget that the client exists. They see in the filesystem a icon highlighting a problem - rightclick and solve it. Switching to an app - pfffff
Now that we have merged #6315 for all platforms; and we're getting a taste for more and more specialized options on the context menu, we could go for this.
I was getting some insights from @mmattel today on how to handle this subset of ("local") conflicts and also the options for resolving them:
Restore the server version, deleting local changes (like when we overwrite the contents of the folder when a backup was detected/all the files removed)
Move the file somewhere else (I have doubts if it should be included as an additional option or as a textual hint suggesting to drag the file to a different location on your disk)
(This could be a shortcut and first step towards #5896 cc/ @ckamm)
Looking at this I see the following cases and current behavior:
editing a file in a read-only directory: the file is automatically restored and the local changes are moved into a conflict file.
adding a new file to a read-only directory: the file isn't uploaded and each sync shows a warning about the not-uploaded file
For both cases delete and move makes sense. I'm wary of adding a new dialog to move the file to a different folder. @mmattel what do you have in mind that should happen when the user clicks the "move" context menu entry? A tree view showing the current sync folders subdirectories with the readonly folders marked somehow?
Whyever the file got moved/written/updated into the „read-only“ area,
we can look at this from two perspectives
Existing conflicts
the context menue will help resolving this
the file must be marked as conflict to highlight something is wrong
the idea was that you have a move item in the context menue giving the user the ability to easily move the file to a correct location. Therefore I propose when clicking move, a new file browser window pops up where the user can, as he is used to, decide a new location and the file gets moved there. The original will be restored afterwards by the standard sync process.
respectively delete and restore without moving. This also resolves the conflict.
New conflicts
thinking about a method where the sourcing application gets a notification from the „filesystem“ about not beeing able to write to (like you try writing to a readonly USB stick) which leads to a save as methodology which is be part of any OS.
As discussed, please have the standard (non expert) office user in mind, he has completely out of mind that there is a sync client doing a great job ...
It is much easier to have a (warning) info about the read only area versus I have saved my file but it is not uploaded. Helpdesks go crazy with the latter one 🙈
Activity
michaelstingl commentedon Dec 17, 2017
From client perspective, mounted storages with read only permission should behave the same way as received shares with read only permission? Currently nothing happens, but files/folders get error overlay icon and the client UI shows there is a problem.
@mmattel What do you mean with „restore original data“? If I delete files locally, they immediately download again.
mmattel commentedon Dec 17, 2017
Yes
But you (the user) does not know the cause. Right-click on that file and because the client knows the mount is read only, info and actions should be proposed
This is great, but if you change the file and save it (=replacement), the changed version persists in status "problem" because of the conflict. Therefore an action should be proposed to the user like move and as you say the original will be downloaded again automatically when move or delete has been chosen. The same if you write a fresh file into a read only mount - define actions on right click and propose them to the user.
mmattel commentedon Dec 28, 2017
Just installed 2.4.0
It would be an idea, at least part of, to have actions in the item list (I tweaked the current see below).
But only in case the underlaying mount is read only AND the status of the item (file/folder) is "warning"...
This one comes up with right-click and the file/folder status is ok

This one comes up with right-click and the underlaying mount is readonly and file/folder has been physically created/changed (=status warning).

In case there was a fresh create without original present, show a move only instead of the two items.
Because there are filesystem change triggers, it would be additionally possible to check if there is a write to a read only mount. In case there could be a pop up warning closing automatically after x seconds about this fact without rejecting the action. Helpful when you open a document via an app change something and write back. The action itself could be done via the mouse as described above. But the user gets at least a reminder...
The popup message could be:
"You write to a read only mount. The changed data will never be synced. Please move or delete it"
mmattel commentedon Jan 10, 2018
From owncloud/core#30070 (comment)
This means that the client does not need to wait for a core implementation as it is already present 😄
A client implementation could start immediateley, because
oc:permissionshas the read-only attribute on read-only shares (=mount from the reciever side) already set.If owncloud/core#29873 ([Feature Request] Mark mount as read only in the mount settings) gets realized, no change would be needed in the client side!
(Sorry if some things are now double present, but I just wanted to sort out and document properly)
mmattel commentedon Mar 8, 2018
There is another good point for implementing a solution.
If you change or add a file in the filesystem pointing to a read only mount in oC, you endless create and pollute log data because of continious failing write attempts.
mmattel commentedon Apr 10, 2018
@ckamm @SamuAlfageme
mind to remember this FR and take a look on?
This FR is important to fix respectively handle file creation/changes on read only mount/shares in the client properly.
ckamm commentedon Apr 11, 2018
What's the suggestion exactly?
Adding special resolution context menu options is possible, but I'd say we should go for improving the conflict resolution ui first as that seems to have larger benefit with comparable complexity to me.
How about we treat changes/additions in read-only folders similarly to conflicts to make them more user-visible? (tray notifications, icon changes, badge on account settings, listed in "not synced" tab)
michaelstingl commentedon Apr 11, 2018
Like the idea. Users shouldn’t learn two totally different ways to resolve such „conflicts“.
SamuAlfageme commentedon Apr 11, 2018
@ckamm
Yes!! Well, they're pretty much visible now:
...But scares the hell out of the user to see that many error lines, with duplicated "Not allowed because you don't have permission to add files in that folder" messages. The warning + (1) condensed/summary message on the account tab is a way nicer approach.
mmattel commentedon Apr 11, 2018
You miss the point what the problem is about. Get out of your shoes and into standard office users who are absolutely agnostic about the owncloud backend (owncloud - who - what?). Users have no clue about what is going on the backand side and do not want to know about. Forget anything else.
The ordinary office user connects (or gets connected by an admin) the client to the backend and syncs data. At this point he does not know if the backend has some folders (mounts) which are RW or RO. He sees a bunch of folders (in his filesystem), documents get downloaded (synced) and he can create or change. Here the issue starts. He adds documents or folders or changes some content of extisting documents and some of them are synced but others are always conficting (because we know the backend has RO status). DO NOT EXPECT that the office user diggs around to identify the cause. "I write data into the folder but sync is is not working" - this is the situation.
On a higher level, speaking in our shoes we know, the user writes into his filesystem which is RW by design but the client cant sync to the backend in case the backend target is RO. We know this because of the mount attribute transferred. (No need to try syncing first). This creates an unsolvable conflict and millions of log data.
Solution:
As described on top,
This is what I proposed.
@SamuAlfageme your screenshot is a good thing and necessary. But the office user has to go into the client and gets a info. I am a step before, directly where the issue is visible to the user - at the file/folder level (filesystem) he sees on his screen. Office users quickly forget that there is a sync client. The existence of a sync client is totally out of scope in less than a day, mostly immediately after installation or setup (if the user has anything to do with it)
SamuAlfageme commentedon Apr 13, 2018
@mmattel you have a couple of nice ideas in there - I'll try to connect some dots here to see if they make sense for you:
I specially like @ckamm's proposal on #6252 (comment) cause then, the "Reject Changes" from #6252 (comment) will be done as part of #5896
The "Move to a different location" (inside ownCloud's local sync folder(s)) could be seen as a sub-scenario/reuse the logic of #2732 .
All these scenarios should be pretty straightforward from the files explorer with the overlays and context menu as UX-aid.
mmattel commentedon Apr 13, 2018
😄
We can also see this from the perspective of what
A good combination !
I know that I said it already, the status dependent context menue having restore and move is essential as the ordinary office user will forget that the client exists. They see in the filesystem a icon highlighting a problem - rightclick and solve it. Switching to an app - pfffff
SamuAlfageme commentedon May 15, 2018
Now that we have merged #6315 for all platforms; and we're getting a taste for more and more specialized options on the context menu, we could go for this.
I was getting some insights from @mmattel today on how to handle this subset of ("local") conflicts and also the options for resolving them:
(This could be a shortcut and first step towards #5896 cc/ @ckamm)
mmattel commentedon May 15, 2018
Move: as context menue item please - please - please 😄
ckamm commentedon May 21, 2018
Looking at this I see the following cases and current behavior:
For both cases delete and move makes sense. I'm wary of adding a new dialog to move the file to a different folder. @mmattel what do you have in mind that should happen when the user clicks the "move" context menu entry? A tree view showing the current sync folders subdirectories with the readonly folders marked somehow?
mmattel commentedon May 21, 2018
Whyever the file got moved/written/updated into the „read-only“ area,
we can look at this from two perspectives
the context menue will help resolving this
As discussed, please have the standard (non expert) office user in mind, he has completely out of mind that there is a sync client doing a great job ...
It is much easier to have a (warning) info about the read only area versus I have saved my file but it is not uploaded. Helpdesks go crazy with the latter one 🙈
SocketAPI: Introduce conflict resolution actions #6252
SocketAPI: Introduce conflict resolution actions #6252
SocketAPI: Introduce conflict resolution actions #6252
SocketAPI: Introduce conflict resolution actions #6252
ogoffart commentedon Dec 3, 2018
What is there to do on this issue?