Skip to content

[Sharing] Announce new, roles-based sharing with a new capability for better client support #4847

Closed

Description

@michaelstingl

oCIS sharing based on roles, is very different from the oC10 sharing. To let clients support the new, roles-based oCIS sharing, a new capability is needed. The hack from ownCloud we, to always send the new oCIS roles AND the old oC10 bitmask, isn't a nice approach (oC10 ignores the roles, oCIS ignores the bitmask)

@micbar is this something quick?

/cc @TheOneRing @felix-schwarz @kulmann

Activity

  1. michaelstingl commented on Oct 19, 2022

    @michaelstingl
    ContributorAuthor

    @micbar you propose something?

  2. micbar commented on Oct 20, 2022

    @micbar
    Contributor
    {
        "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": 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": 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"
                }
            }
        }
    }
  3. micbar commented on Oct 20, 2022

    @micbar
    Contributor

    @michaelstingl see the example "sharing_roles": true,

  4. michaelstingl commented on Oct 20, 2022

    @michaelstingl
    ContributorAuthor

    @TheOneRing would this help you to open the web UI for sharing when connected to oCIS servers?

  5. TheOneRing commented on Oct 20, 2022

    @TheOneRing
  6. TheOneRing commented on Oct 20, 2022

    @TheOneRing
    Contributor

    Sounds good.

  7. micbar commented on Oct 20, 2022

    @micbar
    Contributor

    Implemented in cs3org/reva#3381

    needs reva update.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions