Hyperlink getting scrambled with graph java sdk upload API.
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
- Use the java API attached in the code to upload the file attached to sharepoint
- Notice the link getting scrambled after uploading to sharepoint.
- Directly uploading to sharepoint using their UI it doesn't get scambled. It happens only through the graph java sdk
- 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
We are still facing same issue.
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