Not able to log in to User Interface after updating of Architect to master version no. 7147

Preconditions
I updated Architect to master 7147 and docker as well.

Steps to reproduce

  1. I was trying to log into User Interface.
  2. I put login and password, pressed “Přihlásit”.

Expected result
I will be logged in.

Current result
A text “Objevila se neočekávaná chyba. Kontaktujte prosím podporu.” has appeard and it is not possible to enter the User Interface.

The error in Docker:

2021-04-14 14:48:01,628 [38] ERROR Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware - An unhandled exception has occurred while executing the request.
System.ArgumentException: Column ‘SessionId’ does not belong to table OrigamIdentityGrant.
at System.Data.DataRow.GetDataColumn(String columnName)
at System.Data.DataRowExtensions.SetField[T](DataRow row, String columnName, T value)
at Origam.ServerCore.Authorization.PersistedGrantStore.StoreAsync(PersistedGrant grant) in D:\a\1\s\Origam.ServerCore\Authorization\PersistedGrantStore.cs:line 82
at IdentityServer4.Stores.DefaultGrantStore1.StoreItemAsync(String key, T item, String clientId, String subjectId, String sessionId, String description, DateTime created, Nullable1 expiration, Nullable1 consumedTime) at IdentityServer4.Stores.DefaultGrantStore1.CreateItemAsync(T item, String clientId, String subjectId, String sessionId, String description, DateTime created, Int32 lifetime)
at IdentityServer4.ResponseHandling.AuthorizeResponseGenerator.CreateCodeFlowResponseAsync(ValidatedAuthorizeRequest request)
at IdentityServer4.ResponseHandling.AuthorizeResponseGenerator.CreateResponseAsync(ValidatedAuthorizeRequest request)
at IdentityServer4.Endpoints.AuthorizeEndpointBase.ProcessAuthorizeRequestAsync(NameValueCollection parameters, ClaimsPrincipal user, ConsentResponse consent)
at IdentityServer4.Endpoints.AuthorizeCallbackEndpoint.ProcessAsync(HttpContext context)
at IdentityServer4.Endpoints.AuthorizeCallbackEndpoint.ProcessAsync(HttpContext context)
at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)
at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)
at IdentityServer4.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

It seems you did not update the Root model. You need to replace the Root, Security and Root Menu packages from the model stored in the current Root model (you can find it in C:\Program Files (x86)\ORIGAM\ORIGAM Architect (version)\Project Templates\Default\Model folder.

  1. Delete the mentioned folders from your model
  2. Copy updated folders from inside the DefaultModel.zip
  3. Open Architect
  4. Open your package
  5. After being asked if you want to execute update scripts, select Yes.
1 Like