Starts in:
0 DAY
1 HR
40 MIN
50 SEC
Starts in:
0 D
1 H
40 M
50 S
Open Closed

⚠️ Bugs & Issues v7.4.x ⚠️ #5642


User avatar
0
alper created
Support Team Director

⚡ Update ABP CLI and ABP Suite

dotnet tool update -g Volo.Abp.Cli --prerelease
abp suite update --preview

📗 Blog post

  • https://blog.abp.io/abp/ABP.IO-Platform-7-4-RC-Has-Been-Published

📘 Commercial release logs

  • https://docs.abp.io/en/commercial/latest/release-notes
  • https://commercial.abp.io/releases/

🔼 Migration guides

  • https://docs.abp.io/en/abp/latest/Migration-Guides/Index

✏️ Feel free to report any bugs, issues and problems.


67 Answer(s)
  • User Avatar
    0
    rashed created

    **I think this is not logic **

    adding not existing clients to your database is very confusing for deployment team

    for example what is the benfite of adding --mobile none -u angular in generation command then you found MVC and Mobile clientIds in your database !!!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks, I will create a internal issue for thsi.

  • User Avatar
    0
    rashed created

    Failed to login from public site

    run this command to create a project

    abp new MyProject -t app-pro -u angular --preview -v 7.4.0-rc.2 -csf --theme lepton-x --skip-cache --with-public-website --separate-auth-server -dbms SqlServer --separate-auth-server

    Then run all web projects and try to login from public site , I got this error

    note: I cleard the cache and remove all cookies many times but still same error

  • User Avatar
    0
    rashed created

    Generated public site

    I notice some diffreneces between public site genrated when using angular template and mvc template in tiered architecture and separate auth server although in both cases the public site created as MVC project

    Do you mean that ? why you don't use the same template for public site

    I use these 2 commands

    abp new MyProject -t app-pro -u angular --preview -v 7.4.0-rc.2 -csf --theme lepton-x --skip-cache --with-public-website --separate-auth-server -dbms SqlServer --separate-auth-server

    abp new MyProject -t app-pro -u mvc --tiered --preview -v 7.4.0-rc.2 -csf --theme lepton-x --skip-cache --with-public-website --separate-auth-server -dbms SqlServer -cs --separate-auth-server

    then I opened public site project and found these diffrences in angular case

    • no reCaptcha package
    • no BackgroundWorkers

    options.UsePkce = true; only in angular case

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Is this endpoint success? you can open it in your browser.

  • User Avatar
    0
    rashed created

    hi

    Is this endpoint success? you can open it in your browser.

    Hi

    no it's not accessiable,

    looks like the authority url generated in public web app is diffrent than the one generated in api web app

    note: angular app working without issues

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks we will confirm the problem.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can use --separate-identity-server, we will be compatible in next rc.

    new MyProject -t app-pro -u angular --preview -v 7.4.0-rc.2 -csf --theme lepton-x --skip-cache --with-public-website --separate-identity-server -dbms SqlServer --separate-identity-server
    
  • User Avatar
    0
    rashed created

    hi

    You can use --separate-identity-server, we will be compatible in next rc.

    new MyProject -t app-pro -u angular --preview -v 7.4.0-rc.2 -csf --theme lepton-x --skip-cache --with-public-website --separate-identity-server -dbms SqlServer --separate-identity-server 
    

    Please note I already use it in my command, you set it 2 times, actually this was not my issue

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Use --separate-identity-server and try again, Thanks.

    https://github.com/abpframework/abp/pull/17519

  • User Avatar
    0
    rafael.gonzales created

    There is an issue with the version 7.4 rc-3. I have an issue with the following packages that couldn't be restored with this version

    Unable to find package Volo.CmsKit.Pro.Common.Web. No packages exist with this id in source(s): ABP Commercial NuGet Source, C:\Program Files\dotnet\library-packs, C:\Program Files\dotnet\sdk\7.0.307\Sdks\Microsoft.NET.Sdk.Web\library-packs, Microsoft Visual Studio Offline Packages, nuget.org

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    There is an issue with the version 7.4 rc-3. I have an issue with the following packages that couldn't be restored with this version

    Unable to find package Volo.CmsKit.Pro.Common.Web. No packages exist with this id in source(s): ABP Commercial NuGet Source, C:\Program Files\dotnet\library-packs, C:\Program Files\dotnet\sdk\7.0.307\Sdks\Microsoft.NET.Sdk.Web\library-packs, Microsoft Visual Studio Offline Packages, nuget.org

    Hi, thanks for reporting. We will fix the problem and publish the packages asap.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    There is an issue with the version 7.4 rc-3. I have an issue with the following packages that couldn't be restored with this version

    Unable to find package Volo.CmsKit.Pro.Common.Web. No packages exist with this id in source(s): ABP Commercial NuGet Source, C:\Program Files\dotnet\library-packs, C:\Program Files\dotnet\sdk\7.0.307\Sdks\Microsoft.NET.Sdk.Web\library-packs, Microsoft Visual Studio Offline Packages, nuget.org

    We have published the missing packages, please try again. (You might want to clear your Nuget cache if the package cannot be found on your first try.)

  • User Avatar
    0
    rafael.gonzales created

    Hi again, this is your friend Rafael :)

    In this template, can we replace the #pragma warning disable CS8618 for a null forgiven or required operator approach?

  • User Avatar
    0
    rafael.gonzales created

    Also, I noticed that this template lacks a couple of "?" in some nullable string parameters.

  • User Avatar
    0
    rafael.gonzales created

    There are a couple of missing "?" in this template too

    In the same template, this "filterText" should be nullable too

  • User Avatar
    0
    rafael.gonzales created

    ABP Suite still generates EntityManager generated class with methods without null validation checking

    In this example the GeoManager class is generating a Create Method with a parameter of type "string codigoInei = null".

    It should be "string? codigoInei = null". This complicates us if I want to re-generate the ABP Suite. I will need to fix everytime.

  • User Avatar
    0
    rafael.gonzales created

    This situation happen also in the Geo.Extended.cs class in the Domain Project

    The constructor generated in the base class as the extended class are generated properties with the same problem (for nullable properties)

    "string codigoInei = null"

    instead of "string? codigoInei = null"

  • User Avatar
    0
    rafael.gonzales created

    There is another issue in the generated EfCoreEntityRepository.cs class

    The issue corresponds to the **FindAsync **method inside the **EfCoreRepository ** class

    There seems to be a problem between the nullable-enabled project and the non-enabled nullable project (EntityFramework Project). One method returns a nullable type while the other expects a non-nullable return value.

    This is a critical error for the new version.

    3>EfCoreUbigeoRepository.cs(14,106): Error CS8613 : Nullability of reference types of the return type of "Task<Ubigeo> EfCoreRepository<DemoDbContext, Ubigeo>.FindAsync(Expression<Func<Ubigeo, bool>> predicate, bool includeDetails = true, CancellationToken cancellationToken = default(CancellationToken))" does not match member "Task<Ubigeo?> IRepository<Ubigeo>.FindAsync(Expression<Func<Ubigeo, bool>> predicate, bool includeDetails = true, CancellationToken cancellationToken = default(CancellationToken))" implemented implicitly.
    3>EfCoreUbigeoRepository.cs(14,106): Error CS8613 : Nullability of reference types of the return type of "Task<Ubigeo> EfCoreRepository<DemoDbContext, Ubigeo, Guid>.FindAsync(Guid id, bool includeDetails = true, CancellationToken cancellationToken = default(CancellationToken))" does not match the implicitly implemented member "Task<Ubigeo?> IReadOnlyBasicRepository<Ubigeo, Guid>.FindAsync(Guid id, bool includeDetails = true, CancellationToken cancellationToken = default(CancellationToken))".
    3>------- Finished building project: D.EntitemoyFrameworkCore. Succeeded: False. Errors: 2. Warnings: 0
    
  • User Avatar
    1
    rafael.gonzales created

    There is another issue in the generated EfCoreEntityRepository.cs class

    The issue corresponds to the **FindAsync **method inside the **EfCoreRepository ** class

    There seems to be a problem between the nullable-enabled project and the non-enabled nullable project (EntityFramework Project). One method returns a nullable type while the other expects a non-nullable return value.

    This is a critical error for the new version.

    3>EfCoreUbigeoRepository.cs(14,106): Error CS8613 : Nullability of reference types of the return type of "Task<Ubigeo> EfCoreRepository<DemoDbContext, Ubigeo>.FindAsync(Expression<Func<Ubigeo, bool>> predicate, bool includeDetails = true, CancellationToken cancellationToken = default(CancellationToken))" does not match member "Task<Ubigeo?> IRepository<Ubigeo>.FindAsync(Expression<Func<Ubigeo, bool>> predicate, bool includeDetails = true, CancellationToken cancellationToken = default(CancellationToken))" implemented implicitly. 
    3>EfCoreUbigeoRepository.cs(14,106): Error CS8613 : Nullability of reference types of the return type of "Task<Ubigeo> EfCoreRepository<DemoDbContext, Ubigeo, Guid>.FindAsync(Guid id, bool includeDetails = true, CancellationToken cancellationToken = default(CancellationToken))" does not match the implicitly implemented member "Task<Ubigeo?> IReadOnlyBasicRepository<Ubigeo, Guid>.FindAsync(Guid id, bool includeDetails = true, CancellationToken cancellationToken = default(CancellationToken))". 
    3>------- Finished building project: D.EntitemoyFrameworkCore. Succeeded: False. Errors: 2. Warnings: 0 
    

    The solution for this is the following.

    In **EfCoreRepository.cs **

    Replace this code:

    public async override Task&lt;TEntity&gt; FindAsync(
        Expression&lt;Func&lt;TEntity, bool&gt;> predicate,
        bool includeDetails = true,
        CancellationToken cancellationToken = default)
    {
        return includeDetails
            ? await (await WithDetailsAsync())
                .Where(predicate)
                .SingleOrDefaultAsync(GetCancellationToken(cancellationToken))
            : await (await GetDbSetAsync())
                .Where(predicate)
                .SingleOrDefaultAsync(GetCancellationToken(cancellationToken));
    }
    

    For this

    public async override Task&lt;TEntity?&gt; FindAsync(
        Expression&lt;Func&lt;TEntity, bool&gt;> predicate,
        bool includeDetails = true,
        CancellationToken cancellationToken = default)
    {
        return includeDetails
            ? await (await WithDetailsAsync())
                .Where(predicate)
                .SingleOrDefaultAsync(GetCancellationToken(cancellationToken))
            : await (await GetDbSetAsync())
                .Where(predicate)
                .SingleOrDefaultAsync(GetCancellationToken(cancellationToken));
    }
    

    And replace this code:

    public virtual async Task&lt;TEntity&gt; FindAsync(TKey id, bool includeDetails = true, CancellationToken cancellationToken = default)
    {
        return includeDetails
            ? await (await WithDetailsAsync()).OrderBy(e => e.Id).FirstOrDefaultAsync(e => e.Id.Equals(id), GetCancellationToken(cancellationToken))
            : await (await GetDbSetAsync()).FindAsync(new object[] { id }, GetCancellationToken(cancellationToken));
    }
    

    For this one public virtual async Task<TEntity?> FindAsync(TKey id, bool includeDetails = true, CancellationToken cancellationToken = default) { return includeDetails ? await (await WithDetailsAsync()).OrderBy(e => e.Id).FirstOrDefaultAsync(e => e.Id.Equals(id), GetCancellationToken(cancellationToken)) : await (await GetDbSetAsync()).FindAsync(new object[] { id }, GetCancellationToken(cancellationToken)); }

  • User Avatar
    0
    rafael.gonzales created

    Another observation,

    There is no lepton 2.4.0-rc.3, is this normal?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi again, this is your friend Rafael :)

    In this template, can we replace the #pragma warning disable CS8618 for a null forgiven or required operator approach?

    Thanks for your suggestion. I will update it.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    There are a couple of missing "?" in this template too

    In the same template, this "filterText" should be nullable too

    Thanks for reporting. I have created an issue for it and will fix it asap. BTW, I'm also checking your other findings.

  • User Avatar
    0
    byersjus created

    There seems to be a bug when adding navigation collections (n:n) via Suite. In my case, I'm adding a navigation to a 'Tool' entity from 'ToolAssemblies' and get the following errors:

    Edit: I should note this only occurs when using the 'Customizable code' option during crud page generation.

    Error CS7036 There is no argument given that corresponds to the required parameter 'toolRepository' of 'ToolAssemblyManagerBase.ToolAssemblyManagerBase(IToolAssemblyRepository, IRepository<Tool, Guid>)' ToolAssemblyManager.Extended.cs

    Error CS7036 There is no argument given that corresponds to the required parameter 'toolRepository' of 'ToolAssembliesAppServiceBase.ToolAssembliesAppServiceBase(IToolAssemblyRepository, ToolAssemblyManager, IDistributedCache<ToolAssemblyExcelDownloadTokenCacheItem, string>, IRepository<Tool, Guid>)' ToolAssembliesAppService.Extended.cs

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    There seems to be a bug when adding navigation collections (n:n) via Suite. In my case, I'm adding a navigation to a 'Tool' entity from 'ToolAssemblies' and get the following errors:

    Edit: I should note this only occurs when using the 'Customizable code' option during crud page generation.

    Error CS7036 There is no argument given that corresponds to the required parameter 'toolRepository' of 'ToolAssemblyManagerBase.ToolAssemblyManagerBase(IToolAssemblyRepository, IRepository<Tool, Guid>)' ToolAssemblyManager.Extended.cs

    Error CS7036 There is no argument given that corresponds to the required parameter 'toolRepository' of 'ToolAssembliesAppServiceBase.ToolAssembliesAppServiceBase(IToolAssemblyRepository, ToolAssemblyManager, IDistributedCache<ToolAssemblyExcelDownloadTokenCacheItem, string>, IRepository<Tool, Guid>)' ToolAssembliesAppService.Extended.cs

    Thanks for reporting. Whenever a many-to-many relation is established, it seems we also need to re-generate the ctor for the custom manager and appservice classes. I will create an issue for it and will fix it asap.

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