Open Closed

After Upgrading to abp 7.2.2 in File Management Module GetContentAsync method throwing error #5497


User avatar
0
raju.thinnaluri@gmail.com created

Hi,

We implemented the Blazor WebAssembly app as a SaaS model in microservice. after upgrade the abp to 7.2.2 version, the File Management module not working.

Provide us with the following info:

  • ABP Framework version: v7.2.2
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
 [Version: 1.5.0.0] 2023-07-29 21:14:24.509 +08:00 [INF] Request origin "https://localhost:44307" does not have permission to access the resource.
{"EventId":{"Id":6,"Name":"OriginNotAllowed"},"SourceContext":"Microsoft.AspNetCore.Cors.Infrastructure.CorsService","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.5.0.0] 2023-07-29 21:14:24.545 +08:00 [INF] Executing endpoint '"Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)"'
{"EventId":{"Name":"ExecutingEndpoint"},"SourceContext":"Microsoft.AspNetCore.Routing.EndpointMiddleware","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","CorrelationId":"4d1927d7a8e34802befe111c24ea6995","ClientId":"UnifiedDigitalPlatform_Blazor","UserId":"bb73b02e-eada-193c-a3e2-3a0526d1d755","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.5.0.0] 2023-07-29 21:14:24.545 +08:00 [INF] Route matched with "{area = \"fileManagement\", controller = \"DirectoryDescriptors\", action = \"GetContent\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[Volo.FileManagement.Directories.DirectoryContentDto]] GetContentAsync(Volo.FileManagement.Directories.DirectoryContentRequestInput)" on controller "Volo.FileManagement.Directories.DirectoryDescriptorController" ("Volo.FileManagement.HttpApi").
{"EventId":{"Id":3,"Name":"ControllerActionExecuting"},"SourceContext":"Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker","ActionId":"20ea2cfd-99ab-46e2-8767-8589b358bb9c","ActionName":"Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","CorrelationId":"4d1927d7a8e34802befe111c24ea6995","ClientId":"UnifiedDigitalPlatform_Blazor","UserId":"bb73b02e-eada-193c-a3e2-3a0526d1d755","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.5.0.0] 2023-07-29 21:14:24.547 +08:00 [INF] Executing action method "Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)" - Validation state: "Valid"
{"EventId":{"Id":1,"Name":"ActionMethodExecuting"},"SourceContext":"Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker","ActionId":"20ea2cfd-99ab-46e2-8767-8589b358bb9c","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","CorrelationId":"4d1927d7a8e34802befe111c24ea6995","ClientId":"UnifiedDigitalPlatform_Blazor","UserId":"bb73b02e-eada-193c-a3e2-3a0526d1d755","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.5.0.0] 2023-07-29 21:14:24.604 +08:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
  "code": null,
  "message": "An internal error occurred during your request!",
  "details": null,
  "data": {},
  "validationErrors": null
}
{"SourceContext":"Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter","ActionId":"20ea2cfd-99ab-46e2-8767-8589b358bb9c","ActionName":"Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","CorrelationId":"4d1927d7a8e34802befe111c24ea6995","ClientId":"UnifiedDigitalPlatform_Blazor","UserId":"bb73b02e-eada-193c-a3e2-3a0526d1d755","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.5.0.0] 2023-07-29 21:14:24.604 +08:00 [ERR] Value cannot be null. (Parameter 'sourceDictionary')
{"SourceContext":"Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter","ActionId":"20ea2cfd-99ab-46e2-8767-8589b358bb9c","ActionName":"Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","CorrelationId":"4d1927d7a8e34802befe111c24ea6995","ClientId":"UnifiedDigitalPlatform_Blazor","UserId":"bb73b02e-eada-193c-a3e2-3a0526d1d755","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
System.ArgumentNullException: Value cannot be null. (Parameter 'sourceDictionary')
   at Volo.Abp.ObjectExtending.ExtensibleObjectMapper.MapExtraPropertiesTo(Type sourceType, Type destinationType, Dictionary`2 sourceDictionary, Dictionary`2 destinationDictionary, Nullable`1 definitionChecks, String[] ignoredProperties)
   at Volo.Abp.ObjectExtending.ExtensibleObjectMapper.MapExtraPropertiesTo[TSource,TDestination](TSource source, TDestination destination, Nullable`1 definitionChecks, String[] ignoredProperties)
   at Volo.FileManagement.Directories.DirectoryDescriptorAppService.GetContentAsync(DirectoryContentRequestInput input)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Features.FeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope)
   at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
   at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
   at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
   at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
   at Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync(DirectoryContentRequestInput input)
   at lambda_method1715(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
[Version: 1.5.0.0] 2023-07-29 21:14:24.604 +08:00 [INF] Executing "ObjectResult", writing value of type '"Volo.Abp.Http.RemoteServiceErrorResponse"'.
{"EventId":{"Id":1,"Name":"ObjectResultExecuting"},"SourceContext":"Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor","ActionId":"20ea2cfd-99ab-46e2-8767-8589b358bb9c","ActionName":"Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","CorrelationId":"4d1927d7a8e34802befe111c24ea6995","ClientId":"UnifiedDigitalPlatform_Blazor","UserId":"bb73b02e-eada-193c-a3e2-3a0526d1d755","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.5.0.0] 2023-07-29 21:14:24.604 +08:00 [INF] Executed action "Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)" in 59.5016ms
{"EventId":{"Id":2,"Name":"ActionExecuted"},"SourceContext":"Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","CorrelationId":"4d1927d7a8e34802befe111c24ea6995","ClientId":"UnifiedDigitalPlatform_Blazor","UserId":"bb73b02e-eada-193c-a3e2-3a0526d1d755","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.5.0.0] 2023-07-29 21:14:24.604 +08:00 [INF] Executed endpoint '"Volo.FileManagement.Directories.DirectoryDescriptorController.GetContentAsync (Volo.FileManagement.HttpApi)"'
{"EventId":{"Id":1,"Name":"ExecutedEndpoint"},"SourceContext":"Microsoft.AspNetCore.Routing.EndpointMiddleware","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","CorrelationId":"4d1927d7a8e34802befe111c24ea6995","ClientId":"UnifiedDigitalPlatform_Blazor","UserId":"bb73b02e-eada-193c-a3e2-3a0526d1d755","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.5.0.0] 2023-07-29 21:14:24.644 +08:00 [INF] Request finished HTTP/1.1 GET https://localhost:44478/api/file-management/directory-descriptor?Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0 - 0 - 500 - application/json;+charset=utf-8 136.1359ms
{"ElapsedMilliseconds":136.1359,"StatusCode":500,"ContentType":"application/json; charset=utf-8","ContentLength":null,"Protocol":"HTTP/1.1","Method":"GET","Scheme":"https","Host":"localhost:44478","PathBase":"","Path":"/api/file-management/directory-descriptor","QueryString":"?Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0","EventId":{"Id":2},"SourceContext":"Microsoft.AspNetCore.Hosting.Diagnostics","RequestId":"0HMSG66I13VMO:00000004","RequestPath":"/api/file-management/directory-descriptor","ConnectionId":"0HMSG66I13VMO","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
  • Steps to reproduce the issue:

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

    hi

    Some package versions are still 5.3.4. Please try to upgrade all to 7.2.2

  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi, Still same issue.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a simple project? liming.ma@volosoft.com

  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi,

    I shared the code to given email. please check.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It's too large. Can you reshare it after removing node_modules and run abp clean command?

    Thanks

  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi,

    As requested the re-shared the code. you can verify now.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I run the tye, and the blazor app works correctly with file management.

  • User Avatar
    0
    raju.thinnaluri@gmail.com created

    Hi,

    can you create few folders and upload sample files? Since am getting the issues

    and can you try to upload file in Invoice module while editing the item?

    the page url: https://localhost:44307/Invoices

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, I will continue to try.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    can you create few folders and upload sample files? Since am getting the issues

    As you can see, I have created some folders and uploaded some files.

    What are the detailed 500 errors on the backend?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35