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
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
Write access 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 |
|
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
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
Writeaccess to the root site in tenant.Expected behavior
Expected response is:
Received response is: