microsoftgraph / microsoftgraph/msgraph-sdk-java

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

Open
#1,962 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
444
Forks
154
Avg merge
18h 28m
Merged PRs (30d)
4

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the graphSitePage SDK entry point named in the example and review the functional tests under src/test/java/com/microsoft/graph/functional. Compare the available operations with the documented site-page publish endpoint. Done means the Java SDK supports publishing a created page and a test covers the operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.