Skip to content

[full-ci] disable federation capabilities - #4864

Merged
micbar merged 3 commits into
masterfrom
sharing-caps
Oct 21, 2022
Merged

micbar merged 3 commits into
masterfrom
sharing-caps

Conversation

@micbar

@micbar micbar commented Oct 20, 2022 •

Copy link
Copy Markdown
Contributor

Description

Fixes #4788 and includes a reva update to fix #4847

Example

{
    "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": 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": 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,
                    "sharing_roles": 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": false,
                        "incoming": false
                    },
                    "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": true
                    },
                    "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"
            }
        }
    }
}

Partial fix

Parially fixes #4844

{
            "driveAlias": "virtual/shares",
            "driveType": "virtual",
            "id": "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668",
            "lastModifiedDateTime": "2022-10-07T14:35:51.950965+02:00",
            "name": "Shares",
            "quota": {
                "remaining": 0,
                "state": "exceeded",
                "total": 0,
                "used": 0
            },
            "root": {
                "eTag": "\"5fb4ad8630f8485eb4fe03cc6b2fffb5\"",
                "id": "a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668",
                "webDavUrl": "https://localhost:9200/dav/spaces/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668"
            },
            "webUrl": "https://localhost:9200/f/a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668"
        },

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:

@micbar
micbar requested review from kobergj and rhafer October 20, 2022 12:18
@micbar

micbar commented Oct 20, 2022

Copy link
Copy Markdown
Contributor Author

@michaelstingl @felix-schwarz @TheOneRing FYI, see the example response.

@micbar

micbar commented Oct 20, 2022

Copy link
Copy Markdown
Contributor Author

@michaelstingl It also includes the space name change from Share Jail to Shares

Comment thread services/frontend/pkg/config/config.go Resolved
@micbar
micbar requested a review from rhafer October 20, 2022 12:24
Comment thread services/frontend/pkg/config/config.go Resolved
Comment thread services/frontend/pkg/config/config.go Resolved
Comment thread services/frontend/pkg/config/config.go Resolved
Comment thread services/frontend/pkg/config/config.go Resolved
Comment thread services/frontend/pkg/config/config.go Resolved
Comment thread services/frontend/pkg/config/config.go Resolved
Comment thread services/frontend/pkg/config/config.go Outdated
UploadMaxChunkSize int `yaml:"upload_max_chunk_size" env:"FRONTEND_UPLOAD_MAX_CHUNK_SIZE" desc:"Sets the max chunk sizes in bytes for uploads via the frontend."`
UploadHTTPMethodOverride string `yaml:"upload_http_method_override" env:"FRONTEND_UPLOAD_HTTP_METHOD_OVERRIDE" desc:"Advise TUS to replace PATCH requests by POST requests."`
DefaultUploadProtocol string `yaml:"default_upload_protocol" env:"FRONTEND_DEFAULT_UPLOAD_PROTOCOL" desc:"The default upload protocol to use in the frontend (e.g. tus)."`
EnableResharing bool `yaml:"enable_resharing" env:"FRONTEND_ENABLE_RESHARING" desc:"Enables the support for resharing in the frontend."`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
EnableResharing bool `yaml:"enable_resharing" env:"FRONTEND_ENABLE_RESHARING" desc:"Enables the support for resharing in the frontend."`
EnableResharing bool `yaml:"enable_resharing" env:"FRONTEND_ENABLE_RESHARING" desc:"Enables the support for resharing in the web frontend."`

Comment thread services/frontend/pkg/config/config.go Resolved
Comment thread services/frontend/pkg/config/config.go Resolved
Comment thread services/frontend/pkg/config/config.go Resolved
@mmattel

mmattel commented Oct 20, 2022 •

Copy link
Copy Markdown
Contributor

In general:

  • when there are possible values that can be entered, add the list in the description
  • how to disable a setting when a number can be entered, if possible, or write a minimum required value or a best practice value (see the chunking bytes)
  • as I cant see it, are there default values set in the default field?
  • as I cant see it, is the type field populated?

@micbar

micbar commented Oct 21, 2022

Copy link
Copy Markdown
Contributor Author

@mmattel You are correcting strings which are not part of the PR 😄
I only added two vars, the others are already there.

@sonarqubecloud

Copy link
Copy Markdown

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

@micbar

micbar commented Oct 21, 2022

Copy link
Copy Markdown
Contributor Author

force merging because CI was already green.

@micbar
micbar merged commit ce20b3b into master Oct 21, 2022
@delete-merged-branch
delete-merged-branch Bot deleted the sharing-caps branch October 21, 2022 10:23
ownclouders pushed a commit that referenced this pull request Oct 21, 2022
Merge: a5eb961 6f12c76
Author: Michael Barz <[email protected]>
Date:   Fri Oct 21 12:23:46 2022 +0200

    Merge pull request #4864 from owncloud/sharing-caps

    [full-ci] disable federation capabilities
@micbar micbar mentioned this pull request Nov 25, 2022
48 of 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

3 participants