-
Notifications
You must be signed in to change notification settings - Fork 663
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
Use "Local Links" on the client #5023
Comments
Yes, important for 2.4. Include into the share menu, or make it a seperate right click for easiest experience. |
Implement server permalink feature (owncloud/core#24434) via context menu shortcut. Scenario:There's a file an user wants to point at to a colleague he's already sharing the parent directory with. Instead of generating a new shared link for the individual file, he can use a permalink to point to any file in the shared folder hierarchy: e.g.
An entry in the file explorer's context menu could be used as shortcut to directly:
The permalink is available for both shared and non-shared files so should be available for both use cases. |
Yup, #5023 (comment) looks good to me except that I would prefer |
After some discussions we decided to change the name of the permalink to "private link" (owncloud/core#27593) as it reflects that you need access, doesn't necessarily exclude other users and fits with public links. Still need to promote to all platforms but FYI. |
@SamuAlfageme @ogoffart So, to make this concrete: If a file is shared with any users or groups:
Adding a new context menu is slightly involved because it needs to touch all desktop integrations, the rest would be straightforward. |
@ckamm yup 👍
Actually, doesn't need to be shared: all the files/folders in server have a private link by default:
In the early mockups for the new sharing dialog, I imagined the "copy link" button near the file name (like in the web UI) since it's bonded to the file itself rather than specific users/groups and the concept can generate confusion: I think it's enough if we start just including it on the dialog and add the context menu entry in the future. |
One problem is that in the client we have the |
@guruz Yes, I just noticed the same thing. Is it safe to assume the first 8 bytes of oc:id are the fileid? It seems to be guaranteed by Why do we use id over fileid, btw? Federated shares? Then how do we generate the permalink for files in federated shares? Hmh. |
@ckamm I think just legacy reasons.. https://github.com/owncloud/core/search?q=%22oc%3Aid%22&type=Commits&utf8=%E2%9C%93 Maybe we could just start to fetch
hm |
Maybe yes until owncloud/core#22330 |
@guruz What if we transitioned to fileid only as a migration step? We could query id and fileid, take fileid if supported or otherwise the first 8 bytes of id? That'd only work if oc:id had this structure from the start, of course. Investigation shows me that this structure is in place since 6.0.0. I'm not sure id existed before? |
As the 'private link' is not related to sharing but exists for every file we should not have it in the sharing dialog but just put it in the context menu on the same level as 'Share with ownCloud' (or make it a sub-entry: "ownCloud" -> Sub1: "Share"; Sub2: "Copy ownCloud private link"; Sub3: "Open with Browser"). |
@pmaier1 Conceptually yes, but are there usecases where one cares about the permalink that are unrelated to sharing? But I do understand the desire to easily share the link to a file that is already shared and adding that to the context menu seems good. I'm mildly concerned that for symmetry, we might want to offer: "Open with browser", "Copy link to clipboard", "Copy direct download link to clipboard", "Email link", "Email direct download link" - and that's just too many options for a good ui. I'd restrict the file context menu to one of these (probably "Copy link to clipboard"). From a usability point of view I'd advocate for having the ability to get at a local link from the sharing dialog as well: I imagine that when you share something with a user you might want to email them about it directly, handing them the local link. So this is where the full breadth of link distribution options could be made available. |
Well, you could use it for yourself as a unique link to a file/folder. You're right, the other use case is more prominent but I also think that separating it from sharing could make it better understandable (most users don't know what the link is for according to my experience).
I'd say there are two options I like b) so far.
Yes, I agree. We could have it there as well. Something for discussion with some more people? |
Name should be "private link" according to @pmaier1 in owncloud-archive/documentation#2986 |
Tracked in PR -> #5763 |
It puts the specified file's local link into the clipboard.
* SocketAPI has COPL_LOCAL_LINK / EMAIL_LOCAL_LINK commands * The nautilus and dolphing shell integrations show a submenu from which one can share as well as access the private link. * The SocketAPI provides a new GET_STRINGS command to access localized strings. * The private link can also be accessed from the user/group sharing dialog. * The numeric file id is extracted from the full id to create the private link url.
@ckamm @jturcotte just remembered #5462. What do you guys think about possible future integration with the new sharing dialog / context-menu options? |
I don't think that this feature prevents this from happening, but it does remove the possibility of handling this cross-platform in the sharing dialog (vs. in each shell extension platform implementation). Instead of having an extra sub-menu like you suggested (since we just added one), we could have two entries directly in the context menu. e.g. the "ownCloud" menu could appear twice as "ownCloud - user1@server1.com" and "ownCloud - user2@server2.com" Given that though, it feels to me that very few users would end up using this feature, so the cost/benefit ratio of maintaining this on all platforms would be very very high. |
@michaelstingl @pmaier1 Screenshots for reference:
|
@michaelstingl Sure #5903 (I'm not adding it here because this one is almost done and adding context menu entries needs touches in all shell integrations, making it more complicated than a few lines) |
After testing how both #6037 and #5763 (fileid generation; for servers not supporting the Only concerns left would be @dragotin's original proposal in #5023 (comment) to add shortcuts in the "Activity" tab:
... and to rebuild the shell integrations to include the "Open in browser" (#5023 (comment)) - since #6094 would mandate to do such rebuild: could this happen for 2.4? @ckamm |
@SamuAlfageme Thanks for testing! The "Open in browser" in the shell extensions is captured by #5903 which is currently scheduled for 2.5. Similarly adding a context menu to the file entries in the protocol and activity tabs is something that I'd also put into 2.5 and a new ticket. (edit: now #6121) Meta: I think we closed / readytotest'ed this ticket too early and thereby overlooked the remaining aspects of the original suggestion. Creating separate issues for all the component tasks might have helped. @michaelstingl if you'd really like these in the client earlier that would be doable. |
@ckamm yass, closing here 👍 |
@ckamm no real urgency, but thanks for asking |
Expected behaviour
Since 9.1 ownCloud server will understand the "local links" as described in owncloud/core#11732
For a good platform experience, there are a couple of places in the client where we could make use of the local links.
Maybe we should introduce a kind of "local link" symbol that copies the local link to the clipboard, similar to the "copy full SHA" button on github.
The symbol could appear here:
I see the problem that users will not understand the difference between a public link that works without that the user has an account on the ownCloud that has the file and the local link discussed here, that requires a valid user.
Related: owncloud/core#25317
The text was updated successfully, but these errors were encountered: