"java.lang.IllegalArgumentException: Collection is empty" when calling `lastEstimateStatisticsOperation`

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
java
領域
api

調査の方向性

EdiscoveryEstimateOperation.java:41 にある生成された EdiscoveryEstimateOperation デシリアライザーから始め、報告された lastEstimateStatisticsOperation request を再現に使用して JsonParseNode.getEnumSetValue を追跡します。statisticsOptions のレスポンス処理を API response と比較し、リポジトリに用意されている場合は、焦点を絞ったデシリアライゼーションテストを追加または更新します。完了条件は、呼び出しが空のコレクション例外なしで EdiscoveryEstimateOperation を返すことです。

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

説明

status:waiting-for-triage type:bug
Describe the bug

I'm fetching Search estimate statistics in Purview using the following call:

EdiscoveryEstimateOperation estimateOperation = client.security()
                .cases()
                .ediscoveryCases()
                .byEdiscoveryCaseId(caseId)
                .searches()
                .byEdiscoverySearchId(searchId)
                .lastEstimateStatisticsOperation()
                .get();

This consistently fails with the following error:

java.lang.IllegalArgumentException: Collection is empty
    at java.base/java.util.EnumSet.copyOf(EnumSet.java:177)
    at com.microsoft.kiota.serialization.JsonParseNode.getEnumSetValue(JsonParseNode.java:257)
    at com.microsoft.graph.beta.models.security.EdiscoveryEstimateOperation.lambda$getFieldDeserializers$6(EdiscoveryEstimateOperation.java:41)
    at com.microsoft.kiota.serialization.JsonParseNode.assignFieldValues(JsonParseNode.java:280)
    at com.microsoft.kiota.serialization.JsonParseNode.getObjectValue(JsonParseNode.java:192)
    at com.microsoft.kiota.http.OkHttpRequestAdapter.send(OkHttpRequestAdapter.java:322)
    at com.microsoft.graph.beta.security.cases.ediscoverycases.item.searches.item.lastestimatestatisticsoperation.LastEstimateStatisticsOperationRequestBuilder.get(LastEstimateStatisticsOperationRequestBuilder.java:61)
    at com.microsoft.graph.beta.security.cases.ediscoverycases.item.searches.item.lastestimatestatisticsoperation.LastEstimateStatisticsOperationRequestBuilder.get(LastEstimateStatisticsOperationRequestBuilder.java:47)

It seems like response deserialization isn't working correctly, probably for the statisticsOptions field? It might be relevant that there doesn't seem to be any way to specify statisticsOptions when triggering statistics generation through the API.

Expected behavior

I expect this SDK call to successfully return an EdiscoveryEstimateOperation for the given search.

How to reproduce

I'm starting statistics generation with the following call:

client.security()
                .cases()
                .ediscoveryCases()
                .byEdiscoveryCaseId(caseId)
                .searches()
                .byEdiscoverySearchId(searchId)
                .microsoftGraphSecurityEstimateStatistics()
                .post();

Fetching statistics with the call listed above then triggers the bug.

SDK Version

beta 6.61.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
主要言語
Java
スター
444
フォーク
154
平均マージ
18時間 28分
マージ済み PR(30日)
4

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

microsoftgraph/msgraph-sdk-java のほかの issue

microsoftgraph/msgraph-sdk-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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