Käyttäjän "nguyenngoc.son" toiminnot

Hi, I'm working on the solution to scan all the hard code text in the angular application and moving them to the json file for localization. I was tried to use some extensions in visual studio code like Angular Localization Helper, i18n-ally, and VSCode Extension Localization Helper. But none of them are helpful. Do you have any suggestions?

  • ABP Framework version: v4.3.1

  • UI type: Angular

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): yes

  • Exception message and stack trace: The language option is display incorrect

  • Steps to reproduce the issue:"

    • Disable one language:
    • After refresh the host site page, the language option list display correct
    • Login with tenant site, the language option display incorrect (it still include the disabed language)
    • After reboot the redis server, hen it working as we expected
    • Please note that this issue also happen in latest version

Hi, Can you provide me which version that will be fixed, and when it will be released?

  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: From service A, we're sending one message to service B via RabbitMQ, however when service B proceed the message, it using default localizaion instead of language that currently use by user.
  • Steps to reproduce the issue:"
Kysymys
  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: I can not generate token when calling API "connect/token"
  • Steps to reproduce the issue:"
Vastaus

H, There is nothing specfic about the code base. I was follow the instruction in ABP document page. When calling the connect/token API, I receive the log below

[10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ExtractTokenRequest". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateGrantType". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientIdParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateAuthorizationCodeParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientCredentialsParameters". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateDeviceCodeParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateRefreshTokenParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateResourceOwnerCredentialsParameters". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateScopeParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateProofKeyForCodeExchangeParameters". [10:59:31 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateScopes". [10:59:31 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientId". [10:59:31 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientType". [10:59:31 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientSecret". [10:59:31 DBG] [] An exception was thrown by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateEndpointPermissions" while handling the "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" event. System.Text.Json.JsonReaderException: '0x0A' is invalid within a JSON string. The string should be correctly escaped. LineNumber: 0 | BytePositionInLine: 253. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeStringAndValidate(ReadOnlySpan1 data, Int32 idx) at System.Text.Json.Utf8JsonReader.ConsumeString() at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at Volo.Abp.OpenIddict.Applications.AbpOpenIddictApplicationStore.GetPermissionsAsync(OpenIddictApplicationModel application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.GetPermissionsAsync(TApplication application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.HasPermissionAsync(TApplication application, String permission, CancellationToken cancellationToken) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateEndpointPermissions.HandleAsync(ValidateTokenRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) [10:59:31 DBG] [] An exception was thrown by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateTokenRequest" while handling the "OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext" event. System.Text.Json.JsonReaderException: '0x0A' is invalid within a JSON string. The string should be correctly escaped. LineNumber: 0 | BytePositionInLine: 253. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeStringAndValidate(ReadOnlySpan1 data, Int32 idx) at System.Text.Json.Utf8JsonReader.ConsumeString() at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at Volo.Abp.OpenIddict.Applications.AbpOpenIddictApplicationStore.GetPermissionsAsync(OpenIddictApplicationModel application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.GetPermissionsAsync(TApplication application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.HasPermissionAsync(TApplication application, String permission, CancellationToken cancellationToken) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateEndpointPermissions.HandleAsync(ValidateTokenRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateTokenRequest.HandleAsync(ProcessRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) [10:59:32 ERR] [] An unhandled exception has occurred while executing the request. System.Text.Json.JsonReaderException: '0x0A' is invalid within a JSON string. The string should be correctly escaped. LineNumber: 0 | BytePositionInLine: 253. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeStringAndValidate(ReadOnlySpan1 data, Int32 idx) at System.Text.Json.Utf8JsonReader.ConsumeString() at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at Volo.Abp.OpenIddict.Applications.AbpOpenIddictApplicationStore.GetPermissionsAsync(OpenIddictApplicationModel application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.GetPermissionsAsync(TApplication application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager`1.HasPermissionAsync(TApplication application, String permission, CancellationToken cancellationToken) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateEndpointPermissions.HandleAsync(ValidateTokenRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateTokenRequest.HandleAsync(ProcessRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandler.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at SCV.Litmus.Shared.DecryptHttpHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in D:\TASConnect\SourceCode\core-platform\SCV.Litmus\aspnet-core\shared\SCV.Litmus.Shared\Middleware\DecryptHttpHeadersMiddleware.cs:line 51 at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<

  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: After removed all the Claim Types permissions, the application-configuration API still return Claim Types permission is granted
  • Steps to reproduce the issue:"
  • ABP Framework version: v7.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Auth Server Separated (Angular): yes
  • Exception message and stack trace: When rendering the text template for Vietnamese, the exception was thrown "Input string was not in a correct format. Source=System.Private.CoreLib StackTrace: at System.Text.ValueStringBuilder.ThrowFormatInvalidString() at System.Text.ValueStringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ReadOnlySpan1 args) at System.String.FormatHelper(IFormatProvider provider, String format, ReadOnlySpan1 args) at System.String.Format(String format, Object[] args) at Volo.Abp.Localization.AbpDictionaryBasedStringLocalizer.GetLocalizedStringFormatted(String name, String cultureName, Object[] arguments) at Volo.Abp.Localization.AbpDictionaryBasedStringLocalizer.GetLocalizedStringFormatted(String name, Object[] arguments) at Volo.Abp.Localization.AbpDictionaryBasedStringLocalizer.get_Item(String name, Object[] arguments) at Abp.Razor.Template.<ExecuteAsync>d__0.MoveNext() at Volo.Abp.TextTemplating.Razor.RazorTemplateRenderingEngine.<RenderTemplateContentWithRazorAsync>d__9.MoveNext() at Volo.Abp.TextTemplating.Razor.RazorTemplateRenderingEngine.<RenderSingleTemplateAsync>d__8.MoveNext() at Volo.Abp.TextTemplating.Razor.RazorTemplateRenderingEngine.<RenderInternalAsync>d__7.MoveNext() at Volo.Abp.TextTemplating.Razor.RazorTemplateRenderingEngine.<RenderInternalAsync>d__7.MoveNext() at Volo.Abp.TextTemplating.Razor.RazorTemplateRenderingEngine.<RenderAsync>d__6.MoveNext() at Volo.Abp.TextTemplating.AbpTemplateRenderer.<RenderAsync>d__10.MoveNext()
  • when I passed different CultureName to the RendenAsync method then it working fine, When using CultureHelper.Use and it recognize the vietnamese language and can switch to vi.json file.
  • Steps to reproduce the issue:"

Hi, I found the root cause is the vi.json file. After delete that file it working fine. Any idea why the vi.json file is not loaded?

Closed it because wrong string was using in the vietnamese json file

Näytetään 1 - 10/18 tietueesta
Made with ❤️ on ABP v8.2.0-preview Updated on maaliskuuta 25, 2024, 15.11