Starts in:
2 DAYS
6 HRS
19 MIN
25 SEC
Starts in:
2 D
6 H
19 M
25 S
Open Closed

New Tenant With Connection String Gives An Error. #7264


User avatar
0
cangunaydin created
  • ABP Framework version: v8.1.3
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:

(Volo.Saas.Host.Dtos.SaasTenantCreateDto) on controller Volo.Saas.Host.TenantController (Volo.Saas.Host.HttpApi). [20:03:59 WRN] ---------- RemoteServiceErrorInfo ----------

{
  "code": null,
  "message": "Your request is not valid!",
  "details": "The following errors were detected during validation.\r\n - The ExtraProperties field is required.\r\n",
  "data": {},
  "validationErrors": [
    {
      "message": "The ExtraProperties field is required.",
      "members": [
        "connectionStrings.Databases[0].ExtraProperties"
      ]
    }
  ]
}

[20:03:59 WRN] ModelState is not valid! See ValidationErrors for details. Volo.Abp.Validation.AbpValidationException: ModelState is not valid! See ValidationErrors for details.

  • Steps to reproduce the issue:

When i create a new tenant with separate connection string, I am getting an error. When i inspect it from chrom dev console, it seems like null has been assigned to extra properties value. That's why i believe I am getting a validation error. you can see the picture.

How can i fix this can you suggest a solution?


6 Answer(s)
  • User Avatar
    0
    cangunaydin created

    And when i want to replace the connection-strings component in angular, it doesn't work. The problem is related with @viewchild reference. since it is directly dependent on the default component, even if i replace the component with my own component it doesn't find the reference.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I can confirm it's a bug, and we will fix it in the next patch version.

    Your ticket was refunded.

  • User Avatar
    0
    cangunaydin created

    Hello @liangshiwei, In the meantime can you suggest a solution, so i can implement a patch while you guys are fixing it. I have tried to replace both tenants component and connection-strings component in angular, but still @viewchild is not getting reference of the component. What can i do to fix the issue?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can try to remove Nullable from your solution

  • User Avatar
    0
    cangunaydin created

    If you are talking about HttpApi.Host project that is already disabled. So it doesn't work. Isn't there any workaround so it can be done through angular while it posts to the server side?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Sorry, Unfortunately you need to wait for the next patch version

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06