Home > Forum > Actions > Error in Menu Button - 2023 update (ver. 2023.1.2.99. / ver. 2023.1.2.123)

Error in Menu Button - 2023 update (ver. 2023.1.2.99. / ver. 2023.1.2.123)
0

Hi,

We have problem after update to ver. 2023.1.2.99.

We have implemented menu buttons for Help Desk and Printing. In 2022, every user who have acces to instance can push button and print form or start help desk (button in menu was accesable in every step or last steps etc).

After the update buttons apear on the form but after clicking there is error... and users cant use it. Is it new feature or is it a bug. It looks like some save restrictions - but it was not the case in 2022 ver.

Do you have any idea how to change it? Thanks.


msg: An unhandled exception has occurred while executing the request. |
ex: System.ServiceModel.Security.SecurityAccessDeniedException: Użytkownik nie ma prawa edytowania elementu WorkFlow
at WebCon.WorkFlow.BusinessLogic.BusinessLogic.ElementManagement.WorkFlowObject.WorkFlowObjectForElementFormCreator.CheckPermissions(CreateWorkFlowObjectParams createWorkFlowObjectParams, Boolean saveOnlyComments)
at WebCon.WorkFlow.BusinessLogic.BusinessLogic.ElementManagement.WorkFlowObject.WorkFlowObjectForElementFormCreator.CreateWorkFlowObject(CreateWorkFlowObjectParams createWorkFlowObjectParams, Boolean saveOnlyComments)
at WebCon.BPSCloud.Integration.Base.BusinessLogic.ElementManagement.Actions.PortalUserActionExecutor.ExecuteUserActionAsync(IElementForm form, MenuActionButton button, String formRowVersion)
at WebCon.BPSCloud.Core.WfDynamic.Services.ActionService.InvokeMenuActionAsync(InvokeMenuActionParameters param)
at WebCon.BPSCloud.Core.WfDynamic.WFDynamicLiteManager.InvokeActionAsync(InvokeMenuActionParameters formParameters)
at WebCon.BPSCloud.Portal.API.FormsController.InvokeMenuAction(InvokeMenuActionParameters param)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at WebCon.BPSCloud.Portal.Extensions.DebugInfo.DebugInfoMiddleware.Invoke(HttpContext context, IDebugInfoGetter debugInfoGetter, IPerformanceCounterFactory counterFactory, IFrontendTraceProvider formatter, IDefaultableDbInfoProvider defaultableDbInfoProvider, IUserCredentialsManager userCredentialsManager, IDebugInfoManager debugInfoManager, IHttpContext synchronizedHttpCtx)
at WebCon.BPSCloud.Portal.Performance.PerformanceMarkMiddleware.Invoke(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.LicenceSetupMiddleware.InvokeAsync(HttpContext context)
at JSNLog.JSNLogMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.RouteValuesTypeVerificationMiddleware.InvokeAsync(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.DesignerDesk.DesignerDeskActiveContextMiddleware.NotActive(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.DesignerDesk.DesignerDeskActiveContextMiddleware.InvokeAsync(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.RestApiLogging.RestApiLoggingMiddleware.Invoke(HttpContext context, IPerformanceCounterFactory counterFactory, IVersionPathParser versionParser, ICurrentUserProvider userProvider, IRestApiLoggingManager restApiLoggingManager)
at WebCon.BPSCloud.Portal.Extensions.RestApiLogging.RestApiStatusCodeMiddleware.Invoke(HttpContext context, IApiLogger apiLogger)
at WebCon.BpsCloud.IdentityServer.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events)
at WebCon.BpsCloud.IdentityServer.Hosting.MutualTlsTokenEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at WebCon.BpsCloud.IdentityServer.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.DesignerDesk.DesignerDeskContextMiddleware.InvokeAsync(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.MainContext.MainContextMiddleware.Invoke(HttpContext context, IDbRegistrator dbRegistrator, IHttpContextAccessor httpContextAccessor)
at WebCon.BPSCloud.Portal.Extensions.Transactions.TransactionManagerMiddleware.Invoke(HttpContext context, ITransactionMgrFactorySetter transactionMgrFactorySetter)
at WebCon.BPSCloud.Identity.MSOFBA.MSOFBAuthenticationMiddleware.Invoke(HttpContext context)
at WebCon.BPSCloud.Identity.Token.TokenEnforceMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

In reply to: Karol Częczek

Hi,
We reported a similar error related to a button that had a link action attached to it.
Same error with item permissions.
The fix is ​​released in version 2023.1.2.123
I don't know if this fix also covers your case.
Regards.

After the update to ver. 2023.1.2.123, the link action is working on button now - but further actions report an access failure error... and aditionaly the printout still does not work :(

On admin account everything works - that's why we did not spot this error before updating...

MVP
In reply to: Damian Kryński

After the update to ver. 2023.1.2.123, the link action is working on button now - but further actions report an access failure error... and aditionaly the printout still does not work :(

On admin account everything works - that's why we did not spot this error before updating...

Hi,

we have encountered the same problem with the html buttons. As we can’t update so easily we created an html field which replaces the „link button“.

Just in case someone jumps and to state, that you shouldn’t test with admin privileges:
You also don’t notice it, if you have only edit permissions. You encountered this, if you only have read permission.