Base solution for your next web application

Activities of "geertveenstra"

Hi,

Using ASP.NET Core MVC & JQuery version 6.8.0 I have just migrated my project to version 6.8.0, but during testing I get javascript errors.

During the minifying process I receive following error:

Processing wwwroot/view-resources/Areas/App/Views/_Bundles/app-layout-libs.js Bundled Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Strict-mode does not allow assignment to undefined variables: r Strict-mode does not allow assignment to undefined variables: g Strict-mode does not allow assignment to undefined variables: b Processing wwwroot/view-resources/Areas/App/Views/_Bundles/host-dashboard-libs.js Bundled Minified

I have also tried with a fresh downloaded copy of 6.8.0, but I am receiving the same errors with that. After some trial and error it seems that the line wwwroot/lib/chart.js/dist/Chart.bundle.min.js is causing the problems. On which pages is this package used (maybe I can leave it out of the bundle)?

sorry for late response, using the latest version.

Today I had some issues where users are copying their username / password out of an email and the username was pasted but contained spaces. After this the login was (off course) unsuccesfull and the account was blocked after 3 tries.

Should a username and/or password be able to contain spaces at the beginning or end (if not they should maybe be filtered out automatically) ?

Hi,

Could it be that I cannot access https://github.com/aspnetzero/aspnet-zero-core/wiki even though I have access to the private repository (the Wiki link is not visible).

I am using Npgsql yes.

i will give it a try, thanks for your effort !

Sure, it is still the original code.

var userIdsInOrganizationUnit = _userOrganizationUnitRepository.GetAll() .Where(uou => uou.OrganizationUnitId == input.OrganizationUnitId) .Select(uou => uou.UserId);

requiredPermissionName is marked obsolete, will it be removed in a future version of abp ? Should it be changed to permissionDependency instead ?

Hi, nothing was changed inside the FindUsers().

Your code is also giving the same Exception.

var query = UserManager.Users.Where(u => !userIdsInOrganizationUnit.Contains(u.Id));
var userCount = await query.CountAsync();

If I change the code to

var query = UserManager.Users.Where(u => !userIdsInOrganizationUnit.Contains(Convert.ToInt64(u.Id)));
var userCount = await query.CountAsync();

it is working fine and the non-assigned users show up in the modal

Since changing to Core 2.2 I get many warnings during Build.

Should all @Html.Partial be changed to await @Html.PartialAsync ?

If I convert it explicitly to Int64 the exception is also not happening.

.Where(u => !userIdsInOrganizationUnit.Contains(Convert.ToInt64(u.Id)))

instead of

.Where(u => !userIdsInOrganizationUnit.Contains(u.Id))

I always thought there was no difference between using long or Int64 types ?

Showing 11 to 20 of 39 entries