Activities of "rafael.gonzales"

In the AppService generated by ABP Suite, there is an issue in some methods in the AppService if a non-nullable string property is created in an entity.

src/Demo74rc1.Application/EntityDemos/EntityDemosAppService.cs

A solution could be to use the Check.NotNull method

Adding this before the CreateAsync method call

input.StringColumn = Check.NotNull(input.StringColumn, nameof(input.StringColumn));

In ABP Suite Generated Code.

In the DbContext generated,

src/Demo74rc1.EntityFrameworkCore/EntityFrameworkCore/Demo74rc1DbContext.cs

Can you add a null-forgiving operator in the generated DbSet?

This is to avoid a Warning or Error (if WarningAsError is activated)

In ABP Suite, there is an update in the entity generator, whenever you select a string, there is a new option to allow empty strings but it's only enabled when the "Required" option is checked.

What is the sense of allowing empty strings if it's required? Why not allow Nullable strings in the ABP Suite entity generator?

ABP Framework version: v7.4.0.rc-1 UI Type: MVC Database System: EF Core (PostgreSQL) Tiered (for MVC) or Auth Server Separated (for Angular): no

In a nullable reference-enabled project, there is a missing "?" in the parameter of MapHealthChecksUiEndpoints

Actual version:

    private static IServiceCollection MapHealthChecksUiEndpoints
        (this IServiceCollection services, 
            Action<global::HealthChecks.UI.Configuration.Options> setupOption = null)
    {
        services.Configure<AbpEndpointRouterOptions>(routerOptions =>
        {
            routerOptions.EndpointConfigureActions.Add(endpointContext =>
            {
                endpointContext.Endpoints.MapHealthChecksUI(setupOption);
            });
        });
        return services;
    }

It should be:

    private static IServiceCollection MapHealthChecksUiEndpoints
        (this IServiceCollection services, 
            Action<global::HealthChecks.UI.Configuration.Options>? setupOption = null)
    {
        services.Configure<AbpEndpointRouterOptions>(routerOptions =>
        {
            routerOptions.EndpointConfigureActions.Add(endpointContext =>
            {
                endpointContext.Endpoints.MapHealthChecksUI(setupOption);
            });
        });
        return services;
    }

ABP Framework version: v7.4.0.rc-1 UI Type: MVC Database System: EF Core (PostgreSQL) Tiered (for MVC) or Auth Server Separated (for Angular): no

If <WarningsAsErrors>Nullable</WarningsAsErrors> is enabled, there is an issue with the property name.

It suggested adding the "required" modifier to solve this issue as shown next.

ABP Framework version: v7.4.0.rc-1 UI Type: MVC Database System: EF Core (PostgreSQL) Tiered (for MVC) or Auth Server Separated (for Angular): no

In src/Demo74rc1.Domain/OpenIddict/OpenIddictDataSeedContributor.cs

There is a possible null reference argument in that method (in visual studio and rider) because it's using the ABP wrapper of string.IsNullOrWhiteSpace(str)

If I replace the

if (!webPublicClientId.IsNullOrWhiteSpace()) with this if (!string.IsNullOrWhiteSpace(webPublicClientId))

The issue with the compiler disappeared.

ABP Framework version: v7.4.0.rc-1 UI Type: MVC Database System: EF Core (PostgreSQL) Tiered (for MVC) or Auth Server Separated (for Angular): no

There is an issue in test/Demo74rc1.TestBase/Security/FakeCurrentPrincipalAccessor.cs

private ClaimsPrincipal _principal;

_principal is not initialized in the constructor making a warning (or error if <WarningsAsErrors>Nullable</WarningsAsErrors> is setup)

A solution could be to make ClaimsPrincipal nullable private ClaimsPrincipal? _principal;

In the same file, there is an issue with the implementation of the interface

The solution could be to change the interface ICurrentPrincipalAccessor.cs in Volo.Abp.Security.Claims and make the IDisposable as IDisposable?

public interface ICurrentPrincipalAccessor
{
    ClaimsPrincipal Principal { get; }

    IDisposable? Change(ClaimsPrincipal principal);
}
  • ABP Framework version: v7.4.0.rc-1
  • UI Type: MVC
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

There are a lot of warnings that can be included in the next RC. There are related to the IConfiguration interface.

For example, in OpenIddictDataSeedContributor.cs


Line 86: var webClientRootUrl = configurationSection["Demo74rc1_Web:RootUrl"].EnsureEndsWith('/');
Line 206: var blazorServerTieredRootUrl = configurationSection["Demo74rc1_BlazorServerTiered:RootUrl"].EnsureEndsWith('/');
Line 250:var webPublicRootUrl = configurationSection["Demo74rc1_Web_Public:RootUrl"].EnsureEndsWith('/');
Line 274: var webPublicTieredRootUrl = configurationSection["Demo74rc1_Web_Public_Tiered:RootUrl"].EnsureEndsWith('/');

To avoid those warnings, you include a null-forgiving operator(!) for the configurationSection variable.

Hi, The link is not working

  • ABP Framework version: v7.3.2
  • UI Type: All
  • Database System: All
  • Tiered (for MVC) or Auth Server Separated (for Angular): Anyone
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

It would be helpful to enable the "nullable" field in the column generator for all the types since Nullable projects are the default now. Right now ABP Suite generates nullable strings as only "string" in Nullable projects and It's causing to generate errors/warnings when creating those.

Showing 151 to 160 of 177 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 October 30, 2025, 06:33