Open Closed

⚠️ Bugs & Issues v8.1.x ⚠️ #6711


User avatar
1
EngincanV created
Support Team .NET Developer

⚡ 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/announcing-abp-8-1-release-candidate

📘 Commercial release logs

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

🔼 Migration guides

  • https://docs.abp.io/en/abp/8.1/Migration-Guides/Abp-8_1
  • https://docs.abp.io/en/commercial/8.1/migration-guides/v8_1

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


38 Answer(s)
  • User Avatar
    -1
    hitaspdotnet created

    I think it's a cli bug:

    PS D:\github\modules\abp> abp get-source Volo.Abp.LeptonXTheme.Pro --output-folder "leptonX-theme-pro" --preview
    ABP CLI 8.1.0-rc.1
    Downloading source code of Volo.Abp.LeptonXTheme.Pro (Latest)
    Output folder: D:\github\modules\abp\leptonX-theme-pro
    The latest template version (3.1.0-rc.1) is different than the CLI version (8.1.0-rc.1). This may cause compatibility issues.
    Please upgrade/downgrade the CLI version to the template version.
    > dotnet tool uninstall -g volo.abp.cli
    > dotnet tool install -g volo.abp.cli --version 3.1.0-rc.1
    There is no version found with given version: 8.1.0-rc.1
    System.Exception: There is no version found with given version: 8.1.0-rc.1
       at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource, Boolean includePreReleases, Boolean skipCache, Boolean trustUserVersion) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 156
       at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48
       at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadModuleAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 39
       at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 59
       at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173
       at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80
    Unhandled exception. System.Exception: There is no version found with given version: 8.1.0-rc.1
       at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource, Boolean includePreReleases, Boolean skipCache, Boolean trustUserVersion) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 156
       at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48
       at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadModuleAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 39
       at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 59
       at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173
       at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80
       at Volo.Abp.Cli.Program.Main(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli\Volo\Abp\Cli\Program.cs:line 43
       at Volo.Abp.Cli.Program.<Main>(String[] args)
    

    also with fixed version:

    PS D:\github\modules\abp> abp get-source Volo.Abp.LeptonXTheme.Pro --output-folder "leptonX-theme-pro" --version 3.1.0-rc.1
    ABP CLI 8.1.0-rc.1
    Downloading source code of Volo.Abp.LeptonXTheme.Pro (v3.1.0-rc.1)
    Output folder: D:\github\modules\abp\leptonX-theme-pro
    The specified template version (3.1.0-rc.1) is different than the CLI version (8.1.0-rc.1). This may cause compatibility issues.
    Please upgrade/downgrade the CLI version to the template version.
    > dotnet tool uninstall -g volo.abp.cli
    > dotnet tool install -g volo.abp.cli --version 3.1.0-rc.1
    We have changed the template version as the cli version.
    New version: 8.1.0-rc.1
    There is no version found with given version: 8.1.0-rc.1
    System.Exception: There is no version found with given version: 8.1.0-rc.1
       at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource, Boolean includePreReleases, Boolean skipCache, Boolean trustUserVersion) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 156
       at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48
       at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadModuleAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 39
       at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 59
       at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173
       at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80
    Unhandled exception. System.Exception: There is no version found with given version: 8.1.0-rc.1
       at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource, Boolean includePreReleases, Boolean skipCache, Boolean trustUserVersion) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 156
       at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48
       at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadModuleAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 39
       at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 59
       at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173
       at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80
       at Volo.Abp.Cli.Program.Main(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli\Volo\Abp\Cli\Program.cs:line 43
       at Volo.Abp.Cli.Program.<Main>(String[] args)
    

    wow, what is this?

    Please upgrade/downgrade the CLI version to the template version. We have changed the template version as the cli version.

    when I want to download a fixed version why does CLI decide to change the version? Is this a joke from the development team? so remove the --version flag because it's useless anymore. wow. This is very unexpected from your team

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    I think it's a cli bug:

    PS D:\github\modules\abp> abp get-source Volo.Abp.LeptonXTheme.Pro --output-folder "leptonX-theme-pro" --preview 
    ABP CLI 8.1.0-rc.1 
    Downloading source code of Volo.Abp.LeptonXTheme.Pro (Latest) 
    Output folder: D:\github\modules\abp\leptonX-theme-pro 
    The latest template version (3.1.0-rc.1) is different than the CLI version (8.1.0-rc.1). This may cause compatibility issues. 
    Please upgrade/downgrade the CLI version to the template version. 
    > dotnet tool uninstall -g volo.abp.cli 
    > dotnet tool install -g volo.abp.cli --version 3.1.0-rc.1 
    There is no version found with given version: 8.1.0-rc.1 
    System.Exception: There is no version found with given version: 8.1.0-rc.1 
       at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource, Boolean includePreReleases, Boolean skipCache, Boolean trustUserVersion) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 156 
       at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48 
       at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadModuleAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 39 
       at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 59 
       at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173 
       at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80 
    Unhandled exception. System.Exception: There is no version found with given version: 8.1.0-rc.1 
       at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource, Boolean includePreReleases, Boolean skipCache, Boolean trustUserVersion) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 156 
       at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48 
       at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadModuleAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 39 
       at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 59 
       at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173 
       at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80 
       at Volo.Abp.Cli.Program.Main(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli\Volo\Abp\Cli\Program.cs:line 43 
       at Volo.Abp.Cli.Program.<Main>(String[] args) 
    

    also with fixed version:

    PS D:\github\modules\abp> abp get-source Volo.Abp.LeptonXTheme.Pro --output-folder "leptonX-theme-pro" --version 3.1.0-rc.1 
    ABP CLI 8.1.0-rc.1 
    Downloading source code of Volo.Abp.LeptonXTheme.Pro (v3.1.0-rc.1) 
    Output folder: D:\github\modules\abp\leptonX-theme-pro 
    The specified template version (3.1.0-rc.1) is different than the CLI version (8.1.0-rc.1). This may cause compatibility issues. 
    Please upgrade/downgrade the CLI version to the template version. 
    > dotnet tool uninstall -g volo.abp.cli 
    > dotnet tool install -g volo.abp.cli --version 3.1.0-rc.1 
    We have changed the template version as the cli version. 
    New version: 8.1.0-rc.1 
    There is no version found with given version: 8.1.0-rc.1 
    System.Exception: There is no version found with given version: 8.1.0-rc.1 
       at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource, Boolean includePreReleases, Boolean skipCache, Boolean trustUserVersion) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 156 
       at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48 
       at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadModuleAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 39 
       at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 59 
       at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173 
       at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80 
    Unhandled exception. System.Exception: There is no version found with given version: 8.1.0-rc.1 
       at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource, Boolean includePreReleases, Boolean skipCache, Boolean trustUserVersion) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 156 
       at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48 
       at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadModuleAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 39 
       at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 59 
       at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 173 
       at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 80 
       at Volo.Abp.Cli.Program.Main(String[] args) in D:\ci\Jenkins\workspace\abp-volo-release\abp\framework\src\Volo.Abp.Cli\Volo\Abp\Cli\Program.cs:line 43 
       at Volo.Abp.Cli.Program.<Main>(String[] args) 
    

    wow, what is this?

    Please upgrade/downgrade the CLI version to the template version. We have changed the template version as the cli version.

    when I want to download a fixed version why does CLI decide to change the version? Is this a joke from the development team? so remove the --version flag because it's useless anymore. wow. This is very unexpected from your team

    Thanks for reporting this problem, but we already fixed it: https://github.com/abpframework/abp/pull/19095 It will be included with v8.1.0-rc.2+.

  • User Avatar
    0
    rafael.gonzales created

    Downloadable Excel file is not localized

    [AllowAnonymous]
    public virtual async Task<IRemoteStreamContent> GetListAsExcelFileAsync(DemoExcelDownloadDto input)
    {
        var downloadToken = await _excelDownloadTokenCache.GetAsync(input.DownloadToken);
        if (downloadToken == null || input.DownloadToken != downloadToken.Token)
        {
            throw new AbpAuthorizationException("Invalid download token: " + input.DownloadToken);
        }
    
        var items = await _demoRepository.GetListAsync(input.FilterText, input.Name, input.Date, input.Price);
    
        var memoryStream = new MemoryStream();
        await memoryStream.SaveAsAsync(ObjectMapper.Map<List<Ubigeo>, List<UbigeoExcelDto>>(items));
        memoryStream.Seek(0, SeekOrigin.Begin);
    
        return new RemoteStreamContent(memoryStream, "Demos .xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
    }
    
    • The names of the columns are not localized
    • The name of the file are not localized

    Proposal for change

            public override async Task<IRemoteStreamContent> GetListAsExcelFileAsync(DemoExcelDownloadDto input)
            {
                var downloadToken = await _excelDownloadTokenCache.GetAsync(input.DownloadToken);
                if (downloadToken == null || input.DownloadToken != downloadToken.Token)
                {
                    throw new AbpAuthorizationException("Invalid download token: " + input.DownloadToken);
                }
    
                var items = await _demoRepository.GetListAsync(input.FilterText, input.Name, input.Date, input.Price);
    
                var config = new OpenXmlConfiguration
                {
                    DynamicColumns = new MiniExcelLibs.Attributes.DynamicExcelColumn[]
                    {
                        new MiniExcelLibs.Attributes.DynamicExcelColumn("Name") { Name = L["Name"]},
                        new MiniExcelLibs.Attributes.DynamicExcelColumn("Date") { Name = L["Date"]},
                        new MiniExcelLibs.Attributes.DynamicExcelColumn("Price") { Name = L["Price"]}
                    }
                };
    
                var memoryStream = new MemoryStream();
                await memoryStream.SaveAsAsync(ObjectMapper.Map<List<Ubigeo>, List<DemoExcelDto>>(items), configuration: config);
                memoryStream.Seek(0, SeekOrigin.Begin);
    
                var fileName = L["Demos"] + ".xlsx";
                return new RemoteStreamContent(memoryStream, fileName, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
            }
    

    That would be a great change for ABP Suite generator to solve the localization of the Excel file process.

  • User Avatar
    0
    rafael.gonzales created

    If you add a "boolean" value in the ABP Suite column definition, their filter selection is not localized.

    The generated code in Index.cshtml.cs, adds the following code.

            [SelectItems(nameof(IsUsedBoolFilterItems))]
            public string IsUsedFilter { get; set; }
    
            public List<SelectListItem> IsUsedBoolFilterItems { get; set; } =
                new List<SelectListItem>
                {
                    new SelectListItem("", ""),
                    new SelectListItem("Yes", "true"),
                    new SelectListItem("No", "false"),
                };
    

    First, the string generated should be nullable like the following public string? IsUsedFilter { get; set; }

    To avoid this warning in the constructor

    The filter items are not localized and the keys "Yes" and "No" are hardcoded in any language. To solve this, I propose to add this method in AbpModel

            protected List<SelectListItem> SetFilterItems()
            {
                return new List<SelectListItem>
                {
                    new SelectListItem("", ""),
                    new SelectListItem(_localizer["Yes"], "true"),
                    new SelectListItem(_localizer["No"], "false")
                };
            }
    

    In ABP Suite, It should generate the Filter Items using a backend field like the following.

            [SelectItems(nameof(IsUsedBoolFilterItems))]
            public string? IsUsedFilter { get; set; }
    
            private List<SelectListItem>? _IsUsedBoolFilterItems;
            public List<SelectListItem> IsUsedBoolFilterItems
            {
                get { return (_IsUsedBoolFilterItems == null) ? SetFilterItems() : _IsUsedBoolFilterItems; }
                set { _IsUsedBoolFilterItems = value; }
            }
    

    But this needs to add a localizer in the constructor of Index.cshtml and also Index.Extended.cshtml.cs (if they use custom code) to pass to AbpModel to add that method I propose.

    public IndexModelBase(IStringLocalizer<DemoResource> localizer, IDemosAppService demosAppService) : base(localizer)
    {
        _demosAppService = demosAppService;
    }
    
  • User Avatar
    0
    rafael.gonzales created

    What is the sense of keeping these two fields in "decimal" type if they are not getting added in the "CreateDto" and "UpdateDto"

    For decimals, there should be a validation, if the values inserted there (min and max) are integers, then we should be able to get those values added in "CreateDto" and "UpdateDto" like the following code

            [Required]
            [Range(DemoConsts.Price MinLength, DemoConsts.Price MaxLength)]
            public decimal Price { get; set; }
    

    In the "DemoConsts.cs" file the "Min" and "Max" const should be declared as integers too

            public const int PriceMinLength = -180;
            public const int PriceMaxLength = 180;
    

  • User Avatar
    0
    rafael.gonzales created

    ABP Modules in the navigation property are not displayed when you already have an entity created. Also, please check that it is duplicated when it's shown in the first entity.

  • User Avatar
    0
    rafael.gonzales created

    Hi,

    Can we add some formatting to the %%excel-method-interface%% and %%bulk-delete-methods-interface%% by default? It would be better to be in a new line by default

  • User Avatar
    0
    rafael.gonzales created

    Why do Create and Edit Pages in MVC inherit from ModulePageModel but Index Page inherit from AbpPageModel?

    ModulePageModel already inherits from AbpPageModule but helps as a base class in a module to customize.

    In Summary,

    Suppose you create a module named MyModule. The entities generated there will have Create, Edit, and Index pages.

    Create and Edit -> Inherit from MyModulePageModel Index -> Inherit from AbpPageModule.

    Expected behavior,

    Credit, Edit and Index should inherit from MyModulePageModel

  • User Avatar
    0
    rafael.gonzales created

    Why do Create and Edit Pages in MVC inherit from ModulePageModel but Index Page inherit from AbpPageModel?

    ModulePageModel already inherits from AbpPageModule but helps as a base class in a module to customize.

    In Summary,

    Suppose you create a module named MyModule. The entities generated there will have Create, Edit, and Index pages.

    Create and Edit -> Inherit from MyModulePageModel Index -> Inherit from AbpPageModule.

    Expected behavior,

    Credit, Edit and Index should inherit from MyModulePageModel

    The same issue happened with the AppService project. If you are in a Module, all the AppService generated are still using ApplicationAppService instead of MyModuleAppService

  • User Avatar
    0
    rafael.gonzales created

    Typeahead not rendering in the correct position when It's within a long modal content

  • User Avatar
    0
    rafael.gonzales created

    Typeahead not rendering in the correct position when It's within a long modal content

    I found a fix for this, following the different recommendations from this post https://stackoverflow.com/questions/18487056/select2-doesnt-work-when-embedded-in-a-bootstrap-modal/19574076#19574076 and select2 documentation https://select2.org/troubleshooting/common-problems#:~:text=Select2%20does%20not%20function%20properly,%22outside%20of%20the%20modal%22.

    The working solution for ABP Suite generated code it's to add " .modal-content" in the dropdownParent generated by ABP Suite.

    Should look like this

            publicApi.onOpen(function () {
                $('#Demo_RelatedId').select2({
                    dropdownParent: $('#DemoCreateModal .modal-content'),
                    ajax: {
                        url: abp.appPath + 'api/app/demos/related-lookup',
                        type: 'GET',
                        data: function (params) {
                            return { filter: params.term, maxResultCount: 10 }
                        },
                        processResults: function (data) {
                            var mappedItems = _.map(data.items, function (item) {
                                return { id: item.id, text: item.displayName };
                            });
    
                            return { results: mappedItems };
                        }
                    }
                });
            });
    

    Hope you can add it to the next RC.

    Thanks!

  • User Avatar
    0
    Sturla created

    Host and teant CMS strangness

    If I create a page (test) CMS as the Host I can see it if I log out, if I create a page (xxx) under a tenant (Rambo) and log out I will not see the first page (test)

    F5 does nothing to refresh...

    Expected behaviour when no user is logged in

    • test page would always bee shown (on root domain (https://www.root.com) and subdomain (https://rambo.root.com)) since this is host CMS. Update: I´m doubting this.. it should probably also just be visible on root domain.
    • xxx page only shown on subdomain (https://rambo.root.com)

    In my local test there is currently no subdomain setup so I ask if this is a normal behavior?

    I´m btw trying to see if I can have one application with host and tenant specific CMS (https://support.abp.io/QA/Questions/6885/One-application-Admin-and-public-in-one-CMS-setup)

    This was btw tested with abp.io 8.0.5 MVC

  • User Avatar
    0
    ageiter created

    I get compilation errors when I have generated master-child entities. I am using version 8.1.0.

    I had to remove %%<if:HasMasterEntityNavigationProperties>%% and %%</if:HasMasterEntityNavigationProperties>%% in the following two templates:

    • Frontend.Blazor.Page.Partials.Item.razor.ChildEntitiesTabPanels.txt
    • Frontend.Blazor.Page.Partials.Item.razor.cs.ChildEntitiesMethods.txt

    This does not seem to be applied correctly.

    After my change, the entites were generated correctly. The changed result looks like this:

  • User Avatar
    0
    ageiter created

    In general, it would be nice if the lines of code were indented correctly in the from ABP Suite generated code.

  • User Avatar
    0
    ageiter created

    For a clean look of the extended classes in Blazor, an addition would have to be made in the .filenesting.json file (this is overwritten every time I generate something with ABP Suite...).

    Add the following to the extensionToExtension section:

    ".Extended.razor.cs": [
        ".razor"
      ]
    

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    For a clean look of the extended classes in Blazor, an addition would have to be made in the .filenesting.json file (this is overwritten every time I generate something with ABP Suite...).

    Add the following to the extensionToExtension section:

    ".Extended.razor.cs": [ 
        ".razor" 
      ] 
    

    Done ✅ (It will be included with v8.1.2+)

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    I get compilation errors when I have generated master-child entities. I am using version 8.1.0.

    I had to remove %%<if:HasMasterEntityNavigationProperties>%% and %%</if:HasMasterEntityNavigationProperties>%% in the following two templates:

    • Frontend.Blazor.Page.Partials.Item.razor.ChildEntitiesTabPanels.txt
    • Frontend.Blazor.Page.Partials.Item.razor.cs.ChildEntitiesMethods.txt

    This does not seem to be applied correctly.

    After my change, the entites were generated correctly. The changed result looks like this:

    Thanks for reporting this bug. We have already identified the problem and have an internal issue for that. It will be fixed with v8.1.2+.

  • User Avatar
    0
    ageiter created

    When I generate an entity several times in the ABP Suite, certain usings are added to the (extended) manager class each time (MyProject.Domain\Customers\CustomerManager.Extended.cs).

    I believe these are the entities that contain enums and navigation properties (the namespace is added, regardless of whether it already exists).

  • User Avatar
    0
    Chris created

    I'm using v8.1.1 and with the Suite I'm using the CRUD Page Generate to add a "one to many" navigation property with the Tenant entity using the new "Include entities from ABP modules" feature.

    The following error is preventing the Suite from building the solution:

    The property defined in Suite:

  • User Avatar
    0
    ageiter created

    The test classes are not generated correctly by the suite. Especially in the repository tests, the GetListAsync() methods are also called with the parameters that no longer appear in the method because "Filterable" has been deactivated.

    I also have problems with a child entity that has navigation properties. The generated test classes of the navigation property entities require a DataSeedContributor of the child entity, but this class was not generated.

  • User Avatar
    0
    rafael.gonzales created

    When generating a demo entity with Byte as a type, the demo test includes this in the EntityApplicationTests.cs file trying to match a byte with a method that requires an integer

  • User Avatar
    0
    s.beckers created

    After upgrading, the generate proxy command (@abp/ng.schematics:proxy-add) generates incorrect import statements. We're using generics in our dto's.

  • User Avatar
    0
    Sturla created

    Found this in Blazor Server 8.1.1

    Most are CMS but the first one is in all pages

    1

    Strange icon (face-frown) in all breadcrumbs

    2

    Two buttons doing the same thing

    3

    Why is this using the pussle-piece icon? Its also in Comments/Pages/Tags. Use fa-refresh if this is a refresh button.

    4

    Why don´t you databind Name with slug and add dash (-) for it? So the following slug would be this-is-some-name

    5

    What is Source in newsletter? There is nothing corresponding in the grid.

    6

    Strange Icons when editing Menu´s

    7

    When creating a sub menu item it doesn´t show up right away. You'll need to reload the page for it to show up.

  • User Avatar
    0
    Sturla created

    When adding an image to blog posts an extra postfix of Placeholder.jpg is added (or never removed)

    resulting in

    You have to notice this and remove it manually to get it working..

    I´m using Blazor Server

  • User Avatar
    0
    Sturla created

    CMS Plog post overview doesn´t size the images correctly.. images should be sized the same

    I´m using Blazor Server

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35