Activities of "nielsklijn"

How can we share an entity that is created by the host to all tenants?

  • Not using IMultitenant will make the entity available to all tenants, but it will only be stored in the host database

  • In my specific scenario, I use a database per tenant

  • How can we guarantee referential integrity (foreign key) this way?

  • Is there a way to sync entities across all tenant databases when IMultitenant is not used

  • ABP Framework version: v5.1.2

  • UI type:Blazor

  • DB provider: EF Core /

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace:

  • Steps to reproduce the issue:"

When adding two applicationMenuItems object to the menu contributor with the same URL, a memory leak occurs.

E.g: var facilities = new ApplicationMenuItem( SquareServerMenus.Facilities, l["Menu:FacilityMenuItem1"], url: "/identity/users", requiredPermissionName: SquareServerPermissions.Facilities.Default, order: rootOrder++);

var assessments = new ApplicationMenuItem( "SquareServer.Facilities", l["Menu:FacilityMenuItem2"], url: "/identity/users", order: rootOrder++);

Dotmemory profile :

  • ABP Framework version: v5.1.3
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
    • Add two applicationMenuItem objects with the same URL in the blazor MenuContributor
    • Click one of the links in the menu
    • After this the memory leak will occur

After clicking the email confirmation link the "EmailConfirmed" column in the database is not set to true.

  • The web page does show and says the email has been confirmed "succesfully"

A work around that I have tried: I tried setting the email confirmed property hard coded to "true" and saving this directly to the identityuser store. However this still does not update the email confirmed propery, if I change any other data and save that to the store it does save.

See below (properties like active, surname, are updated):

public override async Task<IdentityResult> ConfirmEmailAsync(IdentityUser user, string token) {
    var result = await base.ConfirmEmailAsync(user, token);
    user.Surname = "weird";
    user.SetIsActive(false);
    user.SetEmailConfirmed(true);
    
    Console.WriteLine(user.EmailConfirmed + "confirmed");
    await UserRepository.UpdateAsync(user, autoSave:true);
    
    var cast = Store as IUserEmailStore<IdentityUser>;
    await cast.SetEmailConfirmedAsync(user, true,new CancellationToken());
    
    return result;
}
  • ABP Framework version: v5.1.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: none
  • Steps to reproduce the issue:"
Showing 1 to 3 of 3 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11