Käyttäjän "jaykishan" toiminnot

  • ABP Framework version: v7.2.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • DB: MySQL

I have successfully migrated my old framework to the abpframework.

I executed few mysql queries to dump data from old db to abp db and inserted properly.

I managed to generate the new guid using IGuidGenerator for the data that was dumped using the query, I did some tricks during dataseeding process, make list call and then hard delete the list data.

Finally looped the in-memory data and created Guid with IGuidGenerator and in-memory data to improve the performance as well.

I have issue with few tables with concurrencystamp. Please see the screenshot.

public class ClassName : FullAuditedAggregateRoot<Guid>, IMultiTenant

So it has implemented IHasConcurrencyStamp. I can generate random value but is there any existing abp method in c# to generate concurrencystamp?

In DB, ConcurrencyStamp is null

Thank you so much for reply. It resolves my issue. :)

Kysymys

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: vX.X.X
  • UI Type: MVC
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Example:

For Host Domain

Authserver: accounts.test.com Web Server: test.com Api Server: api.test.com

When unauthorized user is making a webcall it calls api.test.com

For Tenant Domain

Authserver: subdomain.accounts.test.com Web Server: subdomain.test.com Tenant Api Server: subdomain.api.test.com

Issue: When unauthorized user is making a webcall from subdomain like subdomain.test.com it calls api.test.com Expected: When unauthorized user is making a webcall from subdomain like subdomain.test.com it should call subdomain.api.test.com

In angular it should not be an issue as it is specificing in the config file {0}.api.test.com

But in MVC it is not working

"RemoteServices": { "Default": { "BaseUrl": "https://{{tenantName}}.api.test.com/" (with or without tenantName interpolation it is not working) } }

I have verified below configuration are correct:

Also, please note api.test.com it works as it is host (Correct Behaviour) subdomain.api.test.com it works as it was created as tenant (Correct Behaviour) wrong.api.test.com it does not work as it was never created as tenant (Correct Behaviour as tenant does not exist with name "wrong")

Please help with temporary workaround or is it a bug?

Vastaus

I am having issue from version 7.0 to 7.4 major version, currently it is the same in 7.4.4

Vastaus

Thank you liangshiwei for pointing me in right direction. I know it was a breaking change if it was suppose to be going live.

Below is the code that worked for me.

Vastaus

Thank you for refund and closing the ticket.

Kysymys
  • ABP Framework version: v8.0.2
  • UI Type: MVC
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: It is part of Pro package Step1: Just copy and paste only Manage.cshtml from pro package to new project's authserver Pages\Account\Manage.cshtml Step2: Try to use the bundle as shared in screenshot. Step3: Development no issue Step4: Production issue

Please note, it use to work with abp framework version: 7.. versions

Temporary Workaround:

        Configure<AbpBundlingOptions>(options =>
        {
            options.Mode = BundlingMode.None;
        });
Vastaus

By adding @abp/zxcvbn it made no difference as it was part of "@volo/account": "~8.0.2".

Volo.Abp.Account.Pro.Public.Web package was transitive package of Volo.Abp.Account.Pro.Public.Web.OpenIddict that is pre-installed in the AuthServer. I was able to fix it by installing Volo.Abp.Account.Pro.Public.Web in the AuthServer and adding its module in depends on typeof(AbpAccountPublicWebModule). in the AuthServer.

I am not confident the solution I did is correct or not?

Vastaus

The pointers you did, I knew about that.

I just now verified the node_modules installation of @abp/zxcvbn and I did abp install-libs just before ending the day yesterday. You are absolutely correct it was just package update issue when I migrated from 7.4.4 to 8.0.2, so there is no relationg with the fixes I did and I reverted to old code phew!

Vastaus

Yes

Solution

abp install-libs thats it

Näytetään 1 - 10/12 tietueesta
Made with ❤️ on ABP v8.2.0-preview Updated on maaliskuuta 25, 2024, 15.11