Skip to content

Use "Local Links" on the client #5023

Closed

Description

@dragotin

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:

  • 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.

Related: owncloud/core#25317

Activity

  1. added this to the 2.3.0 milestone on Jun 30, 2016
  2. modified the milestones: 2.4.0, 2.3.0 on Oct 31, 2016
  3. hodyroff commented on Mar 21, 2017

    @hodyroff

    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

  4. SamuAlfageme commented on Mar 27, 2017

    @SamuAlfageme
    Contributor

    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")

    The permalink is available for both shared and non-shared files so should be available for both use cases.

  5. pmaier1 commented on Apr 4, 2017

    @pmaier1

    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?)

  6. pmaier1 commented on Apr 6, 2017

    @pmaier1

    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.

  7. added
    p2-high
    on Apr 28, 2017
  8. ckamm commented on May 8, 2017

    @ckamm
    Contributor

    @SamuAlfageme @ogoffart So, to make this concrete:

    If a file is shared with any users or groups:

    • The "Users and Groups" section of the file share dialog allows copying or mailing of the private link.
    • The context menu for the file gets another option "Copy ownCloud private link"

    Adding a new context menu is slightly involved because it needs to touch all desktop integrations, the rest would be straightforward.

  9. SamuAlfageme commented on May 8, 2017

    @SamuAlfageme
    Contributor

    @ckamm yup 👍

    If a file is shared with any users or groups:

    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.

  10. guruz commented on May 8, 2017

    @guruz
    Contributor

    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..

    FYI @ogoffart @PVince81 @DeepDiver1975

  11. ckamm commented on May 8, 2017

    @ckamm
    Contributor

    @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.

  12. guruz commented on May 8, 2017

    @guruz
    Contributor

    @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:fileid also and PROPFIND all directories as part of the update.

    Then how do we generate the permalink for files in federated shares? Hmh.

    hm

  13. 37 remaining items

  14. added a commit that references this issue on Jul 7, 2017
  15. reopened this on Jul 11, 2017
  16. added
    ReadyToTest
    on Jul 11, 2017
  17. SamuAlfageme commented on Jul 12, 2017

    @SamuAlfageme
    Contributor

    @ckamm @jturcotte just remembered #5462. What do you guys think about possible future integration with the new sharing dialog / context-menu options?

  18. jturcotte commented on Jul 12, 2017

    @jturcotte
    Contributor

    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.

  19. SamuAlfageme commented on Jul 14, 2017

    @SamuAlfageme
    Contributor

    @michaelstingl @pmaier1 Screenshots for reference:

    Context Menu Private Share tab on the Sharing Dialog
    3_new_options screen shot 2017-07-14 at 12 26 22
  20. michaelstingl commented on Jul 14, 2017

    @michaelstingl
    Contributor

    Could we add "Open link in browser" (#3024) to the shell extension too? (without having the auto-login (#633) solved yet)

  21. ckamm commented on Jul 14, 2017

    @ckamm
    Contributor

    @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)

  22. SamuAlfageme commented on Oct 25, 2017

    @SamuAlfageme
    Contributor

    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

  23. ckamm commented on Oct 25, 2017

    @ckamm
    Contributor

    @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.

  24. SamuAlfageme commented on Oct 25, 2017

    @SamuAlfageme
    Contributor

    @ckamm yass, closing here 👍

  25. michaelstingl commented on Oct 25, 2017

    @michaelstingl
    Contributor

    @ckamm no real urgency, but thanks for asking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ReadyToTestp2-high

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions