Käyttäjän "andmattia" toiminnot

I send an email with code

HI maliming

we are focus in a project roll out . I prepare a zip folder next week.

Thanks for your patience

Hi

I use the guide suply from my prev ticket.

I don't do anything in bundling, just copy ang paste the lepton theme css on custom folder change to apply my style

I've

follow the guide suggested on my prev ticket How-to-customize-IdentityServer-login-page and it'works fine on debug but when I move to production env the lepton theme ignore my csutom folder during buduling use only global.css

Is it normal?

2022-04-28 12:27:33.346 +02:00 [INF] Bundling __bundles/Lepton.Global.EBEE615D31F6CB72FC61AE315D1127D4.css (13 files)
2022-04-28 12:27:33.421 +02:00 [INF]   > Minified /libs/abp/core/abp.css (1331 bytes -> 868 bytes)
2022-04-28 12:27:33.464 +02:00 [INF]   > Minified /libs/@fortawesome/fontawesome-free/css/all.css (73577 bytes -> 53572 bytes)
2022-04-28 12:27:33.475 +02:00 [INF]   > Minified /libs/@fortawesome/fontawesome-free/css/v4-shims.css (41312 bytes -> 33344 bytes)
2022-04-28 12:27:33.566 +02:00 [INF]   > Minified /libs/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css (54850 bytes -> 43189 bytes)
2022-04-28 12:27:33.573 +02:00 [INF]   > Minified /libs/datatables.net-bs5/css/dataTables.bootstrap5.css (9115 bytes -> 8152 bytes)
2022-04-28 12:27:33.574 +02:00 [INF]   > Minified /libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-styles.css (464 bytes -> 379 bytes)
2022-04-28 12:27:33.658 +02:00 [INF]   > Minified /global-styles.css (26 bytes -> 0 bytes)
2022-04-28 12:27:33.669 +02:00 [INF] Bundled __bundles/Lepton.Global.EBEE615D31F6CB72FC61AE315D1127D4.css (664474 bytes)

After login I still see the them6 (because is purple on left)

Ok but this il the flow from ABP.IO to ANZ but user start process from ANZ page in SAAS enviroment and need to be redirect to a auth server. The target auth server is in multi tenant enviroment. The correct flow I think is the first on the picture below but at the moment is not possibile. A mitigation of this could be setting tenant automaticly (es using {TENANCY_NAME} on config)

Hi @gterdem

this schema works on multitenant side?

My team try to use it in SAAS app but they are not able to pagging tenant to Identity? we need to use special config to passing tenant on login process?

Hi @maliming

thanks for the support.

I try to remove with DisableValidationAttribute and it works!

Hi

this is the code

public class GetLayoutTemplateInput : CustomPagedAndSortedInputDto
{
    public GetLayoutTemplateInput() : base()
    {
        GridDefinitionType = typeof(LayoutTemplateDto);
    }
    public string Filter { get; set; }
}


    [Serializable]
    public class CustomPagedAndSortedInputDto : PagedAndSortedResultRequestDto, IFilteredResultRequest
    {
        public FilterDto[] Filters { get; set; }
        public Type GridDefinitionType { get; set; }

        public virtual string GetDefaultSorting()
        {
            ...
        }

        public override IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
        {
            //Set default sorting
            ...
            
         }
    }
}

public class FilterDto : IFilter
{
    public string Field { get; set; }
    public string Operator { get; set; }
    public object Value { get; set; }
    public string GetFullObject()
    {
        var q = this.Field.UppercaseFirst();

        if (!this.BaseObject.IsNullOrWhiteSpace())
        {
            ...
        }

        return q;
    }

    public string BaseObject { get; set; }
    public string PropertyName { get; set; }
    public string Logic { get; set; }
    public IFilter[] Filters { get; set; }
}

Hi

this is the full stack log for this issue

2022-04-13 12:21:09.582 +02:00 [INF] Executing action method Dm.DynamicTemplate.LayoutTemplateController.ProvaInput (Dm.DynamicTemplate.HttpApi) - Validation state: "Valid"
2022-04-13 12:21:11.093 +02:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "An internal error occurred during your request!",
  "details": null,
  "data": {},
  "validationErrors": null
}

2022-04-13 12:21:11.093 +02:00 [ERR] Property accessor 'DeclaringMethod' on object 'System.RuntimeType' threw the following exception:'Method may only be called on a Type for which Type.IsGenericParameter is true.'
System.Reflection.TargetInvocationException: Property accessor 'DeclaringMethod' on object 'System.RuntimeType' threw the following exception:'Method may only be called on a Type for which Type.IsGenericParameter is true.'
 ---> System.InvalidOperationException: Method may only be called on a Type for which Type.IsGenericParameter is true.
   at System.RuntimeType.get_DeclaringMethod()
   --- End of inner exception stack trace ---
   at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
   at Volo.Abp.Validation.DataAnnotationObjectValidationContributor.ValidateObjectRecursively(List`1 errors, Object validatingObject, Int32 currentDepth)
   at Volo.Abp.Validation.DataAnnotationObjectValidationContributor.ValidateObjectRecursively(List`1 errors, Object validatingObject, Int32 currentDepth)
   at Volo.Abp.Validation.DataAnnotationObjectValidationContributor.AddErrorsAsync(ObjectValidationContext context)
   at Volo.Abp.Validation.ObjectValidator.GetErrorsAsync(Object validatingObject, String name, Boolean allowNull)
   at Volo.Abp.Validation.MethodInvocationValidator.AddMethodParameterValidationErrorsAsync(IAbpValidationResult context, ParameterInfo parameterInfo, Object parameterValue)
   at Volo.Abp.Validation.MethodInvocationValidator.AddMethodParameterValidationErrorsAsync(MethodInvocationValidationContext context)
   at Volo.Abp.Validation.MethodInvocationValidator.ValidateAsync(MethodInvocationValidationContext context)
   at Volo.Abp.Validation.ValidationInterceptor.ValidateAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync()
   at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope)
   at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync()
   at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at lambda_method1367(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
   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()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

  • ABP Framework version: v5.2.0
  • UI type: Angular
  • DB provider: MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): no Tired / IS separeted
  • Exception message and stack trace:
[Area(DynamicTemplateRemoteServiceConsts.ModuleName)]
[RemoteService(Name = DynamicTemplateRemoteServiceConsts.RemoteServiceName)]
[Route("api/custom/layout-template")]
public class LayoutTemplateController : DynamicTemplateController, ILayoutTemplateAppService
{
    protected ILayoutTemplateAppService LayoutTemplateAppService { get; }

    public LayoutTemplateController(ILayoutTemplateAppService layoutTemplateAppService)
    {
        LayoutTemplateAppService = layoutTemplateAppService;
    }

    [HttpPost]
    [Route("give-layout-templates")]
    public Task<PagedResultDto<LayoutTemplateDto>> GiveLayoutTemplates(GetLayoutTemplateInput input)
    {
        return LayoutTemplateAppService.GiveLayoutTemplates(input);
    }

This generate an error

2022-04-13 12:21:09.582 +02:00 [INF] Executing action method Dm.DynamicTemplate.LayoutTemplateController.ProvaInput (Dm.DynamicTemplate.HttpApi) - Validation state: "Valid"
2022-04-13 12:21:11.093 +02:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "An internal error occurred during your request!",
  "details": null,
  "data": {},
  "validationErrors": null
}

2022-04-13 12:21:11.093 +02:00 [ERR] Property accessor 'DeclaringMethod' on object 'System.RuntimeType' threw the following exception:'Method may only be called on a Type for which Type.IsGenericParameter is true.'
System.Reflection.TargetInvocationException: Property accessor 'DeclaringMethod' on object 'System.RuntimeType' threw the following exception:'Method may only be called on a Type for which Type.IsGenericParameter is true.'
 ---> System.InvalidOperationException: Method may only be called on a Type for which Type.IsGenericParameter is true.
   at System.RuntimeType.get_DeclaringMethod()
   --- End of inner exception stack trace ---

if I use the code below in Http APi (importing Application Module or in Host Module) the API works fine (I try in 5.1.4 and 5.2.0) this happen only with this input object. The inpunt object exted a class that extend PagedAndSortedResultRequestDto. Internally I have an array object the same type.

public class Filter {
    public string Name {get;set;}
    public Filter[] Filters {get;set;}
    }

        Configure<AbpAspNetCoreMvcOptions>(options =>
        {
            options.ConventionalControllers.Create(typeof(DynamicTemplateApplicationModule).Assembly, opts =>
            {
                opts.RootPath = "custom/";
            });
        });```
Näytetään 101 - 110/133 tietueesta
Made with ❤️ on ABP v8.2.0-preview Updated on maaliskuuta 25, 2024, 15.11