Skip to content

Add OCS capability to advertise whether a server allows public links #13673

Closed

Description

@PVince81

curl http://root:admin@localhost/owncloud/ocs/v1.php/cloud/capabilities

Add a new attribute that tells whether public sharing is enabled.

@guruz @icewind1991 @schiesbn

Activity

  1. added this to the milestone on Jan 26, 2015
  2. PVince81 commented on Jan 26, 2015

    @PVince81
    ContributorAuthor

    CC @rperezb @dragotin as this info can be interesting for the mobile and desktop clients

    There's a PR from @rullzer here: #13692

  3. rperezb commented on Feb 4, 2015

    @rperezb

    Thanks @PVince81, indeed it is.

  4. MTRichards commented on Feb 4, 2015

    @MTRichards
    Contributor

    If/when we get a fix, can we get a backport to 8.0 and 7.0.5 please? This is key for the mobile and desktop - as well as the info on whether a password is required for public links.

  5. rullzer commented on Feb 4, 2015

    @rullzer
    Contributor

    @MTRichards I did not test it (yet) but I think my PR can be trivially backported to 7.0.5.
    As for 8.0 it works against the current master.

  6. MTRichards commented on Feb 4, 2015

    @MTRichards
    Contributor

    Awesome sauce. Does it also advertise if a public link requires a password?

  7. rullzer commented on Feb 4, 2015

    @rullzer
    Contributor

    Yes, and if we allow public uploads. The rest can be added as well (default expire date etc).
    However there was some discussion where it had to be placed in the capabilitie

  8. davivel commented on Feb 4, 2015

    @davivel

    Sorry, Matt, we messed this a bit before. From the client POV would be great to have this backported, but is not really necessary for the problem we talked about.

    The key point is in my comment in owncloud/client#2774 (comment) .

    Thanks.

  9. dragotin commented on Feb 5, 2015

    @dragotin
    Contributor

    I think the capabilities API should provide the followiing information, based on @rullzer s pull request:

    1. Public link sharing enabled yes/no (already in the patch)
    2. Password required (already in the patch)
    3. Default expiration date yes/no, if set, the duration in days
    4. Expiration date enforced yes/no
    5. Mail sending for public link shares yes/no
    6. Mail sending for user/group sharing yes/no
    7. Restrict sharing to own group yes/no
    8. Allow sharing to groups yes/no

    No. 7. and 8. could also be handled by a server API that returns the list of users/groups that the client is allowed to share to.

    We will currently not need the public upload information.

  10. rullzer commented on Feb 5, 2015

    @rullzer
    Contributor

    @dragotin I'll add 3-6 when I have some time (hopefully tonight but otherwise during the weekend)

    As for 7 and 8 I agree they are probably mostly usefull in a seperate API since a client can't do anything with that info. But I have a PR #13587 for that well.

    Still leaves the issue where to place it in the capabilities? Is the files section good or should it be more global?

  11. MTRichards commented on Feb 9, 2015

    @MTRichards
    Contributor

    Ok - so this is for ownCloud 8.0.1 right?

    NOT 8.1? Tag says 8.1.
    Too many tickets on this problem, and 1.8 is waiting on this.

  12. LukasReschke commented on Feb 9, 2015

    @LukasReschke
    Contributor

    Too many tickets on this problem, and 1.8 is waiting on this.

    Well… maybe this should have then be better communicated before relying in the client on some API that does not yet exist… – I thought we agreed on only backporting critical bugfixes once…

  13. MTRichards commented on Feb 9, 2015

    @MTRichards
    Contributor
  14. PVince81 commented on Feb 9, 2015

    @PVince81
    ContributorAuthor

    Next time I will be careful to not advertise ideas that late before the release.

  15. karlitschek commented on Feb 9, 2015

    @karlitschek
    Contributor

    @MTRichards @craigpg We have to discuss and merge something like that way earlier in the cycle. aka FeatureFreeze

  16. MTRichards commented on Feb 9, 2015

    @MTRichards
    Contributor

    Ok.
    Still, 8.0.1?
    😄

  17. DeepDiver1975 commented on Feb 9, 2015

    @DeepDiver1975
    Contributor

    Still, 8.0.1?

    To be honest and precise: if we agree on walking this path - I'm not yet fully convinced. Just started to think about this and talk to people.

    Please understand that ANY change to ANY-thing which is API-like has big impact on our maintenance effort. The best API to support and maintain is the one we never need/use/implement (e.g. no need to have capabilities for thumbnails)

  18. MTRichards commented on Feb 9, 2015

    @MTRichards
    Contributor

    I think I should also be clear...
    I don't mean we need this API to solve this, maybe we do something different - owncloud/client@4849c31 .
    Bottom line is we just need some fix.

    I don't want to prescribe an answer, and this particular issue is a technical prescription, I just work with priorities and requirements.

  19. karlitschek commented on Feb 10, 2015

    @karlitschek
    Contributor

    @DeepDiver1975 do you think we can come up with a pull request for an API like that?
    We can discuss tomorrow if you want.

  20. rullzer commented on Feb 10, 2015

    @rullzer
    Contributor

    @DeepDiver1975 well I'm fine with any other implementation really. Could also be a new function in the share API. However this approach looked cleaner to me.

  21. rullzer commented on Apr 12, 2015

    @rullzer
    Contributor

    This is fixed with #13964. So closing.
    The info is now exposed. The info might be extended in the future. But that should go in a different issue.

  22. locked as resolved and limited conversation to collaborators on Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions