microsoftgraph / microsoftgraph/msgraph-sdk-java
Microsoft Graph Java SDK v.6.16.0 return empty site list with "*" and ""(empty) search query parameter
未关闭
还没有人认领这个 Issue。
Status: Needs Investigation
- 主要语言
- Java
- 星标
- 444
- 派生
- 154
- 平均合并
- 18 小时 28 分钟
- 30 天内合并 PR
- 4
描述
Describe the bug
Create GraphServiceClient with UsernamePasswordCredential provider
var provider = new UsernamePasswordCredentialBuilder()
.clientId("client_id")
.username("username")
.password("password");
var graphClient = new GraphServiceClient(provider);
Call graphClient.sites().get().getValue()
Expected result: receive a list of the sites
Actual result: an empty list was returned without any error.
GraphServiceClient with ClientSecretCredential provider works as expected on graphClient.sites().get().getValue() call.
SDK Version
6.16.0
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 UsernamePasswordCredentialBuilder 通过 GraphServiceClient.sites().get().getValue() 重现该问题,然后将其与 ClientSecretCredential 进行比较。调查 SDK 在每个凭据提供程序下如何处理空的或 "*" 的站点搜索查询。当 username/password 流程返回预期的站点列表,且未导致 client-secret 流程回归时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- api, authentication
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100