Site `search` query parameter is inconsistent between SDK and Graph Explorer
まだ誰も着手していません。
評価
調査の方向性
まず、Graph Explorer と SDK バージョン 6.33.0 で /v1.0/sites リクエストを再現し、認証情報とシリアライズされた検索クエリを比較します。差異が Java SDK のリクエストにあるのか、Graph API の動作にあるのかを追跡します。担当コンポーネントと、一貫した動作または文書化された制限が確立されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When using Graph Explorer, the API endpoint https://graph.microsoft.com/v1.0/sites returns nothing.
With Graph Explorer, it appears that using ?search=* works to return all sites.
When using the SDK, the same endpoint returns sites, and specifying queryParameters.search = "*" throws:
Syntax error: character '*' is not valid at position 0 in '*'.
com.microsoft.graph.models.odataerrors.ODataError: Syntax error: character '*' is not valid at position 0 in '*'.
based on the response:
{
"error": {
"code": "BadRequest",
"message": "Syntax error: character '*' is not valid at position 0 in '*'.",
"innerError": {
"date": "2025-03-31T18:56:12",
"request-id": "f29db1f9-b0d7-4d4b-a724-7599a932bcca",
"client-request-id": "fb1f170c-a4c0-4eb6-bb8c-852e3d3c7762"
}
}
}
These inconsistencies (along with issues like #2344 and #2345 ) make it very difficult to sanely develop applications using the MS Graph SDK.
One difference is that I am using client cert / secret credentials for the SDK and personal credentials for Explorer. That should not affect the API's functional behavior though.
Expected behavior
APIs should have consistent behavior.
How to reproduce
See above.
SDK Version
6.33.0
Latest version known to work for scenario above?
No response
Known Workarounds
Pull out hair, write code with many "argh" comments, and proceed
Debug output
No response
Configuration
No response
Other information
No response
- 主要言語
- Java
- スター
- 444
- フォーク
- 154
- 平均マージ
- 18時間 28分
- マージ済み PR(30日)
- 4
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/msgraph-sdk-java のほかの issue
-
status:waiting-for-triage type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoftgraph/msgraph-sdk-java#2610 ·
-
status:waiting-for-triage type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
microsoftgraph/msgraph-sdk-java#2656 ·
-
status:waiting-for-triage type:bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
microsoftgraph/msgraph-sdk-java#2654 ·
-
status:waiting-for-triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoftgraph/msgraph-sdk-java#2639 ·
-
status:waiting-for-triage type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
microsoftgraph/msgraph-sdk-java#2589 · コメント 1 件 ·
microsoftgraph/msgraph-sdk-java の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
Two open-case totals on one screen: the Programs tile says 15,858 and the nav badge says 15,868 オープンbug frontend maui-pilot
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
objectionary/eo-graphs#74 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100