bagetter/BaGetter

Azure blob storage support

Closed this issue · 4 comments

Describe the bug

Application throws exception when configured to use Azure blob storage as storage.

      System.ArgumentNullException: Value cannot be null. (Parameter 'storage')
         at BaGetter.Core.PackageStorageService..ctor(IStorageService storage, ILogger`1 logger) in /_/src/BaGetter.Core/Storage/PackageStorageService.cs:line 27
         at InvokeStub_PackageStorageService..ctor(Object, Span`1)

To Reproduce

Steps to reproduce the behavior:

  1. Download 1.1.0 version from GH releases and unzip
  2. Configure the application to use Azure blob storage (see below my values). I followed the documented structure - https://www.bagetter.com/docs/Installation/azure#azure-blob-storage
  3. Try to upload a package using nuget push - the exception is thrown

Expected behavior

Expected is the application use the configured storage correctly.

Screenshots

Additional context

Version 1.1.0 - downloaded from GH releases

The configuration in appsettings.json file:

  "Storage": {
    "Type": "AzureBlobStorage",
    "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=...;AccountKey=...;EndpointSuffix=core.windows.net",
    "Container": "...",
  },

I have found this PR (#6) describing the disable is temporary however it lasts many months now. Even project documentation is not aligned.

Is it still disabled by a reason? What is the reason? Do you have a plan/schedule to enable it back? When it might happen? Or should I make simple commit/PR to enable it?

Thank you much for your effort with the project overtaking and maintaining!

Yes Azure is disabled currently. The main problem: It cannot be activated that easily because the Azure API has changed too much and we have to make some huges changes or event make a whole rewrite of the module.
We know this is a problem, but currently no one tries to tackle it. If you want to have a look into it this would be awesome.

@Regenhardt You not currently looking into this, right?

I'm not currently on that, no. I could look into it this weekend though. I'd like to add Azure services one by one, starting with blob storage because it's the most obvious specific use case.

FYI: I've just deployed the application built locally based on a8b4051 (one within #128) and Azure blob storage usage works like a charm.

I think this issue is almost solved and ready to be closed once the PR gets merged.
Thank you very much for fast work!

@Pokorny-FirstIS thanks for testing this! I'll look at the PR now.