Category
Describe the bug
On a freshly created tenant, executing
context.GetSiteCollectionManager().GetSiteCollectionWithDetailsAsync(url)
fails with a 404 not found error. The issue appears to be related to MS allowing longer list URL's. The hidden lists on the admin site are now:
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECOLLECTIONS
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_SITES_AGGREGATED_SITECOLLECTIONS
instead of:
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECO
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_SITES_AGGREGA
Steps to reproduce
- Create a net new tenant (use a trial tenant)
- Execute the following code:
using (var context = await builder.GetContext(adminUrl).ConfigureAwait(false)) { var site = await context.GetSiteCollectionManager().GetSiteCollectionWithDetailsAsync(url) .ConfigureAwait(false); }
- See error
Expected behavior
The sites details are returned.
Environment details (development & target environment)
- SDK version: 1.14.0
- OS: Windows 11 Enterprise
- SDK used in: Console
- Framework: .Net 8.0
- Tooling: Visual Studio 2022 R2
Additional context
The URL's appear to be hard coded.
string sitesInformationListAllUrl = "DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_SITES_AGGREGA";
string sitesInformationListUrl = "DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECO";
Category
Describe the bug
On a freshly created tenant, executing
context.GetSiteCollectionManager().GetSiteCollectionWithDetailsAsync(url)fails with a 404 not found error. The issue appears to be related to MS allowing longer list URL's. The hidden lists on the admin site are now:
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECOLLECTIONS
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_SITES_AGGREGATED_SITECOLLECTIONS
instead of:
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECO
https://[tenant]-admin.sharepoint.com/Lists/DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_SITES_AGGREGA
Steps to reproduce
using (var context = await builder.GetContext(adminUrl).ConfigureAwait(false)) { var site = await context.GetSiteCollectionManager().GetSiteCollectionWithDetailsAsync(url) .ConfigureAwait(false); }Expected behavior
The sites details are returned.
Environment details (development & target environment)
Additional context
The URL's appear to be hard coded.