Activities of "liangshiwei"

Command aggregate failed: PlanExecutor error during aggregation :: caused by :: Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.

You can try this:

public class ProductRepositry: ...
{
    public async Task<...>  GetListAsync(...)
    {
        var dbContext = await GetDbContextAsync(cancellationToken);
        var collection = dbContext.Collection<YourEntity>();

        var queryable =  ApplyDataFilters<IMongoQueryable<YourEntity>, YourEntity>(
            dbContext.SessionHandle != null
                ? collection.AsQueryable(dbContext.SessionHandle, new AggregateOptions(){AllowDiskUse = true})
                : collection.AsQueryable(new AggregateOptions(){AllowDiskUse = true})
        );
        
        queryable....ToListAsync()
    }
}

Hi,

I will check it.

Hi,

Could you provide the steps to reproduce? thanks

Hi,

Because the clock skew, default value is 5 mins. see: https://stackoverflow.com/questions/47153080/clock-skew-and-tokens

Hi,

That's all, when you create a tenant and set its connection string, you will see the database has been created

We will release 5.3.1 version today.

Hi,

This is design by Microsoft.

You can try this if you need:

public class MyValidateAntiforgeryTokenFilter : IAsyncAuthorizationFilter, ITransientDependency , IAntiforgeryPolicy
{
    private readonly IAntiforgery _antiforgery;

    public MyValidateAntiforgeryTokenFilter(IAntiforgery antiforgery)
    {
        _antiforgery = antiforgery;
    }

    public async Task OnAuthorizationAsync(AuthorizationFilterContext context)
    {
        if (HttpMethods.IsPost(context.HttpContext.Request.Method) && context.ActionDescriptor.DisplayName == "/Account/Login")
        {
            try
            {
                await _antiforgery.ValidateRequestAsync(context.HttpContext);
            }
            catch (AntiforgeryValidationException)
            {
                // redirect to index page
                context.Result = new RedirectResult("/");
            }
        }
    }
}

Configure<MvcOptions>(options =>
{
    options.Filters.AddService<MyValidateAntiforgeryTokenFilter>(2000);
});

HI,

I will check it.

Hi,

The Angular client uses the JWT token instead of Cookies.

You can set the client's access token lifetime

Hi,

You can try to persist IDS protection keys to the Redis.

var dataProtectionBuilder = context.Services.AddDataProtection().SetApplicationName("MyProjectName");
if (!hostingEnvironment.IsDevelopment())
{
    var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
    dataProtectionBuilder.PersistKeysToStackExchangeRedis(redis, "MyProjectName-Protection-Keys");
}
Showing 4921 to 4930 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.