Activities of "sgal"

thanks

first download, can't run at all. after some rescues, it can run, but there is still a dataseed problem.

I create a demo to found why razor page in library not found 404, finally with the help of @liangshiwei, the reason is the library project sdk is Microsoft.NET.Sdk.Web, not Microsoft.NET.Sdk, although I quoted Microsoft.AspNetCore.Mvc.RazorPages package ,but it hasn't been updated for a long time, and it useless.

I ran into some problems

https://support.abp.io/QA/Questions/1493/How-can-I-run-the-demo-in-pro-module

I tested this module https://docs.abp.io/en/commercial/latest/modules/payment

When I add some extension, I want to test this, but when I run this demo appear some error

[11:57:13 INF] Request starting HTTP/1.1 POST http://localhost:57891/Payment/WeChat/PrePayment?paymentRequestId=41648e16-fee0-7d74-de67-39fd2a4a6f19 application/x-www-form-urlencoded 521
[11:57:13 INF] Identity.Application was not authenticated. Failure message: Unprotect ticket failed
[11:57:13 INF] AUDIT LOG: [404: POST   ] /Payment/WeChat/PrePayment
- UserName - UserId                 :  -
- ClientIpAddress        : ::1
- ExecutionDuration      : 0

[11:57:13 INF] Request finished HTTP/1.1 POST http://localhost:57891/Payment/WeChat/PrePayment?paymentRequestId=41648e16-fee0-7d74-de67-39fd2a4a6f19 application/x-www-form-urlencoded 521 - 404 0 - 0.8390ms

and I'm consider whether is not logged in, but there are some problems logging in

[12:02:56 INF] AUDIT LOG: [200: GET    ] /Account/Login
- UserName - UserId                 :  -
- ClientIpAddress        : ::1
- ExecutionDuration      : 4
- Actions:
  - Volo.Abp.Account.Web.Pages.Account.LoginModel.OnGetAsync (0 ms.)
    {}
- Exceptions:
  - Undefined setting: Abp.Account.EnableLocalLogin
    Volo.Abp.AbpException: Undefined setting: Abp.Account.EnableLocalLogin
   at Volo.Abp.Settings.SettingDefinitionManager.Get(String name)
   at Volo.Abp.Settings.SettingProvider.GetOrNullAsync(String name)
   at Volo.Abp.Settings.SettingProviderExtensions.IsTrueAsync(ISettingProvider settingProvider, String name)
   at Volo.Abp.Account.Web.Pages.Account.LoginModel.OnGetAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.GenericTaskHandlerMethod.Convert[T](Object taskAsObject)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.GenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isComplete
d)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResourceFilter()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
Answer

Yes, when I check and find the document, this issue is still http

Answer

This is not related to Csrf, I think your application config is not correct

Our focus is different

Answer

I tried to test locally, the problem still exists, you can send an api request without logging in, and return a successful response

Answer

I believe this is bug

I do not authorize direct access, but the setcsrf request succeeded

Answer

I found this pr: https://github.com/abpframework/abp/commit/c453c53b5c0f52a8486e86ab65695ebddac45c3d

Showing 1 to 10 of 47 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09