kestra-io / kestra

Infinitely scalable, event-driven, language-agnostic orchestration and scheduling platform to manage millions of workflows declaratively in code.
https://kestra.io
Apache License 2.0
7.57k stars 462 forks source link

If you try to save a file with the same name exception happens #4254

Closed aku closed 1 month ago

aku commented 2 months ago

Describe the issue

Kestra 17.8, minio s3 plugin

1 Create file in the namespace 2 Right click on the file, open "rename file" window 3 Enter the same name as existing file 4 Save 5 Exception pops up

Internal server error: error occurred
ErrorResponse(code = InvalidRequest, message = This copy request is illegal because it is trying to copy an object to itself without changing the object’s metadata, storage class, website redirect location or encryption attributes., bucketName = [REDACTED], objectName = null, resource = null, requestId = tx0000094cc5e2c174620e3-00668812ea-edbec-xc1-zone, hostId = [REDACTED])
request={method=PUT, url=[REDACTED], headers=x-amz-copy-source: [REDACTED]
Host: [REDACTED]
Accept-Encoding: identity
User-Agent: MinIO (Linux; amd64) minio-java/dev
Content-MD5: 1B2M2Y8AsgTpgAmY7PhCfg==
x-amz-content-sha256: UNSIGNED-PAYLOAD
x-amz-date: 20240705T153610Z
Authorization: [REDACTED]
}
response={code=400, headers=Content-Length: 429
x-amz-request-id: tx0000094cc5e2c174620e3-00668812ea-edbec-xc1-zone
Accept-Ranges: bytes
Content-Type: application/xml
Date: Fri, 05 Jul 2024 15:36:10 GMT
Connection: Keep-Alive
}

Environment

anna-geller commented 2 months ago

Good catch, thanks for the issue! I can reproduce getting: Internal Server Error: null

anna-geller commented 1 month ago

I think it's solved now, I no longer see any error messages on the develop image https://share.descript.com/view/B4HVCAV6dph