Skip to content

[Bug]: Unable to rename files residing in external storage (S3) #41804

@datenangebot

Description

@datenangebot

⚠️ This issue respects the following points: ⚠️

Bug description

After upgrading to 27.1.3, we discovered that it is not possible anymore to rename files that reside in external S3 storage.

Exception from the server:
{"Exception":"Aws\\Exception\\MultipartUploadException","Message":"An exception occurred while uploading parts to a multipart upload. The following parts had errors:\n- Part 1: Error executing \"UploadPartCopy\" on \"https://???/test2.odt?partNumber=1&uploadId=2~Ifrvg95tAnlyFxa75hfrysf0stGe9Wb\"; AWS HTTP error: Client error: `PUT https://???/test2.odt?partNumber=1&uploadId=2~Ifrvg95tAnlyFxa75hfrysf0stGe9Wb` resulted in a `404 Not Found` response:\n<?xml version=\"1.0\" encoding=\"UTF-8\"?><Error><Code>NoSuchKey</Code><BucketName>???</BucketName><Reque (truncated...)\n NoSuchKey (client):  - <?xml version=\"1.0\" encoding=\"UTF-8\"?><Error><Code>NoSuchKey</Code><BucketName>???</BucketName><RequestId>tx00000e4cce185faa47f8f-006565dcde-f59e029-default</RequestId><HostId>???</HostId></Error>\n",

Steps to reproduce

Install NC27.1.3 with S3 storage.

Expected behavior

Can rename

Installation method

None

Nextcloud Server version

27

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?

None

What user-backends are you using?

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

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

Seems to be related to: #40577
If we revert this patch, it works fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions