msgraph-sdk-java icon indicating copy to clipboard operation
msgraph-sdk-java copied to clipboard

Hyperlink getting scrambled with graph java sdk upload API.

Open sandeepda30 opened this issue 3 years ago • 1 comments

We are using documents with hyperlinks to upload to SharePoint. The links get scrambled after uploading to sharepoint from graphAPI. This works fine if I directly upload from UI to SharePoint. But if we use graph API to upload the file the hyperlinks get scrambled. This happens on a specific document. A hyperlink points to the source of some other link in the same document.Let's say foo-->https://microsoft.com/ and bar-->google.com After uploading to SharePoint foo-->google.com and bar-->microsoft.com. I have added the code used to upload to SharePoint using graph API.

Expected behavior

Hyperlinks should not get scrambled and link should remain intact.

Actual behavior

Hyperlinks getting scrambled

Steps to reproduce the behavior

  1. Use the java API attached in the code to upload the file attached to sharepoint
  2. Notice the link getting scrambled after uploading to sharepoint.
  3. Directly uploading to sharepoint using their UI it doesn't get scambled. It happens only through the graph java sdk
  4. This happens with this particular document attached below hence attaching the source.

Sample Java code UploadFileSample.txt File which need to be used: testupload.docx

sandeepda30 avatar Jun 21 '22 14:06 sandeepda30

We are still facing same issue.

sandeepda30 avatar Jul 18 '22 20:07 sandeepda30

Closing as this is a service side issue we can't address at the SDK. you may try posting the question at https://developer.microsoft.com/en-us/graph/support

ddyett avatar Mar 08 '23 23:03 ddyett