35 Commits

Author SHA1 Message Date
RMBGAME 8b4680fcee ReverseProxyHttpClientHandler in Server fix 2022-08-17 23:14:50 +08:00
RMBGAME 6be424dc5f ReverseProxyHttpClientHandler in Server 2022-08-14 16:57:49 +08:00
Aigio Liu 6babd615cd Use ReverseProxyHttpClientHandler in Server 2022-08-14 16:41:10 +08:00
Aigio Liu e1ff5b17bb fix
2022-07-26 12:53:42.1279||ERROR|Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|An unhandled exception has occurred while executing the request. System.Security.Cryptography.CryptographicException: 'sha256' is not a known hash algorithm.
   at Interop.Crypto.HashAlgorithmToEvp(String hashAlgorithmId)
   at System.Security.Cryptography.RSAImplementation.RSAOpenSsl.Decrypt(SafeEvpPKeyHandle key, ReadOnlySpan`1 data, Span`1 destination, RSAEncryptionPadding padding)
   at System.Security.Cryptography.RSAImplementation.RSAOpenSsl.Decrypt(Byte[] data, RSAEncryptionPadding padding)
   at System.Application.Middleware.JwtInUrlMiddleware.<>c__DisplayClass8_0.<<GetSecurityResultAsync>g__GetSecurityResultCoreAsync|0>d.MoveNext()

2022-07-26 08:18:19.9302||ERROR|Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|An unhandled exception has occurred while executing the request. MessagePack.MessagePackSerializationException: Failed to serialize System.Application.Models.ApiRsp`1[[System.Application.Models.AccelerateProjectGroupDTO[], System.Application.SteamTools.Services.CloudService.Models, Version=2.8.2.0, Culture=neutral, PublicKeyToken=null]] value.
 ---> System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at MessagePack.Formatters.ArrayFormatter`1.Serialize(MessagePackWriter& writer, T[] value, MessagePackSerializerOptions options)
   at MessagePack.Formatters.System_Application_Models_ApiRsp`1\[\[System_Application_Models_AccelerateProjectGroupDTO\[\]\, System_Application_SteamTools_Services_CloudService_Models\]\]Formatter2.Serialize(MessagePackWriter& writer, ApiRsp`1 value, MessagePackSerializerOptions options)
   at MessagePack.MessagePackSerializer.Serialize[T](MessagePackWriter& writer, T value, MessagePackSerializerOptions options)
   --- End of inner exception stack trace ---
   at MessagePack.MessagePackSerializer.Serialize[T](MessagePackWriter& writer, T value, MessagePackSerializerOptions options)
   at lambda_method358(Closure , IBufferWriter`1 , Object , MessagePackSerializerOptions , CancellationToken )
   at System.Application.Formatters.GeneralOutputFormatter.WriteAsync(OutputFormatterWriteContext context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResultFilterAsync[TFilter,TFilterAsync]()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>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.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at System.Application.Middleware.JwtInUrlMiddleware.Invoke(HttpContext context, IAppVersionInfoRepository repository)
   at System.Application.Middleware.StandardizedExceptionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

2022-07-26 12:53:42.1257||ERROR|JwtInUrlMiddleware|isBind: False, UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36
CryptographicException: 'sha256' is not a known hash algorithm.
2022-07-26 12:53:42.1279||ERROR|Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|An unhandled exception has occurred while executing the request. System.Security.Cryptography.CryptographicException: 'sha256' is not a known hash algorithm.
   at Interop.Crypto.HashAlgorithmToEvp(String hashAlgorithmId)
   at System.Security.Cryptography.RSAImplementation.RSAOpenSsl.Decrypt(SafeEvpPKeyHandle key, ReadOnlySpan`1 data, Span`1 destination, RSAEncryptionPadding padding)
   at System.Security.Cryptography.RSAImplementation.RSAOpenSsl.Decrypt(Byte[] data, RSAEncryptionPadding padding)
   at System.Application.Middleware.JwtInUrlMiddleware.<>c__DisplayClass8_0.<<GetSecurityResultAsync>g__GetSecurityResultCoreAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.Application.Middleware.JwtInUrlMiddleware.GetSecurityResultAsync(HttpContext context, IAppVersionInfoRepository repository)
   at System.Application.Controllers.AuthenticationController.ExternalLoginCallback()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   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.<InvokeNextResourceFilter>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.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at System.Application.Middleware.JwtInUrlMiddleware.Invoke(HttpContext context, IAppVersionInfoRepository repository)
   at System.Application.Middleware.StandardizedExceptionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

022-07-26 14:36:47.5345||ERROR|JwtInUrlMiddleware|isBind: False, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71
CryptographicException: Padding is invalid and cannot be removed.
2022-07-26 14:36:47.5362||ERROR|Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|An unhandled exception has occurred while executing the request. System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
   at Internal.Cryptography.UniversalCryptoDecryptor.GetPaddingLength(ReadOnlySpan`1 block)
   at Internal.Cryptography.UniversalCryptoDecryptor.UncheckedTransformFinalBlock(ReadOnlySpan`1 inputBuffer, Span`1 outputBuffer)
   at Internal.Cryptography.UniversalCryptoDecryptor.UncheckedTransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
   at Internal.Cryptography.UniversalCryptoTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
   at System.Security.Cryptography.AESUtils.Decrypt(Aes aes, Byte[] data)
   at System.Security.Cryptography.AESUtils.Decrypt(Aes aes, String text)
   at System.Application.Middleware.JwtInUrlMiddleware.Invoke(HttpContext context, IAppVersionInfoRepository repository)
   at System.Application.Middleware.StandardizedExceptionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

2022-07-26 14:38:24.7126||ERROR|JwtInUrlMiddleware|isBind: False, UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
CryptographicException: error:04099079:rsa routines:RSA_padding_check_PKCS1_OAEP_mgf1:oaep decoding error
2022-07-26 14:38:24.7126||ERROR|Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|An unhandled exception has occurred while executing the request. Interop+Crypto+OpenSslCryptographicException: error:04099079:rsa routines:RSA_padding_check_PKCS1_OAEP_mgf1:oaep decoding error
   at System.Security.Cryptography.RSAImplementation.RSAOpenSsl.Decrypt(SafeEvpPKeyHandle key, ReadOnlySpan`1 data, Span`1 destination, RSAEncryptionPadding padding)
   at System.Security.Cryptography.RSAImplementation.RSAOpenSsl.Decrypt(Byte[] data, RSAEncryptionPadding padding)
   at System.Application.Formatters.GeneralInputFormatter.ReadAsync(InputFormatterContext context)
   at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext)
   at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value, Object container)
   at Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
--- End of stack trace from previous location ---
   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.<InvokeNextResourceFilter>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.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at System.Application.Middleware.JwtInUrlMiddleware.Invoke(HttpContext context, IAppVersionInfoRepository repository)
   at System.Application.Middleware.StandardizedExceptionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

2022-07-26 15:10:15.1974||ERROR|JwtInUrlMiddleware|isBind: False, UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
CryptographicException: error:04065084:rsa routines:rsa_ossl_private_decrypt:data too large for modulus
2022-07-26 15:10:15.1974||ERROR|Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware|An unhandled exception has occurred while executing the request. Interop+Crypto+OpenSslCryptographicException: error:04065084:rsa routines:rsa_ossl_private_decrypt:data too large for modulus
   at System.Security.Cryptography.RSAImplementation.RSAOpenSsl.Decrypt(SafeEvpPKeyHandle key, ReadOnlySpan`1 data, Span`1 destination, RSAEncryptionPadding padding)
   at System.Security.Cryptography.RSAImplementation.RSAOpenSsl.Decrypt(Byte[] data, RSAEncryptionPadding padding)
   at System.Application.Formatters.GeneralInputFormatter.ReadAsync(InputFormatterContext context)
   at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext)
   at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value, Object container)
   at Microsoft.AspNetCore.Mvc.Controllers.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<<CreateBinderDelegate>g__Bind|0>d.MoveNext()
--- End of stack trace from previous location ---
   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.<InvokeNextResourceFilter>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.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at System.Application.Middleware.JwtInUrlMiddleware.Invoke(HttpContext context, IAppVersionInfoRepository repository)
   at System.Application.Middleware.StandardizedExceptionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
2022-07-27 11:58:55 +08:00
Aigio Liu c2a502a6aa Misc & Server 2022-07-26 00:14:20 +08:00
Aigio Liu 415a50871e Improve HttpReverseProxyMiddleware.HandleScriptInject 2022-07-03 12:26:07 +08:00
Aigio Liu 54c0cd25d8 Add https://docs.microsoft.com/zh-cn/dotnet/api/system.web.httpresponse.contentencoding?view=netframework-4.8 2022-07-02 22:35:35 +08:00
RMBGAME 5d848c92e9 GetEncodingFromContentType 2022-07-02 12:28:59 +08:00
Aigio Liu f3235510b5 migrate ST.Client.ReverseProxy.Titanium
use IReverseProxyService replace IHttpProxyService
2022-06-16 14:09:32 +08:00
Mossimo 0355a08020 fix add AdvertisementClient 2022-06-16 12:26:31 +08:00
Aigio Liu 10731b173b Update .Net 6.0.6 & IMemoryCache Misc 2022-06-15 13:05:02 +08:00
Mossimo 1370a04e2d AddServerMemoryCache 2022-06-14 20:05:37 +08:00
Aigio Liu f11d651985 rename server resx 2022-05-30 00:19:20 +08:00
Aigio Liu 4709e2060d fix #1445 #1444 2022-05-27 23:23:15 +08:00
Aigio Liu dadb7ae01d Misc Common & Test 2022-05-27 00:01:54 +08:00
Aigio Liu 586f0de609 Improve server 2022-05-24 19:00:47 +08:00
Aigio Liu b6733bf965 修正格式 2022-04-25 18:28:32 +08:00
Aigio Liu 9746e11163 Misc 2022-01-07 17:20:54 +08:00
Aigio Liu 6d705a576d new Essentials API Preferences2 & VersionTracking2 2021-12-03 22:22:49 +08:00
Aigio Liu f4a8586a28 fix server 2021-12-01 17:04:17 +08:00
Aigio Liu 8a95148a15 Add Server Info Test 2021-11-15 22:30:32 +08:00
Mossimo 323b782beb save 2021-11-13 00:57:57 +08:00
Aigio Liu 5c4942a03b Update Server & Tools Projects TFM .Net 6.0 RTM 2021-11-09 21:59:06 +08:00
Aigio Liu 575ce8b0b4 Android Settings UI 2021-09-09 11:41:53 +08:00
Aigio Liu 3761a98eb1 Update ASF 2021-09-04 10:49:24 +08:00
Aigio Liu 246f7a4f45 fix 2021-08-16 11:18:35 +08:00
Aigio Liu f40f469839 fix Bind LRB 2021-08-14 16:18:26 +08:00
Aigio Liu 251e350381 const MaxProgress 2021-08-12 17:00:19 +08:00
Aigio Liu 1e10c603cf Desktop Bridge & fix AppUpdate & update nuget packages 2021-08-03 13:24:05 +08:00
Aigio Liu b356d80c3e fix 2021-06-06 12:11:12 +08:00
Aigio Liu 5b8a84b4e1 fix BindFastLogin 2021-05-25 13:06:42 +08:00
Aigio Liu b3a387f0a6 fix #243 2021-05-18 21:12:52 +08:00
Aigio Liu c2d6b384ee 新功能 账号注销 2021-05-11 21:17:05 +08:00
Aigio Liu 535e824032 改进 日志文件大小与数量 + UnifiedVersion 2021-05-07 23:36:29 +08:00
Aigio Liu d0691c4e3c 修复 脚本与HttpUrl 潜在的空指针异常 2021-04-30 14:29:35 +08:00