Our environment:
SP2016 farm with only one webapplication (eg. mysites are in the same webapp)
Host Named Site Collections
Two authN methods: Default Zone/Windows authentication (for search and service accounts) and Internet Zone/ADFS authentication (for end users)
End users come through F5 loadbalancer (SSL Offloading) to FrontEnd servers with dedicated IPs and they use Internet Zone
Office Online Server (latest version)
We've had several issues with Onedrive sites since the beginning and at first we were using Onedrive with the classic experience. Later on we switched to modern experience but that brought even more issues with Onedrive.
Here's a list of the behaviors with Classic Onedrive Experience and Modern Onedrive Experience:
Classic Onedrive Experience: (https://mysite-sharepoint.com/personal/usernamehere/Documents/Forms/All.aspx)
We modified the intranet's suitebar earlier so that the OOTB "Sharepoint" text was changed to display our intranet name and added a link to our intranet home page + added the company logo. Suitebar shows that information correctly
"Recent" page show only Word documents and there are inconsistencies how the document's name is displayed. It can be the filename, document's header or the latest text in the document.
"Shared with me" page is working correctly
Modern Onedrive Experience: (https://mysite-sharepoint.com/personal/usernamehere/_layouts/15/onedrive.aspx)
Suitebar does not show the information we modified earlier instead it shows the OOTB information. So it show the OOTB "Sharepoint" text and theres no link to homepage and no company logo. We didn't find a way to modify those in Modern Onedrive Experience page.
"Recent" page works fine except Tile-view shows document's headers instead of filenames. List-view shows filenames.
"Shared with me" page loads up normally IF there isn't any documents shared with me. Right after someone shares a document with me that "Shared with me" page throws an error “Something wen’t wrong. Please try again or refresh the page.” with a picture of a flat tire. It also gives correlation id and here is some of the lines I picked up from ULS viewer:
Didn't find property with name SharedWithUsersOWSUSER in schema id 0 for tenant xxxxxxxxxxxxxxxxxxxxxxxxx site collection xxxxxxxxxxxxxxxxx in index system xxxxxxxxxxxxxxxxx (I added the x:ses)
Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedClientSideAppUpdateTimeCache' - Exception 'System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
Microsoft.SharePoint.Portal.UserProfiles.SharedWithMeViewWorker.GetSharedWithMeDocs. Exception=System.IndexOutOfRangeException: Index was outside the bounds of the array.
So anyone got an idea where to start looking?