null reference error when attempting recursive delete

オープン
#105 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, csharp
領域
backend, cloud

調査の方向性

Start by reading AwsS3DirectoryBrowser.DeleteRecursiveAsync and the call path from AwsS3BlobStorage.DeleteAsync; the stack trace shows Enumerable.Select receives a null source during recursive deletion. Then inspect the AWS package references and restore output for the AWSSDK.Core downgrade when using OpenTelemetry.Instrumentation.AWS 1.12.0. Done when recursive deletion handles the reported case and the dependency versions restore without a downgrade warning.

索引モデルが issue の本文から書いたものです。

説明

[25-05-12 20:50:53.201 ERR] DefaultHealthCheckService: Health check Storage with status Unhealthy completed after 113.6429ms with message 'null'
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
   at FluentStorage.AWS.Blobs.AwsS3DirectoryBrowser.DeleteRecursiveAsync(String fullPath, CancellationToken cancellationToken)
   at FluentStorage.AWS.Blobs.AwsS3BlobStorage.DeleteAsync(String fullPath, AmazonS3Client client, CancellationToken cancellationToken)
   at FluentStorage.AWS.Blobs.AwsS3BlobStorage.DeleteAsync(IEnumerable`1 fullPaths, CancellationToken cancellationToken)
   at GZCTF.Services.HealthCheck.StorageHealthCheck.CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken) in /home/runner/work/GZCTF/GZCTF/src/GZCTF/Services/HealthCheck/StorageHealthCheck.cs:line 27

and I want to use newer OpenTelemetry.Instrumentation.AWS

Warning As Error: Detected package downgrade: AWSSDK.Core from 4.0.0 to 3.7.402.56. Reference the package directly from the project to select a different version.
GZCTF -> OpenTelemetry.Instrumentation.AWS 1.12.0 -> AWSSDK.Core (>= 4.0.0 && < 5.0.0)
GZCTF -> AWSSDK.Core (>= 3.7.402.56)
主要言語
C#
スター
464
フォーク
78
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

robinrodricks/FluentStorage のほかの issue

robinrodricks/FluentStorage の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。