findify / s3mock

Embedded S3 server for easy mocking
MIT License
387 stars 107 forks source link

copyObject with `=` in key isn't working #125

Closed den-rifiniti closed 4 years ago

den-rifiniti commented 6 years ago

Hi all copyObject with = in key isn't working

s3MockedClient.copyObject("input", "path/dt=2018-07-03/test", "input", "backup/dt=2018-07-03/test.backup")

Fails with

The resource you requested does not exist (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: null; S3 Extended Request ID: null)
com.amazonaws.services.s3.model.AmazonS3Exception: The resource you requested does not exist (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: null; S3 Extended Request ID: null), S3 Extended Request ID: null
adrian-wozniak commented 5 years ago

The same is for copying paths ending with /. Such paths are denoted as directory-like.