-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
sharepoint-developer-supportsharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
Windows
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
No response
Describe the bug / error
GET request to /_api/SPSiteManager/status for a non-existent Site URL appears to now be returning a Status Code value of '1' (i.e., Provisioning) as opposed to expected Status Code value of '0' (i.e., Not Found), as per status code definitions here.
Note that this API call was correctly returning Status Code '0' until last week, and appears to have started returning a different response as of Friday 3/27.
Steps to reproduce
- Establish a PnP PowerShell session with at-least
Writeaccess to the root site in tenant. - Invoke PnP PS cmdlet (or you can use any other method to invoke a GET request to SPO REST API)
Invoke-PnPSPRestMethod -Method Get -Url "https://tenant.sharepoint.com/_api/SPSiteManager/status?url='https://tenant.sharepoint.com/sites/doesnotexist'"Expected behavior
Expected response is:
| SiteId | SiteStatus | SiteUrl |
|---|---|---|
| 0 |
Received response is:
| SiteId | SiteStatus | SiteUrl |
|---|---|---|
| 1 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
sharepoint-developer-supportsharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.