minio-dotnet icon indicating copy to clipboard operation
minio-dotnet copied to clipboard

RemoveObjectAsync does not throw exception when Bucket exists and Object does not exist

Open rszik opened this issue 1 month ago • 2 comments

RemoveObjectAsync does not throw exception when Bucket exists and Object does not exist

Expected Behavior

RemoveObjectAsync should throw exception like the CopyObjectAsync when Bucket exists and Object does not exist

Current Behavior

RemoveObjectAsync executed without exception

Steps to Reproduce (for bugs)

        try
        {
            var args = new RemoveObjectArgs()
            .WithBucket(existingBucketName)
            .WithObject(nonexistingObjectName);
            await moClient.RemoveObjectAsync(args).ConfigureAwait(false);
        }
        catch (Exception ex)
        {
            _logger.LogError(ex);
            throw ex;
        }

Your Environment

  • Version used: minio 7.0.0 nuget package
  • Server setup and configuration: RELEASE.2025-09-07T16-13-09Z
  • Operating System and version: Windows 11 Enterprise

rszik avatar Nov 14 '25 09:11 rszik

@rszik Which language is this? So I can move it to the appropriate SDK.

klauspost avatar Nov 14 '25 10:11 klauspost

It was the .NET SDK nuget package

rszik avatar Nov 14 '25 13:11 rszik