Skip to content

Several S3 issues #122

@mdtila

Description

@mdtila

Hi guys,

I have struggled too much with bugs in FluentStorage and I have already removed the library, however I am pointing some of the situations that they might make development experience better for others:

First I am talking about a configuration with MinIO

  1. The GetDownloadUrlAsync(URL, MIME, expiresInSeconds: 60) - I spent a lot of time why still getting the SignatureMismatch error - the culprit was MIME type, and the MIME is not a nullable string, hence it is not easy to figure it out. Here I spent 4 hours

  2. Using a HTTP MinIO is simply not supported. The reasons is

public async Task<string> GetPresignedUrlAsync(string fullPath, string mimeType, int expiresInSeconds, HttpVerb verb) {
			return await GetPresignedUrlAsync(fullPath, mimeType, expiresInSeconds, verb, default).ConfigureAwait(false);
		}

the last parameter default is the protocol - where default is HTTPS by default. Even if you specify the URL as http:// .. of the MinIO the parameter has to be adjusted as well to work. This is even harded to figure it out since in the public interface that function is not exposed

Also I think this should be adjusted here as well:

var config = new AmazonS3Config
{
    ServiceURL = "http://....",
    ForcePathStyle = true,
    UseHttp = true, // or false
};

These are the 2 bugs only related to S3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions