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

enable private links #4599

Merged
merged 1 commit into from
Nov 3, 2022
Merged

enable private links #4599

merged 1 commit into from
Nov 3, 2022

Conversation

micbar
Copy link
Contributor

@micbar micbar commented Sep 15, 2022

Description

Enable private links capability.

{
    "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.11.0.0",
                        "versionstring": "10.11.0",
                        "edition": "Community",
                        "productname": "Infinite Scale",
                        "product": "Infinite Scale",
                        "productversion": "2.0.0-beta.8+dev"
                    },
                    "support-url-signing": true
                },
                "checksums": {
                    "supportedTypes": [
                        "sha1",
                        "md5",
                        "adler32"
                    ],
                    "preferredUploadType": "SHA1"
                },
                "files": {
                    "privateLinks": true,
                    "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": 100000000,
                        "http_method_override": ""
                    },
                    "archivers": [
                        {
                            "enabled": true,
                            "version": "2.0.0",
                            "formats": [
                                "tar",
                                "zip"
                            ],
                            "archiver_url": "/archiver",
                            "max_num_files": "10000",
                            "max_size": "1073741824"
                        }
                    ],
                    "app_providers": [
                        {
                            "enabled": true,
                            "version": "1.1.0",
                            "apps_url": "/app/list",
                            "open_url": "/app/open",
                            "open_web_url": "/app/open-with-web",
                            "new_url": "/app/new"
                        }
                    ]
                },
                "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": false,
                                "read_write": false,
                                "upload_only": false
                            },
                            "enforced": false
                        },
                        "expire_date": {
                            "enabled": false
                        },
                        "can_edit": true,
                        "alias": false
                    },
                    "user": {
                        "send_mail": true,
                        "profile_picture": false,
                        "settings": [
                            {
                                "enabled": true,
                                "version": "1.0.0"
                            }
                        ]
                    }
                },
                "spaces": {
                    "version": "0.0.1",
                    "enabled": true,
                    "projects": true,
                    "share_jail": true
                }
            },
            "version": {
                "major": 10,
                "minor": 11,
                "micro": 0,
                "string": "10.11.0",
                "edition": "Community",
                "product": "Infinite Scale",
                "productversion": "2.0.0-beta.8+dev"
            }
        }
    }
}

Related Issue

  • Fixes <issue_link>

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@update-docs
Copy link

update-docs bot commented Sep 15, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@sonarcloud
Copy link

sonarcloud bot commented Sep 15, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be clear: this will show the private link copy button in the right sidebar for each and every file in the web ui. Do we need some config.json option to prevent the web ui from showing the button? We need the capability for e.g. the desktop client. But the web ui behaves according to the capability as well. cc @pmaier1 @tbsbdr

@@ -0,0 +1,5 @@
Change: Enable privatelinks by default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a breaking change? IMO only an enhancement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is change always breaking?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the classification in calens maps very well to semver like that:

  • Security and Bugfix for Patch version increment
  • Enhancement for Minor version increment
  • Change for Major version increment

Has been used in all web related repos like that since at least 1,5 years now. If not being used like that I don't understand the difference between Change and Enhancement to be honest. 😅

@micbar
Copy link
Contributor Author

micbar commented Sep 15, 2022

@kulmann @tbsbdr @pmaier1 Let us decide what to do. IMO we should not display the button in the WebUI for the ocis backend because we want to use the new alias links for all user interactions. The Privatelink in ocis is used by the desktop to open a space in web.

@micbar micbar marked this pull request as draft September 15, 2022 13:50
@kulmann
Copy link
Member

kulmann commented Sep 15, 2022

@kulmann @tbsbdr @pmaier1 Let us decide what to do. IMO we should not display the button in the WebUI for the ocis backend because we want to use the new alias links for all user interactions. The Privatelink in ocis is used by the desktop to open a space in web.

Same opinion. But since web respects the capabilities we'd need to add another config option in web to hide the private link copy button (which is ok).

Copy link
Contributor

@michaelstingl michaelstingl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that matches the oC10 capability. LGTM 👍

@micbar
Copy link
Contributor Author

micbar commented Oct 28, 2022

will not be merged. We do not enable the feature user-facing.

@micbar micbar closed this Oct 28, 2022
@kulmann
Copy link
Member

kulmann commented Oct 28, 2022

@michaelstingl does the desktop client need the private link capability? Or will it only check the presence of a private link prop in propfind responses? As of now, ocis has the private-link prop in propfind responses but announces the private link capability as disabled. For web this is fine. For other clients as well?

@michaelstingl
Copy link
Contributor

As of now, ocis has the private-link prop in propfind responses but announces the private link capability as disabled. For web this is fine. For other clients as well?

No. Desktop and mobile clients show the UI for the private links depending on the private-link prop.

@micbar micbar reopened this Nov 3, 2022
@micbar micbar marked this pull request as ready for review November 3, 2022 14:57
@micbar micbar merged commit 353240e into master Nov 3, 2022
@delete-merged-branch delete-merged-branch bot deleted the privatelink-capability branch November 3, 2022 14:58
ownclouders pushed a commit that referenced this pull request Nov 3, 2022
Merge: c160dd7 29b5c97
Author: Michael Barz <mbarz@owncloud.com>
Date:   Thu Nov 3 15:58:09 2022 +0100

    Merge pull request #4599 from owncloud/privatelink-capability

    enable private links
@micbar micbar mentioned this pull request Nov 25, 2022
73 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants