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

add max size and max num to the archiver capabilities #2544

Merged
merged 2 commits into from
Sep 27, 2021

Conversation

wkloucek
Copy link
Contributor

@wkloucek wkloucek commented Sep 26, 2021

needs cs3org/reva#2106
fixes #2537

Archiver capabilites section:

          "archivers": [
            {
              "enabled": true,
              "version": "2.0.0",
              "formats": [
                "tar",
                "zip"
              ],
              "archiver_url": "/archiver",
              "max_num_files": "10000",
              "max_size": "1073741824"
            }
          ],

@sonarcloud
Copy link

sonarcloud bot commented Sep 27, 2021

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

@wkloucek wkloucek merged commit 46bf1ed into master Sep 27, 2021
@delete-merged-branch delete-merged-branch bot deleted the archiver_capabilities branch September 27, 2021 08:51
ownclouders pushed a commit that referenced this pull request Sep 27, 2021
Merge: 33b2b6c 0614f3c
Author: Willy Kloucek <34452982+wkloucek@users.noreply.github.com>
Date:   Mon Sep 27 10:51:42 2021 +0200

    Merge pull request #2544 from owncloud/archiver_capabilities

    add max size and max num to the archiver capabilities
@prohtex
Copy link

prohtex commented Feb 21, 2024

@wkloucek would you mind explaining why the archive limit exists? We routinely download 20GB and larger archives from our OC10 instance and it would be helpful to know about the failures that were mentioned with the archiver and large files. 1GB is very small for our purposes. Thank you!

@wkloucek
Copy link
Contributor Author

hi @prohtex, please note that this PR didn't add the limit itself. It only reflected it in the capabilities endpoint so that clients (Web, Desktop, ...) actually have a chance to know where the limits are.

The limits are actually applied here: https://github.com/cs3org/reva/blob/51581ffa5f0c93ebd4f1d9d1f0a094d66c2a381f/internal/http/services/archiver/manager/archiver.go#L128-L141

These limits originate from cs3org/reva#1698 / cs3org/reva#2066 and to be honest I don't know the rationale behind it.

Actually I see no reason to not have a "unlimited" option here like 0 or -1 (but you cannot configure this currently). Could you please create a feature request issue on the owncloud/ocis repository for this?

@prohtex
Copy link

prohtex commented Feb 22, 2024

hi @prohtex, please note that this PR didn't add the limit itself. It only reflected it in the capabilities endpoint so that clients (Web, Desktop, ...) actually have a chance to know where the limits are.

The limits are actually applied here: https://github.com/cs3org/reva/blob/51581ffa5f0c93ebd4f1d9d1f0a094d66c2a381f/internal/http/services/archiver/manager/archiver.go#L128-L141

These limits originate from cs3org/reva#1698 / cs3org/reva#2066 and to be honest I don't know the rationale behind it.

Actually I see no reason to not have a "unlimited" option here like 0 or -1 (but you cannot configure this currently). Could you please create a feature request issue on the owncloud/ocis repository for this?

Hi @wkloucek thank you for your reply. I will make the request. So I understand though, there is a backend limit parameter, and one for Web as well? What I saw in the discussions was that archive creation was failing and the capability was added to prevent the failed archives.

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.

archiver capabilities for maximum number of files and size
3 participants