-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
None
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
Error reproduced with SharePoint Online REST API and Graph API (_api/v2.0)
Describe the bug / error
Since yesterday I have customers reporting an error when trying to resolve the default document library in a site using the SharePoint Online rest API and graph API. This appears to be a breaking change that has been released in to SharePoint Online live and affecting more tenants as the change is rolled out.
This is the affected REST API:
https://DOMAIN.sharepoint.com/sites/SITE/_api/Web/DefaultDocumentLibrary
and the affected graph API:
https://DOMAIN.sharepoint.com/_api/v2.0/sites/DOMAIN.sharepoint.com:/sites/SITE:/drive
Where they were returning the default document library, suddenly, they fail with:
"A default document library could not be found in this site"
and
"The resource could not be found"
If this breaking change has not been deployed in to your SharePoint Online tenant yet then you won't see this behaviour reproduced. So far I have 3 different Office 365/SharePoint Online tenants reporting this error.
Steps to reproduce
Open Microsoft Edge browser.
Sign in to a site:
https://DOMAIN.sharepoint.com/sites/YOURSITE
then change the URL to:
https://DOMAIN.sharepoint.com/sites/YOURSITE/_api/Web/DefaultDocumentLibrary
and hit return.
Expected behavior
the API should return correctly with the default document library.