Open Closed

MemoEdit-control-crashes-if-input-text-is-larger-than-16294-characters #8620


User avatar
0
cvarela@ld created
  • UI Type: Blazor Server

  • Database System: EF Core (SQL Server)

  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

  • Exception message and full stack trace: Unhandled exception in circuit 'npp8ExY4dQ4kCuEQK_iQNFtpCzJGvMqS03updQRtp2g'. System.ObjectDisposedException: IFeatureCollection has been disposed. Object name: 'Collection'. at Microsoft.AspNetCore.Http.Features.FeatureReferences1.ThrowContextDisposed() at Microsoft.AspNetCore.Http.Features.FeatureReferences1.Fetch[TFeature](TFeature& cached, Func2 factory) at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetAsync() at Volo.Abp.AspNetCore.Mvc.Client.RemotePermissionChecker.IsGrantedAsync(String name) at Volo.Abp.AspNetCore.Mvc.Client.RemotePermissionChecker.IsGrantedAsync(ClaimsPrincipal claimsPrincipal, String name) at Volo.Abp.Authorization.PermissionRequirementHandler.HandleRequirementAsync(AuthorizationHandlerContext context, PermissionRequirement requirement) at Microsoft.AspNetCore.Authorization.AuthorizationHandler1.HandleAsync(AuthorizationHandlerContext context) at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements) at Microsoft.AspNetCore.Components.Authorization.AuthorizeViewCore.IsAuthorizedAsync(ClaimsPrincipal user) at Microsoft.AspNetCore.Components.Authorization.AuthorizeViewCore.OnParametersSetAsync() at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

  • Steps to reproduce the issue:

  • Create an entity with a nvarchar(max) string property
  • Use MemoEdit control on blazor for the string property
  • Enter a string with more than 16294 characters

In my case I'm trying to store a string representing an XML Schema Definition but any string with that many characters crashes the app.


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a test project to reproduce?

    I will download and check it.

    liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    cvarela@ld created

    Hi,

    Sent you an email with the test project and an example of the input i'm trying to put into the MemoEdit. The project is the standard book CRUD example ABP Studio generates and the property "name" in the book entity was modified to nvarchar(max). Any text with more than 16294 makes the modal close and crashes the app.

    Thank you for your help

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    context.Services.Configure<HubOptions>(options =>
    {
        // Set to 256KB
        options.MaximumReceiveMessageSize = 262144;
    });
    
  • User Avatar
    0
    cvarela@ld created

    This solved the issue, thank you.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Good news.

Made with ❤️ on ABP v9.2.0-preview. Updated on January 08, 2025, 14:09