OneNote /content API: mishandles top-level bullet points

Open
#1,948 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Domain
api

Research direction

Start by reproducing the page-content request in Graph Explorer using the URL and permissions steps provided, then compare the returned HTML with the expected placement and duplicate headings. Done means confirming whether the fault is in the OneNote API rather than the JavaScript SDK and identifying an actionable SDK scope or routing the report to the appropriate API team.

Written by the indexing model from the issue text.

Description

status:waiting-for-triage type:bug
Describe the bug

I am trying to fetch the contents of a OneNote page, but the returned HTML is wildly wrong.

The page content I am requesting is:
https://graph.microsoft.com/v1.0/me/onenote/pages/0-98683d224e7e8f42b68681de32a02303!1-B4848BE9A8709757!s22b27c7557ff4cdea36df6219d76f605/content?includeInkML=true

Expected behavior

I would expect the content returned from the content API to have all the content in the right place and for there to be no duplicates. I'm seeing content in the wrong place, and I'm seeing h1 headings being duplicated at the end of the content.

How to reproduce
  1. go to graph explorer
  2. sign-in as me if possible???? or replicate my note from the screenshot above in your own notebook?
  3. "Modify Permissions" -> consent to OneNote permissions
  4. execute a query for my page, e.g. https://developer.microsoft.com/graph/graph-explorer?request=me%2Fonenote%2Fpages%2F0-98683d224e7e8f42b68681de32a02303!1-B4848BE9A8709757!s22b27c7557ff4cdea36df6219d76f605%2Fcontent&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com

Image

SDK Version

3.0.7

Latest version known to work for scenario above?

No response

Known Workarounds

Edit the content to fix the top-level list items and indent them:

Image

This content, with all the bullets indented, fixes the html output

Debug output

n/a

Configuration

n/a

Other information

This is a OneNote API bug and not the JS SDK's fault, since I can reproduce in graph explorer. If there's a way to submit a OneNote API bug let me know.

Dominant language
TypeScript
Stars
833
Forks
240
PR merge metrics
No merged PRs in 30d

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.

More from microsoftgraph/msgraph-sdk-javascript

All issues in microsoftgraph/msgraph-sdk-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.