Base solution for your next web application

Activities of "npdevs"

Hi, Sorry, that was my fault. I found a place where Configuration.BackgroundJobs.IsJobExecutionEnabled was set to false. Thanks for getting a link to the code.

BTW, is it possible to disable UserTokenExpirationWorker only?

Hello,

I'm using the default BackgroundWorkerManager and several PeriodicBackgroundWorkers (Sync versions). Sometimes none of background workers are started at all (and no "DEBUG Start background worker: <worker name>" messages in the output) until workManager.Start() is executed explicitly. So the question is if it's required to run workManager.Start() explicitly (didn't find information on the documentation, previously workers started working without workManager.Start())? Is the any condition for starting workManager automatically?

Asp.Zero 12.4.2.

Thanks.

Hello again,

I see AddTokenValidityKeyAsync method which inserts new token record without loading a full list of tokens was introduced (https://github.com/aspnetboilerplate/aspnetboilerplate/issues/5244#issuecomment-1446209120), but it is still not used by TokenAuthController (v12.3.1). Could you please explain why?

Thanks.

Hello,

About the second case. When opening Administration/Users page, UI sends GetUsersInput:

{"filter":"","permissions":[],"role":"","onlyLockedUsers":false,"maxResultCount":10,"skipCount":0}

public class GetUsersInput : PagedAndSortedInputDto, IShouldNormalize, IGetUsersInput
{
    ...
    public int? Role { get; set; }
    ...
}

Looks like Newtonsoft.Json serializer allows using empty strings as null values, but System.Text.Json serializer doesn't. I found a workaround for this case, but it's better to have a native solution.

Thanks.

Hello.

Is it possible to force the UI (both mvc and angular) to send true/false values instead of strings ("true"/"false")? And *null *instead of "" (empty string) for null values? System.Text.Json serializer requires this.

Thanks.

Hello,

This background job is enabled, but the table contains few thousands not expired token items. What exactly are this records used for?

Hello.

I found, that issuing a new token takes too much time when AbpUserTokens table has more than a few thousands records. This is caused by the way UserRepository adds new record to the table.

AbpUserStore.cs:

public virtual async Task AddTokenValidityKeyAsync(...)
{
            ...
            await UserRepository.EnsureCollectionLoadedAsync(user, u => u.Tokens, cancellationToken);
            user.Tokens.Add(new UserToken(user, TokenValidityKeyProvider, tokenValidityKey, null, expireDate));
            ...
}

In the tickets with similar issue (https://support.aspnetzero.com/QA/Questions/10764/Bad-performance-due-to-AbpUserTokens-table, https://support.aspnetzero.com/QA/Questions/10764/Bad-performance-due-to-AbpUserTokens-table) the suggesting was to clear the table from time to time. But what is the purpose of the stored information at all? Where is the data from this table used? Is it possible to skip saving tokens info at all and what side effects will I get then?

P.S. Asp.net zero 12.0

I've resolved this myself.

I've followed instructions for Public Web Site https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Public-Website and applied them to .Web.Mvc project.

I've executed "yarn" and "npm run create-bundles" commands, and after rebuild it works.

Hi,

Can not login into application.

Nothing happens when we enter credentials and click "Log in" button.

Also there are many errors of loading static resources: .css and .js files.

We login as default "admin" account. We use ASP.NET CORE MVC & jQuery version of template for .NET Core 3.1 framework, template version 8.1.0. Running project Feeder.Web.Mvc from VS 2019 in Windows 10.

Thanks!

Login in Host's account helped. It works. Thank you!

Showing 1 to 10 of 16 entries