findify / s3mock

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

Different behaviour from the AWS Java SDK when deleting a non-existing item #191

Open kebbaman opened 8 months ago

kebbaman commented 8 months ago

As stated in the official documentation https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/AmazonS3.html#deleteObject-java.lang.String-java.lang.String- and as addressed by issue #97 the delete API has a different behaviour than the counterpart on the official client. Using the findify library, attempting to delete an object that does not exist will result in a 404 object not found AmazonS3Exception. Whereas the official client in the same exact situation would return a success response. in the mentioned issue i saw a pull request that addresses the described problem, would it be possible to merge it? Or would it be possible for you to allign the behaviour of this specific case to the behaviour that the official client would have in the same situation? Hoping for a reply, Thank you in advance. Best regards