Base solution for your next web application
Open Closed

TenantCustomization Bug? #3193


User avatar
0
mbit created

Hello there, I have set up a project using Single Deployment - Multi Database approach. I login using a tenant admin (the one that is created on creating a new tenant, and is stored in tenant database). Under Settings - Appearance, I should be able to upload a tenant-specific css/logo. However, when I try this, a DBUpdateException is thrown, because of the FK Constraint (Table Tenant -> LastModifierUserId). So basically the system tries to set the tenant admin-user as LastModifierUser on the Tenant-Row of the host table, but since this user only exists in the tenant-database, it cannot be set. How can I solve this issue now? Is this a bug in Abp? Or is my setup causing the issue?

Thanks in advance


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I have tested this with latest version and it is working as expected. It might be related to ABP version you are using. Which version of ABP do you use in your project ?

    Thanks.

  • User Avatar
    0
    mbit created

    Hey, thanks for your response. I am running Abp Version 2.0.2 here. What is the expected result anyway? If a tenant-user uploads a Css/Logo, which UserId should be set as LastModifiedUser?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I can confirm that this is a bug, I have created an issue here <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2131">https://github.com/aspnetboilerplate/as ... ssues/2131</a>, you can follow it. It will be released with the new version of ABP.

    Thanks for finding it :).