Skip to content
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

Copy private link option not available #1409

Closed
dpakach opened this issue Mar 4, 2020 · 8 comments
Closed

Copy private link option not available #1409

dpakach opened this issue Mar 4, 2020 · 8 comments

Comments

@dpakach
Copy link
Contributor

dpakach commented Mar 4, 2020

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

@PVince81
Copy link
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

@haribhandari07 haribhandari07 transferred this issue from owncloud/ocis-phoenix Jan 25, 2021
@phil-davis
Copy link
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.

@butonic
Copy link
Member

butonic commented Mar 31, 2021

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

@butonic
Copy link
Member

butonic commented Mar 31, 2021

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

@stale
Copy link

stale bot commented Jun 6, 2021

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.

@stale stale bot added the Status:Stale label Jun 6, 2021
@stale stale bot closed this as completed Jun 16, 2021
@stale stale bot removed the Status:Stale label Jun 18, 2021
@stale
Copy link

stale bot commented Aug 17, 2021

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.

@stale stale bot added the Status:Stale label Aug 17, 2021
@stale stale bot closed this as completed Aug 27, 2021
@dpakach dpakach reopened this Aug 30, 2021
@stale stale bot removed the Status:Stale label Aug 30, 2021
@michaelstingl
Copy link
Contributor

michaelstingl commented Sep 9, 2021

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,

@micbar
Copy link
Contributor

micbar commented May 11, 2022

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

Closing this here.

@micbar micbar closed this as completed May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants