Atividades de "uyarbtrlp"

  • ABP Framework version: v.6.0.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello,

I've implemented the ELSA for our workflow requirement according to https://community.abp.io/posts/integrating-elsa-.net-workflows-with-abp-commercial-io32k420 and https://community.abp.io/posts/using-elsa-workflow-with-the-abp-framework-773siqi9. It runs perfectly, but when we want to distinguish the workflows between tenants, I need to get the tenant id from somewhere. They've written the CustomTenantAccessor to access and change the tenant id. Here is the example: https://github.com/elsa-workflows/elsa-core/blob/bc6013aabc7cdbdb8bee336f52f99fb9e341e533/src/samples/aspnet/Elsa.Samples.CustomTenantIdSource/CustomTenantAccessor.cs. I thought that I can use the ICurrentTenant service to get the tenant information. Unfortunately, It is retrieved as null and I couldn't use the multi tenancy option on the ELSA. Here is the steps that I followed:

  1. Create a clean project by using the abp suite (Application Template & Tiered)
  2. Add the regarding packages into the relevant layers

Domain ->

PackageReference Include="Elsa" Version="2.9.1" 
PackageReference Include="Elsa.Activities.Console" Version="2.9.1" 
PackageReference Include="Elsa.Activities.Http" Version="2.9.1" 
PackageReference Include="Elsa.Activities.Email" Version="2.9.1" 
PackageReference Include="Elsa.Activities.Temporal.Quartz" Version="2.9.1" 

EntityFrameworkCore ->

PackageReference Include="Elsa.Persistence.EntityFramework.SqlServer" Version="2.9.1"

HttpApi ->

 PackageReference Include="Elsa.Server.Api" Version="2.9.1" 

Web ->

PackageReference Include="Elsa.Designer.Components.Web" Version="2.9.1"
  1. Insert a new class named as CustomTenantAccessor

  2. Configure the ELSA on HttpApi.Host module and add api versioning (ELSA uses).

  3. Add api versioning on Web module as above

  4. Insert Elsa.cshmtl and Elsa.cshtml.cs under Pages folder on Web

  5. Add the HttpApi.Host url into the appsettings.json as CorsOrigins to prevent CORS

  6. Navigate to /elsa on Web and see the CurrentTenant value on CustomTenantAccessor. It is empty.

  7. When I send the request to one of the ELSA endpoints on Swagger, I can see that the tenant information is fulfilled and there are headers regarding cookies, authorization etc.

It seems that there are some missing parts while sending the request. Since there are no information about how to implement the multi tenancy on ELSA, there could be some missing parts on my implementation. How can I get the tenant id for the ELSA endpoints while working on ELSA dashboard?

Hello Abp,

I've tried to run your KeycloakDemo solution and I've successfully logged in by using the web client, but there is no swagger client implementation. I've tried to implement the swagger client on Keycloak by copying the 'myclient' client. I've faced the CORS error while trying to log in by using the swagger client. Here is the steps that I followed:

  • Create a client called KeycloakDemo_Swagger
  • Give the appropriate URL's for the client
  • Set the access type property as confidential to use the client secret and client id
  • Add a client scope which is the audience and map it with the client
  • I've written the swagger implementation in KeycloakDemoHttpApiHostModule like that
  • I can see that the OAuth modal is opened and navigate the regarding client successfully
  • After logging in with the user, I see that there is a CORS error

I haven't found the solution yet and I want to ask you about what could be caused this problem. Besides that, It would be very helpful, If you implemented it in the example solution. In the near future, we may use the keycloak as an identity provider. Adding the keycloak completely working in the sample solution would provide a perfect way for the users whom want to change the IdentityServer to Keycloak.

  • ABP Framework version: v6.0.0rc-2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello ABP,

I've been trying to set the text of one of the action button programmatically. I've tried the method that we have on action or visible properties.

But I've got meaningless information as you can see on image below.

How can I set the text according to some properties returned by the API?

Thanks. BR, Baturalp

  • ABP Framework version: v5.3.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC)): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
  • ABP Framework version: v5.3.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello,

We have a modal called FetchDocumentsModal which fetches the documents from a source. We open the modal by using the action button and 'open' method which you described into the documentation for the modal. In the OnGetAsync method inside the FetchDocumentsModal.cshtml.cs, we call some application services to realize the functionality. Whenever the application service throws the exception because there is an error regarding some parameters, the modal cannot be created and I couldn't see anything about the exception on the UI, but I can see the exception message which is returned from the backend-side on developer tools.

How can I show the exception on the MVC UI when the error occurs in OnGetAsync method while using the modal?

Thanks.

  • ABP Framework version: v5.1.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello,

We want to publish the event to both Kafka and RabbitMQ at the same time. Are there any examples or suggestions about that?

  • ABP Framework version: v5.1.1
  • UI type: MVC
  • DB provider: EF Core
  • Module Template (MVC): yes
  • Separated Deployment & Databases Scenario (MVC): yes
  • Steps to reproduce the issue:"

Hello Abp,

We are currently using the module template with UI. We want to use the module template, when the multitenancy is true or false. Our module should be runnable according to the multitenancy option. We want to integrate the both way.

In PermissionDefinitionProvider, we set our permissions like in the documentation. We have the permissions that are only for the tenant and also for the both side. While we are running the module with multitenancy = false, tenant side permissions is not granted. But we want to use these permissions because we don't need the multitenancy. This is the case.

Here is my question: Does the Abp handle this situation or should we put our logic into the PermissionDefinitionProvider (like if the multitenancy is false, we define new permission groups which are only MultiTenancySides.Host. But in this way, we need to duplicate the permissions.)

Thanks.

  • ABP Framework version: v5.1.4
  • UI type: MVC
  • DB provider: EF Core
  • Module Template: yes
  • Steps to reproduce the issue:"
  1. I've created the module template by using abp suite.
  2. I've used the Separated Deployment & Databases Scenario. Therefore, I've runned update-db.ps1 script in both HttpApi.Host and IdentityServer projects.
  3. I've runned the solution.
  4. I've created the TestUserHandler class under TestApplication.Domain and subscribe the UserEto.
  5. I've given a reference Volo.Abp.Users.Domain for using UserEto.
   public class TestUserHandler : IDistributedEventHandler<EntityCreatedEto<UserEto>>, ITransientDependency
    {

        private readonly ICurrentTenant _currentTenant;


        private readonly ILogger<TestUserHandler> _logger;


        public TestUserHandler( ICurrentTenant currentTenant, ILogger<TestUserHandler> logger)
        {
            _currentTenant = currentTenant;
            _logger = logger;
        }
        public virtual async Task HandleEventAsync(EntityCreatedEto<UserEto> eventData)
        {

            
        }
    }
  1. I couldn't subscribe the event while adding a new user.
  2. When I use the same structure on Single (Unified) Application Scenario, I can subscribe the event and see the data of new user. It is same for EntityUpdatedEto<UserEto>
  3. Do I need to add external packages or codes for getting the event data or is it a kind of bug? How can I resolve this?

ABP Framework version: v5.1.1 UI type: MVC DB provider: EF Core Module Template: yes Steps to reproduce the issue:"

  1. I've created the module template by using abp cli ->abp new Acme.IssueManagement -t module-pro -v 5.1.1
  2. I've used the Separated Deployment & Databases Scenario. Therefore, I've runned update-db.ps1 script in both HttpApi.Host and IdentityServer projects.
  3. I've runned the solution.
  4. When I click one of the default modules page such as Identity Management -> Users from web ui, I face this error:
  5. Users endpoint works properly on Swagger UI. Exception message and stack trace: These are the logs from Web.Host 2022-03-14 11:13:55.979 +03:00 [INF] Request starting HTTP/2 GET https://localhost:44369/Identity/Users - - 2022-03-14 11:13:55.981 +03:00 [INF] Start processing HTTP request GET "https://localhost:44356/api/abp/application-configuration?api-version=1.0" 2022-03-14 11:13:55.982 +03:00 [INF] Sending HTTP request GET "https://localhost:44356/api/abp/application-configuration?api-version=1.0" 2022-03-14 11:13:56.069 +03:00 [INF] Received HTTP response headers after 87.0187ms - 200 2022-03-14 11:13:56.069 +03:00 [INF] End processing HTTP request after 87.2745ms - 200 2022-03-14 11:13:56.088 +03:00 [INF] Executing endpoint '/Identity/Users/Index' 2022-03-14 11:13:56.088 +03:00 [INF] Route matched with {page = "/Identity/Users/Index", action = "", controller = "", area = ""}. Executing page /Identity/Users/Index 2022-03-14 11:13:56.088 +03:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2022-03-14 11:13:56.088 +03:00 [INF] Executing handler method Volo.Abp.Identity.Web.Pages.Identity.Users.IndexModel.OnGetAsync - ModelState is "Valid" 2022-03-14 11:13:56.088 +03:00 [INF] Start processing HTTP request GET "https://localhost:44356/api/identity/users/lookup/roles?api-version=1.0" 2022-03-14 11:13:56.088 +03:00 [INF] Sending HTTP request GET "https://localhost:44356/api/identity/users/lookup/roles?api-version=1.0" 2022-03-14 11:13:56.123 +03:00 [INF] Received HTTP response headers after 34.93ms - 200 2022-03-14 11:13:56.124 +03:00 [INF] End processing HTTP request after 35.0652ms - 200 2022-03-14 11:13:56.125 +03:00 [INF] Start processing HTTP request GET "https://localhost:44356/api/identity/users/lookup/organization-units?api-version=1.0" 2022-03-14 11:13:56.125 +03:00 [INF] Sending HTTP request GET "https://localhost:44356/api/identity/users/lookup/organization-units?api-version=1.0" 2022-03-14 11:13:56.144 +03:00 [INF] Received HTTP response headers after 18.891ms - 200 2022-03-14 11:13:56.144 +03:00 [INF] End processing HTTP request after 19.0409ms - 200 2022-03-14 11:13:56.145 +03:00 [INF] Executed handler method OnGetAsync, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult. 2022-03-14 11:13:56.165 +03:00 [DBG] Added bundle 'Lepton.Global' to the page in 2.16 ms. 2022-03-14 11:13:56.167 +03:00 [DBG] Added bundle 'Volo.Abp.Identity.Web.Pages.Identity.Users.IndexModel' to the page in 1.73 ms. 2022-03-14 11:13:56.180 +03:00 [DBG] Added bundle 'Lepton.Global' to the page in 4.01 ms. 2022-03-14 11:13:56.182 +03:00 [DBG] Added bundle 'Volo.Abp.Identity.Web.Pages.Identity.Users.IndexModel' to the page in 1.08 ms. 2022-03-14 11:13:56.190 +03:00 [INF] Executed page /Identity/Users/Index in 101.7788ms 2022-03-14 11:13:56.190 +03:00 [INF] Executed endpoint '/Identity/Users/Index' 2022-03-14 11:13:56.193 +03:00 [INF] Request finished HTTP/2 GET https://localhost:44369/Identity/Users - - - 200 - text/html;+charset=utf-8 213.7965ms

How can I resolve this?

  • ABP Framework version: v4.4.3
  • UI type: MVC
  • DB provider: EF Core
  • Module Template: yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello ABP,

I have created a new solution with version of 4.4.3 like described in your documentation.

abp new Acme.IssueManagement -t module-pro -v 4.4.3

I have used CurrentUser.UserName on SampleAppService which comes from default template for taking the username. I saw the username was null. Other values were fine.

If I try on developer tools by using "abp.currentUser", I can see the username.

I have faced this issue on my application and I wanted to be sure whether the cause of the problem was related with me or not. Is that kind a bug or am I missing somethings?

Thanks.

  • ABP Framework version: v4.4.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello Abp,

I want to add a menu item to navigation menu when a new entity is inserted from create modal. I have searched from documents but I could not find any information about this operation. Do you have any suggestion about that?

Mostrando 11 até 20 de 27 registros
Made with ❤️ on ABP v8.2.0-preview Updated on março 25, 2024, 15:11