microsoftgraph / microsoftgraph/msgraph-sdk-java

Not able to publish a SharePoint page, so created page is stuck in "Checked out"

未关闭
#1,962 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Java
星标
444
派生
154
平均合并
18 小时 28 分钟
30 天内合并 PR
4

描述

Expected behavior

Based on the API documentation here:
https://learn.microsoft.com/en-us/graph/api/sitepage-publish?view=graph-rest-1.0

I would expect this code to compile:

client.sites().bySiteId(ms.getSiteId()).pages()
	.byBaseSitePageId("0eb44212-1667-41bb-b200-d41689ffddc8")
	.graphSitePage()
	.publish();
Actual behavior

I can only do a GET from the graphSitePage point in the SDK, there is no publish() method.

Steps to reproduce the behavior

Use the POST to create a site page and then try to publish it via the SDK.
This is important because I used a app client secret, not myself, so I can't "see" the page in the Sharepoint UI when I log in as myself.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从示例中指定的 graphSitePage SDK 入口点开始,并检查 src/test/java/com/microsoft/graph/functional 下的功能测试。将可用操作与文档中说明的 site-page publish endpoint 进行比较。完成的标准是 Java SDK 支持发布已创建的页面,并且有一个测试覆盖该操作。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。