-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Describe the bug
I have an issue saving the AASX file via Package Explorer. This issue happens only when I connect to the HTTP/REST repository. When I load the AASX from local, I don't have any problem saving the file. I tried different versions of AASX server and AASX explorer, but it did work.
To Reproduce
Steps to reproduce the behavior:
- connect to AASX server (AasxServerBlazor.2023-09-13.alpha)
- open AASX package explorer (aasx-package-explorer-small.2024-05-06.alpha) and connect to HTTP/REST repository (localhost:5001)
- Load the AASX files
- Save the aasx
- The server gives the following error:
IO.Swagger.Lib.V3.Middleware.ExceptionMiddleware[0] Cannot replace AASX .\aasxs\Example_AAS_ServoDCMotor_21.aasx with new C:\Users\hadifar\AppData\Local\Temp\tmp3080.aasx. Aborting. Exception: While reading the .\aasxs\Example_AAS_ServoDCMotor_21.aasx (and indirectly over C:\Users\hadifar\AppData\Local\Temp\tmp3081.aasx) at \AdminShellPackageEnv.cs:line 389 gave: Unable to find AASX origin. Aborting!
2024-11-13 10:51:41 dbug: IO.Swagger.Lib.V3.Middleware.ExceptionMiddleware[0] at AasxServerStandardBib.Services.AasxFileServerInterfaceService.UpdateAASXPackageById(String packageId, Byte[] fileContent, String fileName) in D:\a\aasx-server\aasx-server\src\AasxServerStandardBib\Services\AasxFileServerInterfaceService.cs:line 262 at IO.Swagger.Controllers.AASXFileServerAPIApiController.PutAASXPackageById(String packageId, IFormFile file, String aasIds) in D:\a\aasx-server\aasx-server\src\IO.Swagger.Lib.V3\Controllers\AASXFileServerAPIApi.cs:line 275 at lambda_method82(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() --- End of stack trace from previous location --- 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.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at IO.Swagger.Lib.V3.Middleware.ExceptionMiddleware.InvokeAsync(HttpContext httpContext, IAppLogger`1 logger) in D:\a\aasx-server\aasx-server\src\IO.Swagger.Lib.V3\Middleware\ExceptionMiddleware.cs:line 35
Expected behavior
I'm hoping the procedure above will be done smoothly.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Microsoft Windows 10 Enterprise
- Browser: Chrome