hi
Let's check it remotely..
https://us05web.zoom.us/j/86811482500?pwd=SW0zYzNpNFFqZnllbnJOb1JLM2xmQT09
I joined the call
This File downloads working only with initially logged in user. for all other switching users not working. when ever i switching the accounts using linked accounts.
To which account the user logged in initially it's working only for that account subsequent switching account file downloading not working.
{"EventId":{"Id":1,"Name":"ActionMethodExecuting"},"SourceContext":"Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker","ActionId":"191112e8-6da4-4542-a101-9d0d11a9a276","RequestId":"0HMOVLRVKST1R:0000000A","RequestPath":"/api/file-management/file-descriptor/download/24dec07d-fa37-53cb-c5d4-3a09ccc2f489","ConnectionId":"0HMOVLRVKST1R","CorrelationId":"8d1a1b4c4b3e4990bc47749542ef9403","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.0.0.0] 2023-03-08 16:35:22.224 +08:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
"code": null,
"message": "There is no entity FileDescriptor with id = 24dec07d-fa37-53cb-c5d4-3a09ccc2f489!",
"details": null,
"data": null,
"validationErrors": null
}
{"SourceContext":"Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter","ActionId":"191112e8-6da4-4542-a101-9d0d11a9a276","ActionName":"Volo.FileManagement.Files.FileDescriptorController.DownloadAsync (Volo.FileManagement.HttpApi)","RequestId":"0HMOVLRVKST1R:0000000A","RequestPath":"/api/file-management/file-descriptor/download/24dec07d-fa37-53cb-c5d4-3a09ccc2f489","ConnectionId":"0HMOVLRVKST1R","CorrelationId":"8d1a1b4c4b3e4990bc47749542ef9403","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.0.0.0] 2023-03-08 16:35:22.224 +08:00 [ERR] There is no such an entity. Entity type: Volo.FileManagement.Files.FileDescriptor, id: 24dec07d-fa37-53cb-c5d4-3a09ccc2f489
{"SourceContext":"Volo.Abp.AspNetCore.Mvc.ExceptionHandling.AbpExceptionFilter","ActionId":"191112e8-6da4-4542-a101-9d0d11a9a276","ActionName":"Volo.FileManagement.Files.FileDescriptorController.DownloadAsync (Volo.FileManagement.HttpApi)","RequestId":"0HMOVLRVKST1R:0000000A","RequestPath":"/api/file-management/file-descriptor/download/24dec07d-fa37-53cb-c5d4-3a09ccc2f489","ConnectionId":"0HMOVLRVKST1R","CorrelationId":"8d1a1b4c4b3e4990bc47749542ef9403","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
Volo.Abp.Domain.Entities.EntityNotFoundException: There is no such an entity. Entity type: Volo.FileManagement.Files.FileDescriptor, id: 24dec07d-fa37-53cb-c5d4-3a09ccc2f489
at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository`3.GetAsync(TKey id, Boolean includeDetails, CancellationToken cancellationToken)
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.Files.FileDescriptorAppService.GetAsync(Guid id)
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.Files.FileDescriptorController.DownloadAsync(Guid id, String token)
at lambda_method1594(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.0.0.0] 2023-03-08 16:35:22.233 +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":"191112e8-6da4-4542-a101-9d0d11a9a276","ActionName":"Volo.FileManagement.Files.FileDescriptorController.DownloadAsync (Volo.FileManagement.HttpApi)","RequestId":"0HMOVLRVKST1R:0000000A","RequestPath":"/api/file-management/file-descriptor/download/24dec07d-fa37-53cb-c5d4-3a09ccc2f489","ConnectionId":"0HMOVLRVKST1R","CorrelationId":"8d1a1b4c4b3e4990bc47749542ef9403","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.0.0.0] 2023-03-08 16:35:22.234 +08:00 [INF] Executed action "Volo.FileManagement.Files.FileDescriptorController.DownloadAsync (Volo.FileManagement.HttpApi)" in 56.0374ms
{"EventId":{"Id":2,"Name":"ActionExecuted"},"SourceContext":"Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker","RequestId":"0HMOVLRVKST1R:0000000A","RequestPath":"/api/file-management/file-descriptor/download/24dec07d-fa37-53cb-c5d4-3a09ccc2f489","ConnectionId":"0HMOVLRVKST1R","CorrelationId":"8d1a1b4c4b3e4990bc47749542ef9403","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.0.0.0] 2023-03-08 16:35:22.234 +08:00 [INF] Executed endpoint '"Volo.FileManagement.Files.FileDescriptorController.DownloadAsync (Volo.FileManagement.HttpApi)"'
{"EventId":{"Id":1,"Name":"ExecutedEndpoint"},"SourceContext":"Microsoft.AspNetCore.Routing.EndpointMiddleware","RequestId":"0HMOVLRVKST1R:0000000A","RequestPath":"/api/file-management/file-descriptor/download/24dec07d-fa37-53cb-c5d4-3a09ccc2f489","ConnectionId":"0HMOVLRVKST1R","CorrelationId":"8d1a1b4c4b3e4990bc47749542ef9403","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
[Version: 1.0.0.0] 2023-03-08 16:35:22.490 +08:00 [INF] Request finished HTTP/1.1 GET https://localhost:44478/api/file-management/file-descriptor/download/24dec07d-fa37-53cb-c5d4-3a09ccc2f489?token=504d1a88-ac28-4402-b8ed-6152903c3ff2 - 0 - 404 - application/json;+charset=utf-8 317.1533ms
{"ElapsedMilliseconds":317.1533,"StatusCode":404,"ContentType":"application/json; charset=utf-8","ContentLength":null,"Protocol":"HTTP/1.1","Method":"GET","Scheme":"https","Host":"localhost:44478","PathBase":"","Path":"/api/file-management/file-descriptor/download/24dec07d-fa37-53cb-c5d4-3a09ccc2f489","QueryString":"?token=504d1a88-ac28-4402-b8ed-6152903c3ff2","EventId":{"Id":2},"SourceContext":"Microsoft.AspNetCore.Hosting.Diagnostics","RequestId":"0HMOVLRVKST1R:0000000A","RequestPath":"/api/file-management/file-descriptor/download/24dec07d-fa37-53cb-c5d4-3a09ccc2f489","ConnectionId":"0HMOVLRVKST1R","Application":"NaviX.UnifiedDigitalPlatform.DocumentService.HttpApi.Host"}
Hi,
The problem was fixed: https://github.com/abpframework/abp/pull/14022
You can upgrade your project to the latest version.
you can try this if you don't want to upgrade project:
[ExposeServices(typeof(ChatUserSynchronizer), typeof(MyChatUserSynchronizer))] public class MyChatUserSynchronizer : ChatUserSynchronizer { protected ICurrentTenant CurrentTenant { get; } public MyChatUserSynchronizer( IChatUserRepository userRepository, IChatUserLookupService userLookupService, ICurrentTenant currentTenant) : base(userRepository, userLookupService) { CurrentTenant = currentTenant; } public override async Task HandleEventAsync(EntityUpdatedEto<UserEto> eventData) { using(CurrentTenant.Change(eventData.Entity.TenantId)) { var user = await UserRepository.FindAsync(eventData.Entity.Id); if (user == null) { user = await UserLookupService.FindByIdAsync(eventData.Entity.Id); if (user == null) { return; } } if (user.Update(eventData.Entity)) { await UserRepository.UpdateAsync(user); } } } }
Thank You. Now it's working fine.