Hi
We're encountering the following error with our helm-chart-feed when trying to download a chart (does not matter if using helm-cli or direct http-request):
Message: "An error occurred processing a GET request to https://packages-01.net.ingtes.ch/helm/helm-dev/ingtes-success-mobile-host/0.2.0/ingtes-success-mobile-host-0.2.0.tgz: Unable to cast object of type 'System.String' to type 'Inedo.ProGet.Feeds.IComparablePackageVersion'."
Details: "System.InvalidCastException: Unable to cast object of type 'System.String' to type 'Inedo.ProGet.Feeds.IComparablePackageVersion'.
at Inedo.ProGet.Feeds.StandardPackageFeed`3.GetDownloadBlockReasonAsync(IStandardPackageMetadata package, Boolean bypassFreeEditionCheck)
at Inedo.ProGet.WebApplication.FeedEndpoints.Helm.HelmFeedHandler.ProcessChartArchiveRequestAsync(AhHttpContext context, WebApiContext apiContext, HelmFeed feed, String name, String version)
at Inedo.ProGet.WebApplication.FeedEndpoints.Helm.HelmFeedHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, HelmFeed feed, String relativeUrl)
at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.FeedRequestHandler.ProcessRequestAsync(AhHttpContext context)
We strongly suspect this is a classic c# casting bug introduced with 2023.0.0.
- The issue is reproducible whenever we upgrade from v2022.0.29
- Downgrading to v2022.0.29 resolves the issue
More info:
- Installed on Windows Server 2022 with Inedo Hub
- The last version working for us is 2022.0.29
- Affected Version: ProGet 2023.0.0 and higher
Thx for having a look.
Kind regards
Hannes Morgenthaler