Skip to content

Copy private link option not available #1409

Closed

Description

@dpakach

Running ocis using the latest version of phoenix doesn't shows copy private link option.

Activity

  1. PVince81 commented on Mar 23, 2020

    @PVince81
    Contributor

    Indeed, just saw this.

    From reading the code it seems that the Webdav endpoint is likely not returning the privateLink property. This might be because private links are based on the file id and in OCIS the file is is a string, so maybe the URL format will change a bit.

    Not sure if this is planned as part of sharing work ? @butonic

  2. phil-davis commented on Feb 22, 2021

    @phil-davis
    Contributor

    @butonic this is an old issue that was transferred from the archived ocis-phoenix repo a few weeks ago.
    Please close if no longer relevant.

  3. butonic commented on Mar 31, 2021

    @butonic
    Contributor

    initial PR in cs3org/reva#1604 but it only works when the owner accesses the link 🤪

  4. butonic commented on Mar 31, 2021

    @butonic
    Contributor

    also the capability for this is currently hardcoded to false in the ocis storage frontend.

  5. stale commented on Jun 6, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

  6. stale commented on Aug 17, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

  7. michaelstingl commented on Sep 9, 2021

    @michaelstingl
    Contributor

    Desktop Client also can't get a private link:

    Request

    09-09 19:42:34:258 [ info sync.httplogger ]:	"290ea688-ca6d-4323-9fe4-2f85858696c1: 
    Request: PROPFIND https://ocis.team.owncloud.works/remote.php/webdav/Shares/Memes 
    Header: { Depth: 0, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Macintosh) mirall/2.9.0 (build 5148) (testpilotcloud, osx-20.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, Content-Type: text/xml; charset=utf-8, X-Request-ID: 290ea688-ca6d-4323-9fe4-2f85858696c1, Original-Request-ID: 290ea688-ca6d-4323-9fe4-2f85858696c1, Content-Length: 142, } 
    Data: [<?xml version=\"1.0\" encoding=\"utf-8\"?>
    <d:propfind xmlns:d=\"DAV:\">
    <d:prop>
    <privatelink xmlns=\"http://owncloud.org/ns\"/>
    </d:prop>M</d:propfind>\n]"
    

    Response

    09-09 19:42:34:348 [ info sync.httplogger ]:	"290ea688-ca6d-4323-9fe4-2f85858696c1: 
    Response: PROPFIND 207 https://ocis.team.owncloud.works/remote.php/webdav/Shares/Memes 
    Header: { Access-Control-Allow-Origin: *, Access-Control-Expose-Headers: Tus-Resumable, Tus-Version, Tus-Extension, Content-Length: 343, Content-Security-Policy: default-src 'none';, Content-Type: application/xml; charset=utf-8, Date: Thu, 09 Sep 2021 17:42:34 GMT, Dav: 1, 3, extended-mkcol, Tus-Extension: creation,creation-with-upload, Tus-Resumable: 1.0.0, Tus-Version: 1.0.0, Vary: Origin, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, } 
    Data: [<?xml version=\"1.0\" encoding=\"utf-8\"?>
    <d:multistatus xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\" xmlns:oc=\"http://owncloud.org/ns\">
    <d:response>
    <d:href>/remote.php/webdav/Shares/Memes/</d:href>
    <d:propstat>
    <d:prop>
    <oc:privatelink>
    </oc:privatelink>
    </d:prop>
    <d:status>HTTP/1.1 404 Not Found</d:status>
    </d:propstat>
    </d:response>
    </d:multistatus>]"
    

    Capabilities

    It's correctly announced in the /ocs/v1.php/cloud/capabilities

    09-09 19:55:10:056 [ info sync.httplogger ]:	"9c38f094-d0e3-42b6-8afb-2e60c5810435: 
    Response: GET 200 https://ocis.team.owncloud.works/ocs/v1.php/cloud/capabilities?format=json 
    Header: { Content-Length: 1566, Content-Type: application/json; charset=utf-8, Date: Thu, 09 Sep 2021 17:55:10 GMT, Vary: Origin, } 
    Data: [{"ocs":{"meta":{"status":"ok","statuscode":100,"message":"OK"},"data":{"capabilities":{"core":{"pollinterval":60,"webdav-root":"remote.php/webdav","status":{"installed":true,"maintenance":false,"needsDbUpgrade":false,"version":"10.0.11.5","versionstring":"10.0.11","edition":"community","productname":"reva"},"support-url-signing":true},"checksums":{"supportedTypes":["sha1","md5","adler32"],"preferredUploadType":"SHA1"},"files":{"privateLinks":false,"bigfilechunking":false,"undelete":true,"versioning":true,"favorites":false,"blacklisted_files":[],"tus_support":{"version":"1.0.0","resumable":"1.0.0","extension":"creation,creation-with-upload","max_chunk_size":0,"http_method_override":""}},"dav":{"chunking":"","trashbin":"1.0","reports":["search-files"],"chunkingParallelUploadDisabled":false},"files_sharing":{"api_enabled":true,"resharing":true,"group_sharing":true,"auto_accept_share":true,"share_with_group_members_only":true,"share_with_membership_groups_only":true,"search_min_length":3,"default_permissions":22,"user_enumeration":{"enabled":true,"group_members_only":true},"federation":{"outgoing":true,"incoming":true},"public":{"enabled":true,"send_mail":true,"social_share":true,"upload":true,"multiple":true,"supports_upload_only":true,"password":{"enforced_for":{"read_only":true,"read_write":true,"upload_only":true},"enforced":true},"expire_date":{"enabled":false}},"user":{"send_mail":true,"profile_picture":false}},"notifications":{"ocs-endpoints":["disable"]}},"version":{"major":10,"minor":0,"micro":11,"string":"10.0.11","edition":"reva"}}}}]"
    
                   "files":{
                      "privateLinks":false,
    
  8. micbar commented on May 11, 2022

    @micbar
    Contributor

    Will he handled in web inside of owncloud/web#6844

    Closing this here.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions