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

Remove chunking from capabilities #203

Closed
michaelstingl opened this issue Apr 14, 2020 · 8 comments
Closed

Remove chunking from capabilities #203

michaelstingl opened this issue Apr 14, 2020 · 8 comments

Comments

@michaelstingl
Copy link
Contributor

michaelstingl commented Apr 14, 2020

Tested with:

oCIS as of today doesn't support chunking (#195), and there's no short term plan for full implementation.

Please stop announcement of chunking capabilities. (see comments #194 (comment) & #194 (comment))

Calling capabilities

Request:

GET https://ocis-latest.owncloud.com/ocs/v1.php/cloud/capabilities?format=json
Click to expand response
{
    "ocs": {
        "data": {
            "capabilities": {
                "checksums": {
                    "preferredUploadType": "SHA256",
                    "supportedTypes": [
                        "SHA256"
                    ]
                },
                "core": {
                    "pollinterval": 60,
                    "status": {
                        "edition": "community",
                        "installed": true,
                        "maintenance": false,
                        "needsDbUpgrade": false,
                        "productname": "reva",
                        "version": "10.0.11.5",
                        "versionstring": "10.0.11"
                    },
                    "webdav-root": "remote.php/webdav"
                },
                "dav": {
                    "chunking": "1.0",
                    "chunkingParallelUploadDisabled": false,
                    "reports": [
                        "search-files"
                    ],
                    "trashbin": "1.0"
                },
                "files": {
                    "bigfilechunking": false,
                    "blacklisted_files": [],
                    "privateLinks": false,
                    "undelete": true,
                    "versioning": true
                },
                "files_sharing": {
                    "api_enabled": true,
                    "auto_accept_share": true,
                    "default_permissions": 22,
                    "federation": {
                        "incoming": true,
                        "outgoing": true
                    },
                    "group_sharing": true,
                    "public": {
                        "enabled": true,
                        "expire_date": {
                            "enabled": true
                        },
                        "multiple": true,
                        "password": {
                            "enforced": true,
                            "enforced_for": {
                                "read_only": true,
                                "read_write": true,
                                "upload_only": true
                            }
                        },
                        "send_mail": true,
                        "social_share": true,
                        "supports_upload_only": true,
                        "upload": true
                    },
                    "resharing": true,
                    "search_min_length": 3,
                    "share_with_group_members_only": true,
                    "share_with_membership_groups_only": true,
                    "user": {
                        "send_mail": true
                    },
                    "user_enumeration": {
                        "enabled": true,
                        "group_members_only": true
                    }
                },
                "notifications": {
                    "ocs-endpoints": [
                        "list",
                        "get",
                        "delete"
                    ]
                }
            },
            "version": {
                "edition": "reva",
                "major": 10,
                "micro": 11,
                "minor": 0,
                "string": "10.0.11"
            }
        },
        "meta": {
            "message": "OK",
            "status": "ok",
            "statuscode": 100
        }
    }
}

Workaround

OWNCLOUD_CHUNK_SIZE=0 \
/Applications/owncloud.app/Contents/MacOS/owncloud \
--logfile -
@PVince81 PVince81 self-assigned this Apr 20, 2020
@PVince81
Copy link
Contributor

I'd like to have a try at this.

@butonic should the chunking code be removed completely or kept for later ?
if we need to keep it then we should add a config switch, default off, for enabling experimental chunking (since it's broken)

@PVince81
Copy link
Contributor

I've grepped through reva code and it seems the chunking can be enabled through the config file.

Proposed change:

@PVince81
Copy link
Contributor

as far as I saw there is some chunking v1 code in ocdav in reva, so it does "support" it but I guess it's broken in some way

here's a PR to remove the capability entry in reva: cs3org/reva#678

@PVince81
Copy link
Contributor

as far as we saw, chunking v1 (the old one which uses PUT with special file names) is already disabled in ocis-reva as the "bigfilechunking" capability value is set to false

we discovered that the desktop client is not reading that value, raised here: owncloud/client#7849

@PVince81
Copy link
Contributor

removed chunking v2 advertising from ocis-reva here: owncloud/ocis-reva#145

I consider this task done from my side.
Next up would be scheduling the client side change.

@michaelstingl
Copy link
Contributor Author

@PVince81 steps to test-drive this with a client?

@PVince81
Copy link
Contributor

PVince81 commented Apr 24, 2020

best is to wait for the release of ocis-reva and update of ocis dependencies to point at the new version, which will make the setup easier. (cc @micbar)

setting up basically means following the instructions in the README of the OCIS repo: https://github.com/owncloud/ocis#development

@PVince81 PVince81 removed their assignment Apr 29, 2020
@PVince81
Copy link
Contributor

PVince81 commented May 6, 2020

apparently the change in ocis-reva was not enough, also need the change in reva: cs3org/reva#678

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

No branches or pull requests

2 participants