Open fishinstew opened 4 years ago
@JeremyKelley This appears to be an issue with SharePoint+Graph service when creating an anonymous sharing link.
Thank you for reporting this issue. This appears to be an issue or limitation with the service APIs. Unfortunately, as the Microsoft Graph SDK team, we do not have ownership of the APIs that are causing you issues. We invite you to create a question about the service API to Microsoft Q&A and tagged with one of the [microsoft-graph-*] tags, that way it will get routed to the appropriate team for them to triage:
https://aka.ms/msgraphsupport or directly https://aka.ms/askgraph
For now, we will close the issue on our side but feel free to open it in the relevant repository if you think the issue is specific to SDK. Please let us know if this helps!
Note: We will close this repository on April 19, 2024.
While providing an _itemId to Graph an improper query is executed vs SharePoint and an incorrect error is bubbled up through Graph.
Steps To Reproduce: With an authenticated Microsoft.Graph.GraphServiceClient, perform the following action vs a SharePoint site with > 5,000 items.
await GraphClient.Sites[_siteId].Drives[_driveId].Items[_fileId].CreateLink("view", "anonymous").Request().WithMaxRetry(0).PostAsync();
Observations:
Graph returns an HTTP Status code of 429 and an error code of "throttledRequest" with a message of "The request has been throttled".
The premier support rep for SharePoint stated that the query being sent by graph prior to attempting to get link was an improper 'recrusive' query causing a ListViewThreshold error. He stated that it should be sending a more simple/direct query to get the item by the provided id:
`
`
Expected Behavior: