Exception "Dangling name: extfq0cslxr_adminschemakey" when updating schema extension values
还没有人认领这个 Issue。
评估
调研方向
首先,使用 Microsoft Graph SDK 6.10.0 复现 Microsoft 文档中的架构扩展更新,并将其与报告中可正常工作的 5.x 行为进行比较。跟踪直接更新时 additionalData 的序列化方式以及“Dangling name”异常的抛出位置,然后验证文档所述的更新无需 UntypedNode workaround 即可成功。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
I referred to the Microsoft documentation(https://learn.microsoft.com/en-us/graph/extensibility-overview?tabs=java) on schema extensions and tried using the provided code to update schema extension values directly. However, I encountered an exception with the message "Dangling name: extfq0cslxr_adminschemakey".
I am seeking a way to improve performance and avoid the exception by using direct filters to retrieve and update schema extension values.
Expected behavior
The schema extension values should be updated without any exceptions.
How to reproduce
Steps to Reproduce:
- Use the Microsoft Graph dependency with version 6.x.
- Refer to the following document to update the schema extension value on a particular group.
-Use the provided Java code:
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
User user = new User();
HashMap<String, Object> additionalData = new HashMap<String, Object>();
extkmpdyld2GraphLearnCourses = new ();
extkmpdyld2GraphLearnCourses.setCourseType("Instructor-led");
extkmpdyld2GraphLearnCourses.setCourseId(null);
additionalData.put("extkmpdyld2_graphLearnCourses", extkmpdyld2GraphLearnCourses);
user.setAdditionalData(additionalData);
User result = graphClient.users().byUserId("{user-id}").patch(user);
Encounter the following exception message while updating the value: "Dangling name: extfq0cqexr_adminschema".
SDK Version
6.10.0
Latest version known to work for scenario above?
5.x
Known Workarounds
Below Code works :
GraphServiceClient graphClient = GraphClientBuilder.getGraphClient();
Map<String, UntypedNode> map = new HashMap<>();
Map<String, Object> additionalData = new HashMap<>();
UntypedString productId = new UntypedString(group.getProductId());
UntypedString productAdminGroupId = new UntypedString("xxx-xx");
UntypedString linkedOrgGroupId = new UntypedString("xxx-xx-xxx);
UntypedBoolean adminGroup = new UntypedBoolean(true);
map.put("productId", productId);
map.put("productAdminGroupId", productAdminGroupId);
map.put("linkedOrgGroupId", linkedOrgGroupId);
map.put("adminGroup", adminGroup);
UntypedObject untypedObject = new UntypedObject(map);
additionalData.put(DIConstants.GROUP_ADDITIONAL_ATTRIBUTES_SCHEMA_KEY, untypedObject);
updateGroup.setAdditionalData(additionalData);
graphClient.groups().byGroupId(groupId).patch(updateGroup);
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
I'm currently using the workaround code,but the following code is impacting the performance of APIs.So i'm looking for the direct filters from graph SDK
- 主要语言
- Java
- 星标
- 444
- 派生
- 154
- 平均合并
- 18 小时 28 分钟
- 30 天内合并 PR
- 4
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 Java Platform: Java
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-java#6138 · 1 条评论 ·
-
bug needs triage p2
难度 2/5 1-3 小时 新手友好度 78/100
GoogleCloudPlatform/DataflowTemplates#4273 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 76/100
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 76/100