Skip to content

[Bug]: Object storage (S3) folder on duplication has 0 KB folder size #51916

@kyteinsky

Description

@kyteinsky

⚠️ This issue respects the following points: ⚠️

Bug description

Duplication/copy of a non-zero sized folder with any subfolders results in a folder whose size is reported as 0 KB. All the subfolders of this new folder are also 0 KB in size, but the files are reported as correctly sized.
This problem only happens with the folders with subfolders, not with folders with only files or just files.
Object storage was used in this case with S3 (MinIO) as the provider.

configuration used:

'objectstore' => [
        'class' => '\\OC\\Files\\ObjectStore\\S3',
        'arguments' => [
                'bucket' => 'store-nc',
                'hostname' => 'minio',
                'key' => 'xxx',
                'secret' => 'xxx',
                'port' => 9000,
                'use_ssl' => false,
                'use_path_style' => true,
        ],
],

Steps to reproduce

  1. Upload a folder with at least one subfolder and some files
  2. Copy the folder in the same directory

Expected behavior

Both the original and the "original (copy)" folders have the same size, but only the original folder has the correct size reported.

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions