Closed
Description
Which Umbraco version are you using?
13.9.0
Bug summary
Upgraded Umbraco to latest v13 release and on startup (local dev environment) the following error is occuring:
The DELETE statement conflicted with the REFERENCE constraint "FK_umbracoExternalLoginToken_umbracoExternalLogin_id".
Full stack trace indicates this is happening because it's attempting to delete External Login Providers on startup, even though no configuration has changed - the relevant stack trace locations are:
at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.ExternalLoginRepository.DeleteUserLoginsForRemovedProviders(IEnumerable`1 currentLoginProviders)
at Umbraco.Cms.Core.Services.ExternalLoginService.DeleteUserLoginsForRemovedProviders(IEnumerable`1 currentLoginProviders)
at Umbraco.Cms.Web.BackOffice.Security.BackOfficeExternalLoginProviders.InvalidateSessionsIfExternalLoginProvidersChanged()
at Umbraco.Cms.Web.BackOffice.NotificationHandlers.ExternalLoginProviderStartupHandler.Handle(UmbracoApplicationStartingNotification notification)
We do not have any back-office external login providers registered, just cloud identity; we do have a provider registered for members only.
Specifics
See summary
Steps to reproduce
- Upgrade umbraco from 13.8.1 to 13.9.0
- Launch the website locally
Expected result / actual result
No response