Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add a sub Taxonomy term to the Taxonomies #15614

Closed
MikeAlhayek opened this issue Mar 28, 2024 · 0 comments · Fixed by #15615
Closed

Unable to add a sub Taxonomy term to the Taxonomies #15614

MikeAlhayek opened this issue Mar 28, 2024 · 0 comments · Fixed by #15615
Labels
Milestone

Comments

@MikeAlhayek
Copy link
Member

Describe the bug

To Reproduce

Steps to reproduce the behavior:

  1. Create a new Taxonomy items
  2. Add a new Term "A"
  3. Under the Term "A" add a sub term "A.1"
  4. You get the following error

JsonException: The converter 'OrchardCore.ContentManagement.ContentItemConverter' read too much or not enough. Path: $ | LineNumber: 0 | BytePositionInLine: 1005.

System.Text.Json.JsonException: The converter 'OrchardCore.ContentManagement.ContentItemConverter' read too much or not enough. Path: $ | LineNumber: 0 | BytePositionInLine: 1005.

   at System.Text.Json.ThrowHelper.ThrowJsonException_SerializationConverterRead(JsonConverter converter)

   at System.Text.Json.Serialization.JsonConverter`1.VerifyRead(JsonTokenType tokenType, Int32 depth, Int64 bytesConsumed, Boolean isValueConverter, Utf8JsonReader& reader)

   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)

   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)

   at System.Text.Json.JsonSerializer.ReadFromNode[TValue](JsonNode node, JsonTypeInfo`1 jsonTypeInfo)

   at System.Text.Json.Nodes.JNode.ToObject[T](JsonNode jsonNode, JsonSerializerOptions options) in C:\Code\OrchardCMS\OrchardCore\src\OrchardCore\OrchardCore.Abstractions\Json\Nodes\JNode.cs:line 101

   at OrchardCore.Autoroute.Core.Indexes.AutoroutePartIndexProvider.PopulateContainedContentItemIndexesAsync(List`1 results, ContentItem containerContentItem, ContainedContentItemsAspect containedContentItemsAspect, JsonObject content, String basePath) in C:\Code\OrchardCMS\OrchardCore\src\OrchardCore\OrchardCore.Autoroute.Core\Indexes\AutoroutePartIndex.cs:line 168

   at OrchardCore.Autoroute.Core.Indexes.AutoroutePartIndexProvider.<Describe>b__14_1(ContentItem contentItem) in C:\Code\OrchardCMS\OrchardCore\src\OrchardCore\OrchardCore.Autoroute.Core\Indexes\AutoroutePartIndex.cs:line 154

   at YesSql.Indexes.IndexDescriptor`3.<YesSql.Indexes.IDescribeFor.GetMap>b__21_0(Object x)

   at YesSql.Session.MapNew(Document document, Object obj, String collection)

   at YesSql.Session.UpdateEntityAsync(Object entity, Boolean tracked, String collection)

   at YesSql.Session.FlushAsync()

   at YesSql.Session.FlushAsync()

   at YesSql.Session.SaveChangesAsync()

   at YesSql.Session.SaveChangesAsync()

   at OrchardCore.Data.Documents.DocumentStore.CommitAsync() in C:\Code\OrchardCMS\OrchardCore\src\OrchardCore\OrchardCore.Data.YesSql\Documents\DocumentStore.cs:line 121

   at OrchardCore.Environment.Shell.Scope.ShellScope.BeforeDisposeAsync() in C:\Code\OrchardCMS\OrchardCore\src\OrchardCore\OrchardCore.Abstractions\Shell\Scope\ShellScope.cs:line 397

   at OrchardCore.Environment.Shell.Scope.ShellScope.UsingAsync(Func`2 execute, Boolean activateShell) in C:\Code\OrchardCMS\OrchardCore\src\OrchardCore\OrchardCore.Abstractions\Shell\Scope\ShellScope.cs:line 267

   at OrchardCore.Environment.Shell.Scope.ShellScope.UsingAsync(Func`2 execute, Boolean activateShell) in C:\Code\OrchardCMS\OrchardCore\src\OrchardCore\OrchardCore.Abstractions\Shell\Scope\ShellScope.cs:line 269

   at OrchardCore.Modules.ModularTenantContainerMiddleware.Invoke(HttpContext httpContext) in C:\Code\OrchardCMS\OrchardCore\src\OrchardCore\OrchardCore\Modules\ModularTenantContainerMiddleware.cs:line 59

   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)

   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant