findify / s3mock

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

S3Mock doesn't differ paths with and without slash at the end #45

Closed jimirocks closed 7 years ago

jimirocks commented 7 years ago

having stored some object under the key some/path/example it should

... may be some other cases needs to be reconsidered as well

jimirocks commented 7 years ago

Investigated more and looks like the behaviour is also different for in memory vs. file provider, at least the in memory provider doesn't do the wrong delete

shuttie commented 7 years ago

I've fixed issues 1 and 2. As for 3, it's more tricky as when using file-based provider (which dumps everything on disk), you cannot have file and subfolder share the same name. POSIX filesystems explicitly do not allow it.