Open Closed

Bugs & Problems v3.1.X #282


0
maliming created
Support Team

Update the ABP CLI:

dotnet tool update -g Volo.Abp.Cli

Update the ABP Suite:

abp suite update or dotnet tool update -g Volo.Abp.Suite

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

92 Answer(s)
  • 2
    [email protected] created

    Hi,

    I've got a problem that when I generate new project and create new FullAuditedEntity entity. The abp sutie generate with error

  • 0
    rajasekhard2015 created

    Getting issue while running the migrator console after upgrade the application

    ERR] Failed executing DbCommand (845ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] CREATE TABLE [AbpAuditLogs] ( [Id] uniqueidentifier NOT NULL, [ExtraProperties] nvarchar(max) NULL, [ConcurrencyStamp] nvarchar(max) NULL, [ApplicationName] nvarchar(96) NULL, [UserId] uniqueidentifier NULL, [UserName] nvarchar(256) NULL, [TenantId] uniqueidentifier NULL, [TenantName] nvarchar(max) NULL, [ImpersonatorUserId] uniqueidentifier NULL, [ImpersonatorTenantId] uniqueidentifier NULL, [ExecutionTime] datetime2 NOT NULL, [ExecutionDuration] int NOT NULL, [ClientIpAddress] nvarchar(64) NULL, [ClientName] nvarchar(128) NULL, [ClientId] nvarchar(64) NULL, [CorrelationId] nvarchar(64) NULL, [BrowserInfo] nvarchar(512) NULL, [HttpMethod] nvarchar(16) NULL, [Url] nvarchar(256) NULL, [Exceptions] nvarchar(4000) NULL, [Comments] nvarchar(256) NULL, [HttpStatusCode] int NULL, CONSTRAINT [PK_AbpAuditLogs] PRIMARY KEY ([Id]) ); [08:28:52 ERR] There is already an object named 'AbpAuditLogs' in the database. Microsoft.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AbpAuditLogs' in the database. at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at Microsoft.Data.SqlClient.SqlCommand.InternalEndExecuteNonQuery(IAsyncResult asyncResult, Boolean isInternal, String endMethod) at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryInternal(IAsyncResult asyncResult) at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)

  • 1
    [email protected] created

    The issue is the generated files are not correct. The errors are as below (please refer to the image for more infomation)

    • Error CS0115 'Pages_Stores_CreateModal.ExecuteAsync()': no suitable method found to override AbpDemo.Web D:\Workspace\abp-demo\AbpDemo\src\AbpDemo.Web\obj\Debug\netcoreapp3.1\Razor\Pages\Stores\CreateModal.cshtml.g.cs 71 Active
    • Error CS0115 'Pages_Stores_EditModal.ExecuteAsync()': no suitable method found to override AbpDemo.Web D:\Workspace\abp-demo\AbpDemo\src\AbpDemo.Web\obj\Debug\netcoreapp3.1\Razor\Pages\Stores\EditModal.cshtml.g.cs 78 Active

    ABP Info/Config

    • ABP Framework version: v3.0.2
    • UI type: MVC
    • Tiered (MVC): yes

    Steps to reproduce the issue:

    1. Create project from Abp suite 3.0.2
    2. Build project success
    3. Create new Entity
    4. Check if everything is created
    5. Build the solition => error
  • 0
    gaoyao created

    Volo.FileManagement Module

    When configure the AbpDistributedEntityEventOptions in the ConfigureServices

        options.AutoEventSelectors.AddAll();
    

    It cause AutoMapper.AutoMapperMappingException Mapping types:DirectoryDescriptor -> FileDescriptorEto\FileDescriptor -> FileDescriptorEto

    So I have to create a profile class to fix it

     public class FileManagementMappingProfile : Profile
        {
            public FileManagementMappingProfile() 
            {
                CreateMap<FileDescriptor, FileDescriptorEto>();
                CreateMap<DirectoryDescriptor, FileDescriptorEto>();
            }
        }
    

    Volo.FileManagement should configure AbpAutoMapperOptions to add this mappingfile

    By the way,UploadFiles only support dropPast. It should support more ways, such as selecting files。

  • 0
    cotur created
    Support Team

    Hi @gaoyao,

    We've released a new minor version, please update your project to new version. AutoMapper exception and localization bugs are fixed for File Management module.

  • 0
    gaoyao created

    Thanks @cotur It's solved and displayed much better.If I want a simple online document preview function, for example: [http://view.officeapps.live.com/op/view.aspx?src= http://video.ch9.ms/build/2011/slides/TOOL-532T_Sutter.pptx]。 Src=“Document absolute path ”,Replace with /api/file-management/file-descriptor/download/fileId, I don’t know if it is possible, or there are other simpler ways

  • 0
    mattjoslin created

    Hi, The update has not solved this for me. We still have the same issue; we are unable to use the CRUD Page Generator in abp suite.

    Please help - we have just purchased this licence and so far are unable to get any benefit from it

  • 0
    alper created
    Support Team

    @mattjoslin, you didn't mention about your problem. pls detail your issue (your version, angular or mvc, logs etc...)

  • 0
    alper created
    Support Team

    @thanhvl1, I couldn't reproduce your problem. Did you update your project to the latest ABP packages?

  • 0
    [email protected] created

    hi @alper, Did you create Book as FullAuditedEntity or FullAuditedAggregateRoot ?

  • 0
    [email protected] created

    @alper, able to help with my issue please, It is very basic setup. Let me know if you need more details on the build or version info

  • 0
    sean.alford created

    ABP Suite 3.0.3

    Module CRUD Template Issues

    1. Incomplete namespace in the folowing files
    • CreateModule.cshtml
    • EditModal.cshtml
    • Index.cshtml

    Generated

    Should Generate

    1. AppService Template - CreateAsync / Tenant Issue

    Generated

    Should Generate

  • 0
    sean.alford created

    ABP Suite 3.0.3

    Module CRUD Runtime Issue

    STR

    1. Create ABP Module abp new Acme.Bookstore.Inventory -t module-pro
    2. Add simple entity using ABP Suite CRUD Generator
    3. Add Migration
    4. Update-Database
    5. Run Acme.Bookstore.Inventory.Web.Unified

    Volo.Abp.AbpInitializationException HResult=0x80131500 Message=An error occurred during the initialize Volo.Abp.Modularity.OnPreApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.AutoMapper.AbpAutoMapperModule, Volo.Abp.AutoMapper, Version=3.0.3.0, Culture=neutral, PublicKeyToken=null: Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters

    OrganizationCreateDto -> Organization (Destination member list) Eagle.Host.Support.Organizations.OrganizationCreateDto -> Eagle.Host.Support.Organizations.Organization (Destination member list)

    Unmapped properties: TenantId

    OrganizationUpdateDto -> Organization (Destination member list) Eagle.Host.Support.Organizations.OrganizationUpdateDto -> Eagle.Host.Support.Organizations.Organization (Destination member list)

    Unmapped properties: TenantId . See the inner exception for details. Source=Volo.Abp.Core StackTrace: at Volo.Abp.Modularity.ModuleManager.InitializeModules(ApplicationInitializationContext context) at Volo.Abp.AbpApplicationBase.InitializeModules() at Volo.Abp.AbpApplicationWithExternalServiceProvider.Initialize(IServiceProvider serviceProvider) at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.InitializeApplication(IApplicationBuilder app) at Eagle.Host.Support.Startup.Configure(IApplicationBuilder app) in C:\Users\seana\source\repos\azuredevops\EagleResearchCorp\Eagle.Host.Support\host\Eagle.Host.Support.Web.Unified\Startup.cs:line 15 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.<Build>b__0(IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.<UseStartup>b__2(IApplicationBuilder app) at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.<Configure>g__MiddlewareFilterBuilder|0(IApplicationBuilder builder) at Microsoft.AspNetCore.Server.IIS.Core.IISServerSetupFilter.<>c__DisplayClass2_0.<Configure>b__0(IApplicationBuilder app) at Microsoft.AspNetCore.HostFilteringStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app) at Microsoft.AspNetCore.Hosting.GenericWebHostService.<StartAsync>d__31.MoveNext()

    This exception was originally thrown at this call stack: [External Code]

  • 0
    alper created
    Support Team

    hi guys,

    reported Suite bugs are fixed. remove your existing Suite, then install again. don't update because the version didn't change. same version with bug fixes (because only Suite package is updated)

    abp suite remove && abp suite update
    

    then clear your NuGet cache and restore the NuGet packages.

  • 0
    sean.alford created

    @Alper I followed your remove & install instructions above.

    I'm now receiving this error when I click Save and Generate withing the CRUD generator

  • 1
    alper created
    Support Team

    @sean the problem is; these templates are in a different package Volo.Abp.Commercial.SuiteTemplates.dll and Volo.Abp.Commercial.SuiteTemplates.dll is also updated. What you need to do is; clear your NuGet cache and restore NuGet packages. This will restore to updated Volo.Abp.Commercial.SuiteTemplates.dll

  • 1
    alper created
    Support Team

    you can also download a specific commercial package with the following URL:

    Eg: Volo.Abp.Commercial.SuiteTemplates , version 3.0.3

    https://nuget.abp.io/<YOUR_API_KEY>/v3/package/Volo.Abp.Commercial.SuiteTemplates/3.0.3/Volo.Abp.Commercial.SuiteTemplates.3.0.3.nupkg
    
  • 0
    talhazengin created

    Problem in Seperated Identity Server, i used: yarn gulp

    but still has below error when starting identity server:

    An unhandled exception occurred while processing the request. AbpException: Could not find the bundle file '/libs/chart.js/Chart.css' from IWebContentFileProvider

  • 0
    alper created
    Support Team

    @talhazengin, Check the package.json... it must be as the following

    {
      "version": "1.0.0",
      "name": "my-app",
      "private": true,
      "dependencies": {
        "@volo/abp.aspnetcore.mvc.ui.theme.lepton": "^3.0.3",
        "@volo/saas": "^3.0.3",
        "@volo/audit-logging": "^3.0.3",
        "@volo/identity": "^3.0.3"
      }
    }
    
    
  • 0
    talhazengin created

    @alper, This time:

  • 0
    alper created
    Support Team

    @talhazengin, couldn't find package "xxx" on the npm registry. I think this is related to your network. See that the package exists https://www.npmjs.com/package/@volo/saas

    by the way, new minor version has been released. you can upgrade to v3.0.4

  • 0
    jackmcelhinney created

    I am trying to override AccountEmailer but the SendEmailConfirmationLinkAsync method is not marked as virtual in the Account Module like the SendPasswordResetLinkAsync is, so it can't be overriden. Is this intentional or a bug?

  • 1
    alper created
    Support Team

    @jackmcelhinney, we have added virtual to the SendEmailConfirmationLinkAsync This is the implementation, you can replace this with your implementation until the next release.

    public class AccountEmailer : IAccountEmailer, ITransientDependency
        {
            protected ITemplateRenderer TemplateRenderer { get; }
            protected IEmailSender EmailSender { get; }
            protected IStringLocalizer<AccountResource> StringLocalizer { get; }
            protected IAppUrlProvider AppUrlProvider { get; }
            protected ICurrentTenant CurrentTenant { get; }
    
            public AccountEmailer(
                IEmailSender emailSender,
                ITemplateRenderer templateRenderer,
                IStringLocalizer<AccountResource> stringLocalizer,
                IAppUrlProvider appUrlProvider,
                ICurrentTenant currentTenant)
            {
                EmailSender = emailSender;
                StringLocalizer = stringLocalizer;
                AppUrlProvider = appUrlProvider;
                CurrentTenant = currentTenant;
                TemplateRenderer = templateRenderer;
            }
    
            public virtual async Task SendPasswordResetLinkAsync(
                IdentityUser user,
                string resetToken,
                string appName)
            {
                Debug.Assert(CurrentTenant.Id == user.TenantId, "This method can only work for current tenant!");
    
                var url = await AppUrlProvider.GetResetPasswordUrlAsync(appName);
    
                var emailContent = await TemplateRenderer.RenderAsync(
                    AccountEmailTemplates.PasswordResetLink,
                    new
                    {
                        link = $"{url}?userId={user.Id}&tenantId={user.TenantId}&resetToken={UrlEncoder.Default.Encode(resetToken)}"
                    }
                );
    
                await EmailSender.SendAsync(
                    user.Email,
                    StringLocalizer["PasswordReset"],
                    emailContent
                );
            }
    
            public virtual async Task SendEmailConfirmationLinkAsync(
                IdentityUser user,
                string confirmationToken,
                string appName)
            {
                Debug.Assert(CurrentTenant.Id == user.TenantId, "This method can only work for current tenant!");
    
                var url = await AppUrlProvider.GetEmailConfirmationUrlAsync(appName);
    
                var emailContent = await TemplateRenderer.RenderAsync(
                    AccountEmailTemplates.EmailConfirmationLink,
                    new
                    {
                        link = $"{url}?userId={user.Id}&tenantId={user.TenantId}&confirmationToken={UrlEncoder.Default.Encode(confirmationToken)}"
                    }
                );
    
                await EmailSender.SendAsync(
                    user.Email,
                    StringLocalizer["EmailConfirmation"],
                    emailContent
                );
            }
        }
    
  • 0
    jackmcelhinney created

    Thanks @alper.

    Also having an issue with the abp suite today. Going to the modules page is throwing a 500/403 error. This is happening in 3.0.3 and 3.0.4. I have tried removing and adding the suite, and have made sure I am logged into the CLI. The page was working yesterday. Any suggestions?

    [16:50:05 ERR] Error occured while retrieving the module list. System.Exception: Remote server returns '500-Internal Server Error'. Message: An internal error occurred during your request!
       at Volo.Abp.Cli.ProjectBuilding.RemoteServiceExceptionHandler.EnsureSuccessfulHttpResponseAsync(HttpResponseMessage responseMessage) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\RemoteServiceExceptionHandler.cs:line 44
       at Volo.Abp.Cli.ProjectBuilding.ModuleInfoProvider.GetModuleListInternalAsync() in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleInfoProvider.cs:line 58
       at Volo.Abp.Cli.ProjectBuilding.ModuleInfoProvider.GetModuleListAsync() in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleInfoProvider.cs:line 45
       at Volo.Abp.Suite.Controllers.AbpSuiteController.GetModuleListAsync()
    
  • 1
    alper created
    Support Team

    thanks @jackmcelhinney for the feedback. I guess there's a problem with the ABP website. Probably will be fixed on Monday, 2020-07-20.

  • 0
    geffzhang created

    abp get-source Volo.Account [06:49:24 INF] ABP CLI (https://abp.io) [06:49:26 INF] Version 3.0.4 (Stable channel) [06:49:30 INF] Output folder: C:\workshop\abpsuite\Volo.Account [06:49:30 INF] Downloading source code of Volo.Account [06:49:30 INF] Version: [06:49:30 INF] Output folder: C:\workshop\abpsuite\Volo.Account [06:49:36 INF] Downloading module: Volo.Account, version: 3.0.4 Error occured while downloading source-code from https://abp.io/api/download/module/ : Remote server returns '403-Forbidden'. [06:49:37 ERR] Remote server returns '403-Forbidden'. System.Exception: Remote server returns '403-Forbidden'. at Volo.Abp.Cli.ProjectBuilding.RemoteServiceExceptionHandler.EnsureSuccessfulHttpResponseAsync(HttpResponseMessage responseMessage) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\RemoteServiceExceptionHandler.cs:line 44 at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.DownloadSourceCodeContentAsync(SourceCodeDownloadInputDto input) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 220 at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 107 at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48 at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 34 at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 65 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 55

    abp get-source Volo.PermissionManagement [06:52:32 INF] ABP CLI (https://abp.io) [06:52:33 INF] Version 3.0.4 (Stable channel) [06:52:35 INF] Output folder: C:\workshop\abpsuite\Volo.PermissionManagement [06:52:35 INF] Downloading source code of Volo.PermissionManagement [06:52:35 INF] Version: [06:52:35 INF] Output folder: C:\workshop\abpsuite\Volo.PermissionManagement [06:52:39 INF] Downloading module: Volo.PermissionManagement, version: 3.0.4 Error occured while downloading source-code from https://abp.io/api/download/module/ : Remote server returns '403-Forbidden'. [06:52:40 ERR] Remote server returns '403-Forbidden'. System.Exception: Remote server returns '403-Forbidden'. at Volo.Abp.Cli.ProjectBuilding.RemoteServiceExceptionHandler.EnsureSuccessfulHttpResponseAsync(HttpResponseMessage responseMessage) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\RemoteServiceExceptionHandler.cs:line 44 at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.DownloadSourceCodeContentAsync(SourceCodeDownloadInputDto input) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 220 at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\AbpIoSourceCodeStore.cs:line 107 at Volo.Abp.Cli.ProjectBuilding.ModuleProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\ModuleProjectBuilder.cs:line 48 at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadAsync(String moduleName, String outputFolder, String version, String gitHubAbpLocalRepositoryPath, String gitHubVoloLocalRepositoryPath, AbpCommandLineOptions options) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\Services\SourceCodeDownloadService.cs:line 34 at Volo.Abp.Cli.Commands.GetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\GetSourceCommand.cs:line 65

  • 0
    maliming created
    Support Team

    hi geffzhang

    I have confirmed the problem and will fix it later

  • 0
    alper created
    Support Team

    @geffzhang can you try again to download the source-code?

  • 0
    [email protected] created

    Hello, I opened and issue on Github regarding Dynamic Form Extensions for Angular calls Options PropCallback Infinite times. We paid for a commercial license so I'm posting the bug here as well: Having issues with generating a drop down on the users screen using Dynamic Form Extensions for Angular. The below code calls my API infinite number of times until I close the Edit or Create Modal window. Copied example from this page: https://docs.abp.io/en/commercial/latest/ui/angular/dynamic-form-extensions#formprop-r-any

    ABP Info/Config ABP Framework version: v3.0.4 UI type: Angular

    import { Validators } from '@angular/forms';
    import { ePropType, FormProp, FormPropList } from '@abp/ng.theme.shared/extensions';
    import { Identity,IdentityCreateFormPropContributors,
        IdentityEditFormPropContributors } from '@volo/abp.ng.identity';
    import { ClientsService } from '../../clients/clients/clients.service';
    import { map } from 'rxjs/operators';
    import { AbstractClassPart } from '@angular/compiler/src/output/output_ast';
    
    const clientProp = new FormProp<Identity.UserItem>({
      type: ePropType.String,
      name: 'ClientId',
      displayName: 'Client',
      isExtra: true,
      autocomplete: "off",
      defaultValue: "",
      options: data => {
          const service = data.getInjected(ClientsService);
    
          return service.getAll()
          .pipe(
              map(({items}) => 
              items.map(
                  client => ({key: client.name, value: client.id})
              )),
          );
      }
    });
    
    export function clientIdPropContributor(propList: FormPropList<Identity.UserItem>){
        propList.addByIndex(clientProp, 4);
    }
    
    export const identityCreateFormPropContributors: IdentityCreateFormPropContributors = {
      'Identity.UsersComponent': [clientIdPropContributor],
    };
    
    export const identityEditFormPropContributors: IdentityEditFormPropContributors = {
      'Identity.UsersComponent': [clientIdPropContributor],
    };
    

  • 0
    anthonyh created

    Hello,

    I used ABP Suite to create an entity with a navigation property. On the add navigation property page, I chose Modal as the UI pick type. When I ran the application, on the page for creating the new entity, I clicked Pick, nothing happened.

    In Chrome developer tools, I got a 404 error for not able to find the lookupModal.js file. 

    I looked at the createModal.js file which calls the lookupModal.js and found the scriptUrl is set to "/Pages/Rfid/Shared/lookupModal.js".

    However the folders' structure is like the picture below:

    So I think the correct scriptUrl should be "/Pages/Shared/lookupModal.js". I manually corrected the scriptUrl. This time when I clicked the Pick button, I got another error message which is shown in the picture below:

    In a word, I think there are two bugs. First, the auto-generated scriptUrl is incorrect. It mismatches the folders' structure. Second, the Pick button still doesn't work even after fixing the scriptUrl. 

  • 0
    [email protected] created

    Hello, anybody met an issue when the JS file returned from a call to Web controller get caches?

    Look at this picture

    **This is very annoying since my changes to the JS is not reflected on the sites, wasted a lot of time. **

    Googled and tried to turn off the brower cache but the JS call and the JS file is still cached.

    Anybody shed some light?

    UPDATE Actually it can be turned of by sending no cache on dev only config.

  • 0
    [email protected] created

    After Updating to Angular version of ABP 3.0.5 I am having a lot of issues with when I try to view the Audit Logs, the SQL times out. I didn't have this issue before updating to 3.0.5. Below is the error I am getting in my log file. Any help would be greatly appreciated.

    Error Number:-2,State:0,Class:11 2020-08-07 09:30:10.430 -05:00 [ERR] ---------- RemoteServiceErrorInfo ---------- 2020-08-07 09:30:10.430 -05:00 [ERR] { "code": null, "message": "An internal error occurred during your request!", "details": null, "validationErrors": null } 2020-08-07 09:30:10.430 -05:00 [ERR] Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (258): The wait operation timed out. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__164_0(Task1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location where exception was thrown --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.AsyncEnumerator.InitializeReaderAsync(DbContext _, Boolean result, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func4 operation, Func4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable1 source, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable1 source, CancellationToken cancellationToken) at Volo.Abp.AuditLogging.EntityFrameworkCore.EfCoreAuditLogRepository.GetListAsync(String sorting, Int32 maxResultCount, Int32 skipCount, Nullable1 startTime, Nullable1 endTime, String httpMethod, String url, String userName, String applicationName, String correlationId, Nullable1 maxExecutionDuration, Nullable1 minExecutionDuration, Nullable1 hasException, Nullable1 httpStatusCode, Boolean includeDetails, CancellationToken cancellationToken) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Volo.Abp.AuditLogging.AuditLogsAppService.GetListAsync(GetAuditLogListDto input) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Volo.Abp.AuditLogging.AuditLogsController.GetListAsync(GetAuditLogListDto input) at lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) ClientConnectionId:bcc40ccc-14da-456d-acbd-50b96f030501 Error Number:-2,State:0,Class:11

  • 0
    alper created
    Support Team

    hi joe,

    See my SQL missing index query. https://gist.github.com/ebicoglu/ebe2d8649f61c7e64bd724243f7d7237

    Run this on your database, and create all indicies. I guess it will report a missing index for AbpAuditLogs.

  • 0
    alper created
    Support Team

    @anthony, sorry but couldn't reproduce your issue on the version v3.0.5

    if you have an older version, update it. if you have modified the template, revert it.

  • 0
    alper created
    Support Team

    @[email protected],

    that issue has been resolved. see https://github.com/abpframework/abp/issues/4865

  • 0
    anthonyh created

    @alper Thanks for your reply.

    I am using version v3.0.5. After comparing your solution with mine, I think the problem happens when using the module template. So if you use the module template to create a module named BookManagement, and then follow the instructions on this page, you will get the exact problem like this:

  • 0
    alper created
    Support Team

    @anthonyh, I'll check the module template code generation and get back to you.

  • 0
    alper created
    Support Team

    @anthonyh, you are correct! it's already fixed for the next release.

  • 0
    [email protected] created

    3.0.5 Angular

    I used abp.suite for the first time to create two new entities with angular front ends. One of the angular modules works just fine. But the other when I try to start the app throws the below error and I cannot figure out why.

    Failed to compile.

    ./src/app/management/customers/customers.service.ts Module build failed (from ./node_modules/@ngtools/webpack/src/index.js): Error: C:\Users\J\source\repos\Azure\Angular\src\app\management\customers\customers.service.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. at AngularCompilerPlugin.getCompiledFile (C:\Users\J\source\repos\Azure\Angular\[email protected]\webpack\src\angular_compiler_plugin.js:935:23) at C:\Users\J\source\repos\Azure\Angular\[email protected]\webpack\src\loader.js:42:31 at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5)

    If I comment out all the angular customer code in service, component and module it works just fine.

    Any ideas?

  • 0
    anthonyh created

    @alper It is great to hear that you have fixed it. Please also make sure that the Pick button works fine because even I manully correct the scriptUrl, I still get a problem shown in the picture below:

  • 0
    Mehmet created
    Support Team

    Hi Joe,

    How can I reproduce the suite problem? Can you describe step by step?

  • 0
    [email protected] created

    @Mehmet,I actually figured out the issue. It was because I used a namespace like Management.Customer and that is what messed everything up. I didn't realize I shouldn't use a namespace like that. I finally noticed it said that next to the Namespace text box when you hover over the question mark in ABP Suite. Thanks for checking

  • 0
    alexandru-bagu created

    https://prnt.sc/tzegb2

    I have been having this issue for the past two weeks. Are we not supposed to be able to download the sources?

  • 0
    maliming created
    Support Team

    hi @alexandru-bagu

    The license of your organization is that Team cannot download the source code. If you need the source code, you can consider upgrading your license.

    https://commercial.abp.io/pricing

  • 0
    alper created
    Support Team

    @alexandru-bagu

  • 0
    alexandru-bagu created

    Thanks, I hadn't thought of checking that but it makes sense. It might have been helpful to specify a reason for not being able to download the source code instead of a generic 403.

  • 1
    alper created
    Support Team

    @anthonyh, to fix the problem saying "DataTables warning: Non-table node initialisation (ABP-TABLE)." : in your module solution, move _ViewImports.cshtml file from src\Acme.MyProModule.Web\Pages\MyProModule to src\Acme.MyProModule.Web\Pages

  • 0
    hungvt created

    hi support team, I got an error when edit clients (Identity server). My projecyt is UI angular.


    Thank!

  • 0
    armanozak created
    Support Team

    Hi @hungvt,

    This was a bug. It is going to be resolved by v3.1.

    Thanks. Have a nice day.

  • 0
    pkouame created

    after abp switch-to-preview (abp cli updated to 3.1.0-rc.4 ) on a 3.0.5 project, I get this error regarding an npm gulp installation:

    [13:09:58 INF] Checking installed npm global packages... [13:10:00 INF] Installing gulp... npm ERR! code EEXIST npm ERR! syscall symlink npm ERR! path ../lib/node_modules/gulp/bin/gulp.js npm ERR! dest /usr/local/bin/gulp npm ERR! errno -17 npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/gulp/bin/gulp.js' -> '/usr/local/bin/gulp' npm ERR! File exists: /usr/local/bin/gulp npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly.

    my version of gulp and gulp cli (installed via yarn) are :

    gulp -v [13:20:03] CLI version 3.9.1 [13:20:03] Local version 4.0.2

    A little later during the switch, I get :

    [12:34:12 INF] Running Gulp on /Users/me/dev/aqua/abp-pro/v300/Kuvu.Track/aspnet-core/src/Kuvu.Track.HttpApi.Host/ [12:34:13] Using gulpfile ~/dev/aqua/abp-pro/v300/Kuvu.Track/aspnet-core/src/Kuvu.Track.HttpApi.Host/gulpfile.js /Users/me/.config/yarn/global/node_modules/gulp/bin/gulp.js:129 gulpInst.start.apply(gulpInst, toRun); ^

    TypeError: Cannot read property 'apply' of undefined at /Users/me/.config/yarn/global/node_modules/gulp/bin/gulp.js:129:20 at processTicksAndRejections (internal/process/task_queues.js:79:11)

    UPDATE: In addition to the above. the back-end does not start until I upgrade my Microsoft.Extensions.FileProviders.Embedded from 3.1.5 to 3.1.6 in Domain.Shared

    <PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="3.1.6" />

    Anything to worry about?

  • 0
    alper created
    Support Team

    @pkouame, you need to update Microsoft.Extensions.FileProviders.Embedded package to 3.1.6 manually.

    and for yarn gulp problem; it checks the installed NPM packages and searches for [email protected]. See https://github.com/abpframework/abp/blob/95d2eb200d704768f67764dd3c1b02258e9e6f6f/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NpmGlobalPackagesChecker.cs#L27

  • 0
    pkouame created

    @alper - on FileProviders I updated my project file manually to let it compile - I was just letting you guys know - I'm on visual studio code on the mac

    on gulp - how do you suggest I fix this problem ? Isn't this a problem with your installer ?

    UPDATE:

    after 3.1.0 release abp switch-to-stable generates the same gulp install error but since mine is installed via yarn gulpfile.js is processed correctly as long as my version of gulp-cli is updated to CLI version 2.3.0. Just to let you guys know (don't know where to report these problems - so just doing so here if it helps anyone). Also FileProviders still needs to be manually updated to 3.1.6 or else aspnet-core doesn't build.

  • 0
    maliming created
    Support Team

    hi @songshuai1986

    This is like a network problem, you can try to use proxies for abp.exe and abp-suite.exe.

  • 0
    [email protected] created

    Generated solution using ABP CLI command: abp new Acme.BookStore -t app-pro -d ef -u angular -m react-native -csf Then using ABP Suite v3.1.0.0 to generate CRUD page.

    It worked as usual when keeping the default Namespace: But it did not work if using another Namespace: The Books menu is missing: If we type in the address bar: http://localhost:4200/books we got 403 error:

    In our AspNetZero project, we are using Namespace to ogranize business sectors. We are trying to migrate to ABP, hope this feature should work as in AspNetZero.

  • 0
    armanozak created
    Support Team

    Hi [email protected],

    This happens due to a mismatch of required policies between the code generated by suite and the app configuration response. There is a PR that fixes the issue and it will not exist in v3.1.1 patch.

    Although the release is soon, until then, you may fix the required policies manually. Two files each entity are affected (in Angular app):

    In ./src/app/books/book/providers/book-route.provider.ts file:

    • requiredPolicy: 'BookStore.MyNamespace' should be requiredPolicy: 'BookStore.Books'.

    In ./src/app/books/book/components/book.component.html file

    • *abpPermission="'BookStore.MyNamespace.Create'" should be *abpPermission="'BookStore.Books.Create'"
    • *abpPermission="'BookStore.MyNamespace.Delete'" should be *abpPermission="'BookStore.Books.Delete'"
    • *abpPermission="'BookStore.MyNamespace.Edit'" should be *abpPermission="'BookStore.Books.Edit'"

    Sorry for the inconvenience.

  • 0
    [email protected] created

    Thank @armanozak, related to the Permission, I think it's better if ABP Suite can group permissions by Namespace:

    Moreover, I found another issue ralated to ABP Suite: Inconsistent API endpoint generation rule between Server and Client (Angular). In [Acme.HttpApi], the route is using '%%entity-name-camelcase%%':

        [RemoteService]
        [Area("app")]
        [ControllerName("MyEntity")]
        [Route("api/app/myEntity")]     // THIS LINE
        public class MyEntityController : AbpController, IPaymentMethodAppService
        {
        ...
        }
    

    In [my-entity.service.ts], the url is using '<%= kebab(name) %>':

      create = (input: MyEntityCreateDto) =>
        this.restService.request<any, MyEntityDto>({
          method: 'POST',
          url: '/api/app/my-entity',    // THIS LINE
          body: input,
        },
        { apiName: this.apiName })
    

    I think we should use '<%= kebab(namePlural) %>' for the enpoints, similar to other existing enpoints:

    • ApiResources: /api/identity-server/api-resources
    • AuditLogs: ​/api​/audit-logging​/audit-logs
  • 0
    Johannes created

    We are getting the same bug in 3.1.0 that was reported in version 3.0.3 by [email protected]:

    Steps to reproduce:

    1. Created new project with abp suite 3.1.0, using EF, Angular, React
    2. Followed guide at https://docs.abp.io/en/abp/latest/Entity-Framework-Core-MySQL to switch to mysql
    3. Successfully migrated db, everything works
    4. Added the following entity in the suite (with only 1 string property):

    Pressing save and generate fails.

    We tried using just the "AuditedEntity" instead of "FullAuditedEntity" and this works correctly.

  • 0
    Esben_Dalgaard created

    Made with new project in Abp suite 3.1.0, Angular, EFC(Mysql), react. The Angular frontend responds with 404 when querying for entities with navigational properties. Swagger communication with the Sql server works fine. Tried with "Audited entity "and "FullAuditedAggrigateRoot".

    Edit: Problem found. Angular frontend writes API url like this /api/app/join-products-child/ and swagger writes it like /api/app/joinProductsChild/ Swagger uses Camelcase and Angular uses dashes. Change the url's in src/app/proxy/ to match the swagger ones.

  • 0
    armanozak created
    Support Team

    Hi [email protected], Esben_Dalgaard,

    The issue you have reported about the casing of the endpoints will be fixed in v3.1.1. Until then, you may use abp generate-proxy command to reproduce the services with correct cases.

  • 0
    jackmcelhinney created

    Having some issues with the ngx-datatable in the Angular UI after migrating to 3.1.0. I'm getting the following error when on a page with a datatable after upgrading with no other changes:

    I tried providing ScrollbarHelper from @swimlane/ngx-datatable in the module, then it throws the same error for DimensionsHelper, ColumnChangesService, and DatatableComponent, the latter of which providing does not change the error.

    Are there any changes I need to make to keep the datatables working in 3.1.0? Any ideas? Thanks in advance.

  • 0
    Mehmet created
    Support Team

    Hi @jackmcelhinney

    Actually, you do not need the provide ScrollBarHelper and other services. Did you add the NgxDatatableModule to imports array of your module?

    I can't reproduce the problem.

    If you still have problems, can you explain the replication steps in detail with us?

  • 0
    alper created
    Support Team

    hi [email protected] I can verify that different namespace issue has been resolved in 3.1.1. This minor version will be released soon.

  • 0
    alper created
    Support Team

    @Johannes thanks for your feedback. it's reproduced and fixed in v3.1.1

  • 0
    jackmcelhinney created

    Hey @Mehmet,

    Seems like it was just a package issue. Running yarn upgrade fixed the problem.

  • 0
    [email protected] created

    ABP Framework version: v3.1.1 Would you please provide guidance on why I am unable to install ABP Suite v3.1.1. Here are the steps taken:

    Step 1: dotnet tool install -g volo.abp.cli (Success)

    Step 2: abp login <username> -p <password> (Success)

    Step 3: abp suite install (Error below)

    Internet connection is fine.

  • 0
    alper created
    Support Team

    try this

    dotnet tool install Volo.Abp.Suite --add-source https://nuget.abp.io/YOUR-PRIVATE-API-KEY/v3/index.json -g
    

    Make sure to replace the YOUR-PRIVATE-API-KEY with yours (it's in your project's NuGet.Config file)

  • 0
    [email protected] created

    Thanks for the response. Same issue:

  • 0
    alper created
    Support Team

    @[email protected], I created a new ticket for you. Let's move to https://support.abp.io/QA/Questions/414/ABP-Suite-install-problem

  • 0
    [email protected] created

    Hi,

    After upgrade to version 3.1.1, I've got an error when I edit template in Abp Suite

  • 0
    alper created
    Support Team

    @thanhvl1 is it an Angular project?

  • 0
    alper created
    Support Team

    @thanhvl1 , if you remove Suite and install it again, the problem will be fixed.

    abp suite remove
    abp suite install
    
  • 0
    [email protected] created

    thanks @alper, it worked !

  • 0
    edelivery created

    Hi!

    I've created identity-extended module with guide :https://docs.abp.io/en/commercial/latest/ui/angular/entity-action-extensions in version: 2.x.x. it's ok but after I upgraded to version 3.1.0 it has error

    The picture below when I tried to do the guide above, after the v3.x.x I don't see the argument in forRoot(option?: IdentityConfigOptions) like v2.x.x

    This is another error when I remove the argument and use only IdentityConfigModule.forRoot({}), with app-routing

  • 0
    armanozak created
    Support Team

    Hi edelivery,

    Contributors should now be passed to the forLazy static method of the module instead of the config module. Please refer to the extensions documentation updated for v3.

  • 1
    ninomartini created

    Created a new project with ABP Suite (Angular, MongoDB, v3.1.2). The CRUD Page Generator will not generate the Angular code if two or more enum properties defined. I tried uninstalling the ABP Suite and reinstalling. Also trried clearing my NuGet cache without success. This was working in v3.0.5.

    Any other suggestions?

  • 0
    edelivery created

    Hi armanozak I refer to the extensions documentation updated for v3. But I think IdentityConfigModule.forRoot() call to IdentityModule not IdentityExtendModule so it had error My app-routing.module:

  • 0
    armanozak created
    Support Team

    Hi edelivery,

    The route should either load IdentityModule directly and call its static forLazy method or should load your custom module (i.e. IdentityExtendModule) and which calls IdentityModule.forChild in its imports metadata.

  • 0
    edelivery created

    Hi armanozak Can you please make an example for load my custom module with IdentityModule?

  • 0
    armanozak created
    Support Team
    @NgModule({
      imports: [
        // other imports...
    
        IdentityModule.forChild({
          entityActionContributors: identityEntityActionContributors,
        }),
      ],
    })
    export class IdentityExtendModule { }
    
  • 0
    edelivery created

    It's work fine thanks armanozak

  • 0
    alper created
    Support Team

    @ninomartini , thanks for reporting the issue. it has been fixed and the new preview version will release tomorrow.

  • 0
    DanielAndreasen created

    Hello!

    I have noticed that logs of user logouts in the abpscuritylogs table sometimes doesn't register which user actually logged out. I would like to use this information of which user logged out of the system, so its important that the value is never null.

    Project is using abp 3.1.0

  • 0
    alper created
    Support Team

    hi DanielAndreasen,

    I see that Logout action called when there's no logged in user. this will happen in 2 ways,

    • the user might click the logout twice (browser sends both actions and the second one will be without UserId)
    • or the user clicks the Logout link from a bookmark or copy-paste the logout URL to the browser.
  • 0
    DanielAndreasen created

    Hello @alper,

    In the example I included in my previous post, it was neither of the 2 scenarios you described that resulted in "userid" and "UserName" getting a Null value in my database table. The issue seems to occur randomly in a session where I repeatedly login/logout (for the purpose of testing).

    I also find it it problematic that a UserId might not be logged if the user accidently presses the logout button twice. Is this intentional?

  • 0
    alper created
    Support Team

    @Daniel, I created a new topic for this, can you write your finding under this topic, https://support.abp.io/QA/Questions/434/UserId-and-Username-is-null-in-Logout-action

  • 0
    murat.kebabci created

    Hi, I am updating 3.0.5 to 3.1.2, But Login button of home page not work. I can't login. Is there any config I don't know? And then I have created a empty project. The problem continues.

    "@volo/abp.ng.account": "~3.1.2",
    "@volo/abp.ng.audit-logging": "~3.1.2",
    "@volo/abp.ng.identity": "~3.1.2",
    "@volo/abp.ng.identity-server": "~3.1.2",
    "@volo/abp.ng.language-management": "~3.1.2",
    "@volo/abp.ng.saas": "~3.1.2",
    "@volo/abp.ng.text-template-management": "~3.1.2",
    "@volo/abp.ng.theme.lepton": "~3.1.2",
    

    This code is not redirect and not push login page!

    login() {
        this.authService.initLogin();
      }
    

    I wrote account/login a[href] tag on home page, but not work!

    This is my env.

    import { Config } from '@abp/ng.core';
    
    const baseUrl = 'http://localhost:4200';
    
    export const environment = {
      production: false,
      application: {
        baseUrl,
        name: 'XXX',
      },
      oAuthConfig: {
        issuer: 'http://localhost:5002',
        redirectUri: baseUrl,
        clientId: 'XXX_App',
        responseType: 'code',
        scope: 'offline_access XXX',
      },
      apis: {
        default: {
          url: 'http://localhost:5001',
          rootNamespace: 'XXX',
        },
      },
    } as Config.Environment;
    
    
  • 0
    Mehmet created
    Support Team

    Hi @murat.kebabci

    Unfortunately, the authorization code flow does not work with a backend that running on HTTP. You should run your backend on HTTPS URL or change the oAuthConfig for resource owner password flow.

    oAuthConfig for resource owner password flow:

      oAuthConfig: {
        issuer: 'http://localhost:5002',
        clientId: 'XXX_App',
        dummyClientSecret: '1q2w3e*',
        scope: 'XXX',
        oidc: false,
        requireHttps: false,
      },
    

    See that question related to this: https://support.abp.io/QA/Questions/411/how-to-config-oAuthConfig-in-angular

  • 0
    scott7106 created

    I have customized the tenant property of the saas module, adding several properties.

    In ZiplineModuleExtensionConfigurator, I added the following:

    tenant.AddOrUpdateProperty<ServerType>(
                "ServerType",
                property =>
                {
                    property.Attributes.Add(new RequiredAttribute());
                    property.DisplayName = LocalizableString.Create<ZiplineResource>("ServerType");
                });
    

    In ZiplineEfCoreEntityExtensionMappings, I added the following:

    ObjectExtensionManager.Instance.MapEfCoreProperty<Tenant, ServerType>("ServerType");
    

    The drop down list shows up correctly. However, when I attempt to save the tenant (either on New or Edit), I get an invalid cast exception.

    The stack trace is provided below: 2020-09-21 18:06:06.905 -04:00 [ERR] Invalid cast from 'System.Int64' to 'OtisEd.Zipline.Environments.EnvironmentType'. System.InvalidCastException: Invalid cast from 'System.Int64' to 'OtisEd.Zipline.Environments.EnvironmentType'. at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider) at System.Int64.System.IConvertible.ToType(Type type, IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at Volo.Abp.EntityFrameworkCore.AbpDbContext1.HandleExtraPropertiesOnSave(EntityEntry entry) at Volo.Abp.EntityFrameworkCore.AbpDbContext1.ApplyAbpConcepts(EntityEntry entry, EntityChangeReport changeReport) at Volo.Abp.EntityFrameworkCore.AbpDbContext1.ApplyAbpConcepts() at Volo.Abp.EntityFrameworkCore.AbpDbContext1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Volo.Abp.Uow.UnitOfWork.SaveChangesAsync(CancellationToken cancellationToken) at Volo.Saas.Host.TenantAppService.CreateAsync(SaasTenantCreateDto input) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) at lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

  • 0
    DanielAndreasen created

    Exposed Plaintext passwords in GUI and Database

    Setting a new password from the web GUI (in Administration --> Identity management --> Users) will log the password in plain text.

    After setting the new password for a user, I am able to see it in the details of an audit log:

    This log will of course also be present in the corresponding database table:

    I consider this a critical security flaw - user passwords should never be stored as plaintext even if it is just in a log.

    <br>


    ABP Framework version: v3.1.0 UI type: Angular Tiered (MVC) or Identity Server Seperated (Angular): No

  • 0
    DanielAndreasen created

    When adding a new sub unit to a organization tree, an error will occur that prevents the action from succeeding: Adding a new root unit to the organization tree will solve the issue momentarily until a user has re-entered the "Organization unit" page.


    ABP Framework version: v3.1.0 UI type: Angular Browser: Chrome Tiered (MVC) or Identity Server Seperated (Angular): No

  • 0
    Mehmet created
    Support Team

    Hi @DanielAndreasen

    This problem has been resolved with v3.2-rc.2.

  • 0
    DanielAndreasen created

    When selecting multiple datepicker input in a CRUD-page the previously selected datepicker window is not closed which results in multiple windows overlapping eachother:

    This issue also occurs when selecting multiple datepicker input fields on the window that is presented when creating new entities in the standard CRUD-pages:

    Additionally, there is no obvious way for the user to navigate between months or years in the datepicker.