microsoftgraph / microsoftgraph/msgraph-sdk-java
PostRequestConfiguration doesn't allow setting of query parameters
未关闭
还没有人认领这个 Issue。
status:waiting-for-triage
type:bug
- 主要语言
- Java
- 星标
- 444
- 派生
- 154
- 平均合并
- 18 小时 28 分钟
- 30 天内合并 PR
- 4
描述
Describe the bug
When getting a list of users by IDs it is possible to filter and select further with the use of query paramters (same as the get request for all / one user). Unfornuately the Java SDK doesn't allow that. The PostRequestConfiguration only allows to modify the headers of the request.
Expected behavior
Same as the get request:
List<DirectoryObject> page = graphServiceClient.users().getByIds().post(body, config -> {
config.queryParameters.select = new String[] {"onPremisesSamAccountName", "userPrincipalName",
"department"};
}).getValue();
How to reproduce
see above
SDK Version
6.36.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Configuration
No response
Other information
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 Java SDK 的 PostRequestConfiguration 和 users().getByIds().post 请求路径。将其配置处理与对应的 GET 请求进行比较,然后添加测试覆盖,表明可以提供 select 等查询参数并将其应用于请求。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100