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
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:
In the sync protocol in the file column (or in a column next to it, to make it easier)
In the activity files concerned by an activity could display a link copy button
In the file manager context menu, with an entry "Copy ownCloud Link".
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.
Yes, important for 2.4. Include into the share menu, or make it a seperate right click for easiest experience.
User story: Just sitting in the train and could use this right now ;)
If share menu we could also include the /download link thing requested: #5627
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.
https://<server>/index.php/f/29 will always point to the same file on both accounts no matter if it's displaced within any of the file trees.
An entry in the file explorer's context menu could be used as shortcut to directly:
Copy the permalink to the clipboard: ("Copy permalink")
Open file in the containing folder context (file's row highlighted) ("Open <server> in browser")
Yup, #5023 (comment) looks good to me except that I would prefer Copy permanent link and would change Open <server> in browser to View in browser (why would you mention <server> there?)
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.
Actually, doesn't need to be shared: all the files/folders in server have a private link by default:
The "Users and Groups" section of the file share dialog allows copying or mailing of the private link.
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 oc:id and not the oc:fileid.
The oc:id also contains the server instance ID string, not just the numeric file id.
e.g. 00000003ocr2n5bhxjuy.
We could just split() before oc but that's ugly..
@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 apps/dav/lib/Connector/Sabre/Node.php:getFileId(). If we make use of the specific structure of fileid we need to at least make a note of it there.
Why do we use id over fileid, btw? Federated shares? Then how do we generate the permalink for files in federated shares? Hmh.
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.
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 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 oc:privatelink) work perfectly this is quite ready to be closed.
Only concerns left would be @dragotin's original proposal in #5023 (comment) to add shortcuts in the "Activity" tab:
In the sync protocol in the file column (or in a column next to it, to make it easier)
In the activity files concerned by an activity could display a link copy button
... 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
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.
Activity
hodyroff commentedon Mar 21, 2017
Yes, important for 2.4. Include into the share menu, or make it a seperate right click for easiest experience.
User story: Just sitting in the train and could use this right now ;)
If share menu we could also include the /download link thing requested: #5627
SamuAlfageme commentedon Mar 27, 2017
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.
https://<server>/index.php/f/29will always point to the same file on both accounts no matter if it's displaced within any of the file trees.An entry in the file explorer's context menu could be used as shortcut to directly:
Copy permalink")Open <server> in browser")The permalink is available for both shared and non-shared files so should be available for both use cases.
pmaier1 commentedon Apr 4, 2017
Yup, #5023 (comment) looks good to me except that I would prefer
Copy permanent linkand would changeOpen <server> in browsertoView in browser(why would you mention<server>there?)pmaier1 commentedon Apr 6, 2017
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.
ckamm commentedon May 8, 2017
@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.
SamuAlfageme commentedon May 8, 2017
@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.
guruz commentedon May 8, 2017
One problem is that in the client we have the
oc:idand not theoc:fileid.The
oc:idalso contains the server instance ID string, not just the numeric file id.e.g.
00000003ocr2n5bhxjuy.We could just split() before
ocbut that's ugly..FYI @ogoffart @PVince81 @DeepDiver1975
ckamm commentedon May 8, 2017
@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
apps/dav/lib/Connector/Sabre/Node.php:getFileId(). If we make use of the specific structure of fileid we need to at least make a note of it there.Why do we use id over fileid, btw? Federated shares? Then how do we generate the permalink for files in federated shares? Hmh.
guruz commentedon May 8, 2017
@ckamm I think just legacy reasons.. https://github.com/owncloud/core/search?q=%22oc%3Aid%22&type=Commits&utf8=%E2%9C%93
Back in the days the fileId was just for move detection(?), only now we want to use it for more things.
Maybe we could just start to fetch
oc:fileidalso and PROPFIND all directories as part of the update.hm
37 remaining items
Dolphin integration: Copy local link action owncloud#5023
Sharing: Add local link access to user/group sharing owncloud#5023
Introduce private link sharing #5023
SamuAlfageme commentedon Jul 12, 2017
@ckamm @jturcotte just remembered #5462. What do you guys think about possible future integration with the new sharing dialog / context-menu options?
jturcotte commentedon Jul 12, 2017
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 - [email protected]" and "ownCloud - [email protected]"
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.
SamuAlfageme commentedon Jul 14, 2017
@michaelstingl @pmaier1 Screenshots for reference:
michaelstingl commentedon Jul 14, 2017
Could we add "Open link in browser" (#3024) to the shell extension too? (without having the auto-login (#633) solved yet)
ckamm commentedon Jul 14, 2017
@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)
SamuAlfageme commentedon Oct 25, 2017
After testing how both #6037 and #5763 (fileid generation; for servers not supporting the
oc:privatelink) work perfectly this is quite ready to be closed.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
ckamm commentedon Oct 25, 2017
@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.
SamuAlfageme commentedon Oct 25, 2017
@ckamm yass, closing here 👍
michaelstingl commentedon Oct 25, 2017
@ckamm no real urgency, but thanks for asking