Activities of "joey73"

  • Exception message and full stack trace: Category: Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter EventId: 0 SpanId: 605708dfb57b10ff TraceId: b05b96c021d044380123f354b3da735f ParentId: 0000000000000000 RequestId: 800218e9-0000-e900-b63f-84710c7967bb RequestPath: /Admin/Home ActionId: 4bd4df1e-c853-4862-bf28-3efacc744a05 ActionName: /Home/Index ---------- RemoteServiceErrorInfo ---------- { "code": "Volo.Authorization:010001", "message": "Authorisation failed! Given policy has not granted.", "details": null, "data": {}, "validationErrors": null }

*Category: Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter EventId: 0 SpanId: 605708dfb57b10ff TraceId: b05b96c021d044380123f354b3da735f ParentId: 0000000000000000 RequestId: 800218e9-0000-e900-b63f-84710c7967bb RequestPath: /Admin/Home ActionId: 4bd4df1e-c853-4862-bf28-3efacc744a05 ActionName: /Home/Index Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown. Exception: Volo.Abp.Authorization.AbpAuthorizationException: Exception of type 'Volo.Abp.Authorization.AbpAuthorizationException' was thrown. at Microsoft.AspNetCore.Authorization.AbpAuthorizationServiceExtensions.CheckAsync(IAuthorizationService authorizationService, AuthorizationPolicy policy) at Volo.Abp.Authorization.MethodInvocationAuthorizationService.CheckAsync(MethodInvocationAuthorizationContext context) at Volo.Abp.Authorization.AuthorizationInterceptor.AuthorizeAsync(IAbpMethodInvocation invocation) at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Steer73.projIT.Web.Pages.Vacancies.IndexModelBase.OnGetAsync() in D:\a\1\s\src\Steer73.projIT.Web\Pages\Vacancies\Index.cshtml.cs:line 103 at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.NonGenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync() at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync() at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

Category: Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter EventId: 0 SpanId: 605708dfb57b10ff TraceId: b05b96c021d044380123f354b3da735f ParentId: 0000000000000000 RequestId: 800218e9-0000-e900-b63f-84710c7967bb RequestPath: /Admin/Home ActionId: 4bd4df1e-c853-4862-bf28-3efacc744a05 ActionName: /Home/Index Code:Volo.Authorization:010001

------------------------------------------------End Exception--------------------------------------------------

We have created a project which uses AzureOpenId(OpenIdConnect) to allow users to login through Azure entra. Currently hosted in our own environment everything works correctly. We are building this for someone and have setup the same infrastructure within their own portal. Everything is working as a normal user when you login through u/n p/w. However logging in through AzureOpenId is working, but it appears we are getting the above issues. We also receive this on occassion

An error was encountered while handling the remote login. Message contains error: 'invalid_grant', error_description: 'AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access ', error_uri: 'https://login.microsoftonline.com/error?code=50076'

It's like AzureOpenId is not refreshing properly. I'm trying to prove whether this is a setup issue on the AppRegistration which I can't see. Or something that ABP/OpenId is doing.

Can you help at all and is there any potential further logging I can do to try and get down to the bottom of this.

  • ABP Framework version: v8.3.3
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Steps to reproduce the issue:

Hi,

We appear to be having an issue with toolbars not refreshing their state, or not removing themselves. Not really too sure, hence the support ticket.

We have a list page which works great and we have a new entity button which brings up the modal. We then do two different things, once the entity is complete we direct them to the edit page or we have an action added to the actions button in the grid to edit which will take you to a full page edit NOT a modal. When either of these happen the toolbar is left on the page, we end up having the title and the exportToExcel/NewEntity buttons. If we reload the page forcibly it works.

Any help on this would be appreciated

This is how we are setting the toolbar items on the list page:

        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            if (firstRender)
            {
                await SetBreadcrumbItemsAsync();
                await SetToolbarItemsAsync();
                await InvokeAsync(StateHasChanged);
            }
        }
        protected virtual ValueTask SetToolbarItemsAsync()
        {
            Toolbar.AddButton(L["ExportToExcel"], async () =>{ await DownloadAsExcelAsync(); }, IconName.Download);
            
            Toolbar.AddButton(L["NewDesign"], async () =>
            {
                await OpenCreateDesignModalAsync();
            }, IconName.Add, requiredPolicyName: ManagementPermissions.Designs.Create);

            return ValueTask.CompletedTask;
        }

This is our navigation to the edit page, again nothing too complicated

        private async Task NavigateToEditDesign(Guid designId, bool showEditModalOnLoad = false)
        {
            var url = $"/editdesign/{designId}";
            if (showEditModalOnLoad)
            {
                url += "?showEditModalOnLoad=true";
            }
            NavigationManager.NavigateTo(url);
        }

For the output we then see the below which is correct

Once navigation happens, we then see the below which is wrong and our edit page

Thank you

Alex

Hi,

I'll get back to you on this as soon as possible, I need to see if it is something we can action.

Thanks

Hi,

No problem. Also a little bit more information, I am struggling to produce this running the solution locally. However when we deploy our solution to our Azure dev environment it is happening every time. I have tried to remove all the local libs and node_modules and re-ran abp-install libs. However I can't replicate it. I did notice that the deployed version has 2.1.8 but locally it appears to install 2.1.6. Not sure if that is relevant though.

This is what we are seeing though, this is on the initial DataGrid load (page 1 )

If we navigate to page 2 though we get this, as you can see the columns have not adjusted themselves correctly

Hi,

Reporting back on this, the code you provided fixes one part of the issue, which are the icons in the column header. However I am still seeing the issue with the weird column widths. I can probably workaround this for now by doing something like this

table.columns.adjust().draw()

I assume this is supposed to get redrawn though. Do I need to open another ticket about this, it was inn my original post

Thanks

Sent across, please do let me know if you need anything else, I did remove node_modules in the web project, so you may need to run yarn/npm or the abp install libs again

Hi,

When you say a template project, you want me to zip up and send over the solution as a file. I think it will be quite big to send over email, so I can send a link to somewhere to download it from.

Another note to, I'm not sure if this problem happens if you generate a 8.3.2 project or if it is happens when you update from 8.2 to 8.3 for example.

We have also noticed there are double loading indicators on the table, which I assume is part of this problem too as it is all to do with the datatables

Thanks

  • ABP Framework version: v8.3.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server)

Hi I had a look at the bugs thread for 8.3 and on the search but couldn't find anything discussing this. We have a problem with datatables, duplicate icons and column width. Initially we assumed it was to do with some CSS we may have overrode or some specific JavaScript, however I created a new solution, currently with the abp suite (not studio), as that is how we created the project we are working. The datatables have the same problem with a new solution on version 8.3.2. I beleive 8.2.* was fine and in 8.3 it seems the datatables was updated by a major version

The first issue is there are duplicate sort icons and one of the icons does not change at all when clicking the column header:

Secondly, when using the pagination, the columns get slightly messed up and it looks like text is in the wrong column. If you resize the window, the data table does refresh and correct it somewhat

Page 1

Navigate to page 2

Is there anything we can do to work around this, is this something on your radar? Can you reproduce from a fresh project.

Thanks

Hey,

Thanks for this, didn't think to try it through jQuery, it must be part of the lifecycle when listening to multiple events which makes sense

Thanks.

Question
  • ABP Framework version: v8.3.0
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Steps to reproduce the issue:

Hi,

We are looking for some assistance in understanding how I can run some JavaScript on submit of the form before the form is actually posted. We have converted the modal to a normal page and at the moment the form is being submitted via ajax still. This is all working correctly.

We have then implemented a RichTextEdtior. On save of the form we want to take the contents of the editor and ensure it is placed as the value of a hidden input, so this gets passed to the server correctly. The way we have gone about this is to try and use the "submit" event listener. Something like the below

            form.addEventListener('submit', function (event) {
                // Prevent the default form submission
                event.preventDefault();

                const desc = document.querySelector('input#Description');
                desc.value = editor.innerHTML;

                //submit the form
                ...
            });

Whether this is the best way to set the contents is debatable, however the question is how can handle stuff before the form is submitted. As preventDefault appears to be too late or getting missed due to it being submitted through ajax. So both the server and onsubmit function get called at the same time. Looking through the docs,I can't seem to find anything about handling this situation. As I imagine there are some scripts somewhere handling the posting of these forms.

One thing we can look to do is to set it on change, however that seems less performant. Is there any hook within the way ABP do things that I can listen to. Or would maybe changing this to a server side post worthwhile investigating and is there any guidance for that

Thanks for your assistance

Alex

Showing 1 to 10 of 14 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on August 28, 2025, 08:29