-
Notifications
You must be signed in to change notification settings - Fork 671
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
Conflict file names should include user name if uploaded #6325
Comments
@PVince81 @DeepDiver1975 I'm planning to use the dav username, that is the string used in |
@ckamm I think that'd result in a UUID on LDAP setups (for the same reason we still have troubles with things like owncloud/oauth2#109 (comment)) 😕 |
@SamuAlfageme Great catch, so we need to determine the "display user" first! Do you know if using the "display-name" from EDIT: Nevermind, davUser is exactly that value. Hmm. |
@ckamm since it's gonna be used for a filename (whitespace-safe) you can get the current logged in display name from the User Provisioning API i.e. |
@SamuAlfageme I had edited my comment a bit. The display name can be long and have spaces - though that's not necessarily a problem. It could have characters that aren't valid in filenames. |
Hm, really? This lands in the versions, right? The versions view should have the ability to list the user ... not sure changing the filename is a great idea ... think about long file names which will go out of bound quickly ... |
@hodyroff No, as yet this does not interact with the server's versions functionality. See https://github.com/owncloud/platform/issues/159 for a detailed description of the conflict-uploading feature. |
The server doesn't store the user id of who modified a file. Would require a new column in oc_filecache or better: move the versions out of oc_filecache into a separate table where we can store more information. See owncloud/core#2263 |
FYI we do this already for the toolbar. client/src/libsync/connectionvalidator.cpp Line 294 in ed5385f
mhm. |
So, what do we actually do? The user I'd start out with a sanitized display name. |
For the case of uploading conflict files only.
For the case of uploading conflict files only.
For the case of uploading conflict files only.
For the case of uploading conflict files only.
For the case of uploading conflict files only.
For the case of uploading conflict files only.
Done and documented on https://doc.owncloud.org/desktop/2.5/conflicts.html - great job 👍 |
linux mint taratestpilotcloud version 2.5.0daily20180808 (build 10016) OK BAD BAD |
agreed. |
In master the client can optionally upload conflict files. In this case it's easy for there to be several conflict files uploaded to the server by different users. In this situation it is very useful if it's immediately obvious which user created which conflict file. This should become part of the conflict file name:
The text was updated successfully, but these errors were encountered: