Activities of "balessi75"

ABP Commercial 7.0.1 / Blazor Server / EF / Non tiered

We noticed that, if we extend a dependent module's entity with a new column (for example, adding an 'EmployeeId' property to the IdentityUser entity), the new property is listed in the gird, but it's sort does not work properly. It seems to sort for the first page of results, but the sort does not work across multiple page results.

Additionally, we noticed that Boolean columns in the dependent modules do not sort correctly either. For example, in the user listing, if we sort by 'Active' we would expect the inactive users to be listed first - instead the sort seems somewhat random.

ABP 7.0.1 Commercial / Blazor Server / EF / Separated IDS / Non-tiered

Hi, We extended the tenant entity to add a "Host" column which stores a tenant specific subdomain for each tenant (tenant1.domain.com) by following https://blog.antosubash.com/posts/abp-extend-tenant-with-custom-host

We then implemented the following tenant resolver:

	public override async Task ResolveAsync(ITenantResolveContext context)
	{
            var currentContextAccessor = context.ServiceProvider.GetRequiredService<IHttpContextAccessor>();
            var tenantRepository = context.ServiceProvider.GetRequiredService<IHostTenantRepository>();
      
            var host = currentContextAccessor?.HttpContext?.Request.Host.Host;

	    host = GetSubDomain(host);

            if (tenantRepository != null && !host.IsNullOrWhiteSpace())
            {
                var tenant = await tenantRepository.GetTenantByHost(host);
            
                if (tenant != null)
                {
                	context.TenantIdOrName = tenant.Name;
                }
            }
	}

Everything works as expected as we can login to each tenant with a tenant specific subdomain in the URL.

The problem we are finding though is that if we attempt to impersonate a tenant from the host, we are not redirected to the tenant's URL (tenant1.domain.com) instead we stay at at the host URL with no subdomain (domain.com).

Has this tenant impersonation issue ever come up with a basic tenant resolver based on subdomain? Any guidance, examples, or work arounds will be greatly appreciated as tenant impersonation and a custom tenant resolver are both requirements for us.

ABP 7.0.1 Commercial / Blazor Server / EF / Separated IDS / Non-tiered

Hi,

We are following the exact steps in the following blog post: https://blog.antosubash.com/posts/abp-extend-tenant-with-custom-host

The CustomTenantRepository in the example has the following method:

 public async Task<Tenant> GetTenantByHost(string host, CancellationToken cancellationToken = default)
    {
        var context = await GetDbContextAsync();
        var tenant =  context.Tenants.Where(u => EF.Property<string>(u, "Host") == host);
        return await tenant.FirstOrDefaultAsync(cancellationToken: cancellationToken);
    }

The problem we are having is that the context.Tenants.Where method appears to be querying the table AbpTenants instead of SaasTenants. The following SQL Server exception occurs: Invalid object name 'AbpTenants'.

Please advise. Thank you in advance.

ABP 7.0.1 Commercial / Blazor Server / EF / Separated Tenant and Host DBs / Non-tiered

Hi,

In order for developers to use local DBs without their local DB references being checked into source control, we attempted to use .NET's 'Manage User Secrets' feature for the DBMigrator project (secrets.json).

We are finding though that the framework still uses the connection string under the standard appsettings.json file for the DBMigrator project. When using the secrets.json feature under the Blazor project, everything works as expected. Is this by design or is there something we are missing with regards to the DBMigrator project?

Thanks in advance,

-Brian

ABP Commercial 7.0.1 / EF / Blazor Server / Separate Host and Tenant DBs / Non-tiered

Hi,

While testing our upgrade from 5.2.0 to 7.0.1, we found that on the 'My Account' -> 'Personal Info' area, when a phone number is changed and then saved, the 'Verify' button no longer appears and the user is no longer prompted to verify their phone number.

We confirmed the issue with a newly templated project, and found that in...

Volo.Account.Pro\src\Volo.Abp.Account.Pro.Public.Web\Pages\Account\Components\ProfileManagementGroup\PersonalInfo\Default.js

..the following 'false' parameter is now being passed to .serializeFormToObject in v7.0.1

var input = $("#PersonalSettingsForm").serializeFormToObject(false);

This is what seems to be causing the issue as we overrode Default.js and removed the false parameter (as it was in v5.2.0) and the problem is resolved.

Please advise if this is the correct workaround and if this will be fixed in the next version.

Thanks

ABP 7.0.1 Commercial / Blazor Server / EF / Separated Tenant and Host DBs/ Non-tiered

Hi, We are attempting to change the order of the tabs in the "My Account" area. To do so, we considered replacing/overriding the AccountProfileManagementPageContributor and overriding the ConfigureAsync method so that we can add the tab groups in a custom order. We found, however, that ConfigureAsync is not overridable (virtual).

Are we going about this correctly or is there another way to accomplish this? If not, we'd like to put in a request to make the ConfigureAsync method of AccountProfileManagementPageContributor overridable.

Thanks in advance!

ABP 7.0.1 Commercial / Blazor Server / EF / Separated Tenant and Host DBs/ Non-tiered

Hi, If a tenant admin sets two factor to be 'optional' for each user, what would be the recommended approach to defaulting each newly added/registered user to have two-factor turned on. Currently the framework defaults to each AbpUser having two-factor turned off.

Thanks in advance!

Abp Commercial 7.0.1 / Blazor Server / EF / Non-Tiered / Separate Auth server (OpenIddict)

Hi, We started testing the reCAPTCHA v2 functionality. Once we enabled reCAPTCHA in ABP and setup a proper site key and secret key, we noticed the following two items that appear to be a bug, but we wanted confirmation. We verified the functionality with a new blank abp solution created from 7.0.1 (Blazor Server).

Item 1: The recapcha prompt does not appear on login or register

Item 2: When clicking to login/register, the following shows, but the entire form is gone with no way to ever click the "I'm not a robot" button.

Abp Commercial 7.0.1 / Blazor Server / EF / Non-Tiered / Separate Auth server (OpenIddict)

We have successfully overridden the Register.cshtml and Register.cshtml.cs files. We would like, however, to use blazor components in these files, but they are written in MVC within Abp even though we are using a Blazor Server application.

We see that blazor components can be used in MVC projects. For example... https://www.syncfusion.com/faq/blazor/general/how-do-you-use-blazor-in-an-existing-asp-net-mvc-application

But the general recommendations for doing this don't seem to work with an overridden page in the Abp framework. The blazor components are never recognized in the cshtml files.

Do you have any recommendations or workarounds on how to accomplish this with Abp?

Thanks in advance!

ABP 7.0.1 Commercial / Blazor Server / EF / Separate Identity Server / Non-tiered

After our upgrade to 7.0.1, we noticed that the action drop down menu does not re-orientate itself to open upwards when at the bottom of the grid, which causes items to not be visible. We've only noticed the issue so far on the tenant management area. We were able to reproduce the issue with a new blank template created from the CLI.

Showing 1 to 10 of 48 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13