Genbox / SimpleS3

A .NET Core implementation of Amazon's S3 API with focus on simplicity, security and performance
MIT License
44 stars 8 forks source link

InvalidOperationException due to missing RegionData when using GenericS3 and DI #62

Closed Genbox closed 2 weeks ago

Genbox commented 3 weeks ago

More info: https://github.com/Genbox/SimpleS3/issues/59#issuecomment-2308554507

Genbox commented 2 weeks ago

RegionData is indeed missing, but it is not needed for GenericS3. The reason it gives an exception is because ASP.NET core has service validation enabled, whereas SimpleS3's unit tests do not.

I'll add the missing service, as well as try to enable validation for unit tests so services (even if unused) are not missing in the future.

Genbox commented 2 weeks ago

Related commit: 96b4bc21ec4cf5be7f58444625cd83d6a12ea919

Genbox commented 2 weeks ago

Version 3.2.2 has been released with a fix.