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

API error when attempting to duplicate starter kit content #17610

Open
henryjump opened this issue Nov 21, 2024 · 1 comment
Open

API error when attempting to duplicate starter kit content #17610

henryjump opened this issue Nov 21, 2024 · 1 comment
Labels

Comments

@henryjump
Copy link

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

15.0.0

Bug summary

When attempting to duplicate the home page of the starter kit, it fails and an api error appears

Specifics

the error says

'Could not parse a valid Guid from the string: ""
A fatal server error occurred. If this continues, please reach out to your administrator.'

logs:

 An unhandled exception has occurred while executing the request.
System.FormatException: Could not parse a valid Guid from the string: ""
   at Umbraco.Cms.Core.PropertyEditors.BlockEditorPropertyNotificationHandlerBase`1.ParseKeys(JsonArray contentData, JsonArray settingsData)
   at Umbraco.Cms.Core.PropertyEditors.BlockEditorPropertyNotificationHandlerBase`1.TraverseObject(JsonObject obj)
   at Umbraco.Cms.Core.PropertyEditors.BlockEditorPropertyNotificationHandlerBase`1.ReplaceBlockEditorKeys(String rawJson, Func`2 createGuid)
   at Umbraco.Cms.Core.PropertyEditors.BlockEditorPropertyNotificationHandlerBase`1.FormatPropertyValue(String rawJson, Boolean onlyMissingKeys)
   at Umbraco.Cms.Core.PropertyEditors.ComplexPropertyEditorContentNotificationHandler.UpdatePropertyValues(IEnumerable`1 props, Boolean onlyMissingKeys)
   at Umbraco.Cms.Core.PropertyEditors.ComplexPropertyEditorContentNotificationHandler.Handle(ContentCopyingNotification notification)
   at Umbraco.Cms.Core.Events.INotificationHandler`1.Handle(IEnumerable`1 notifications)
   at Umbraco.Cms.Core.Events.EventAggregator.PublishCore[TNotification](IEnumerable`1 allHandlers, IEnumerable`1 notifications)
   at Umbraco.Cms.Core.Events.NotificationHandlerWrapperImpl`1.Handle[TNotification,TNotificationHandler](IEnumerable`1 notifications, ServiceFactory serviceFactory, Action`2 publish)
   at Umbraco.Cms.Core.Events.EventAggregator.PublishNotifications[TNotification,TNotificationHandler](IEnumerable`1 notifications)
   at Umbraco.Cms.Core.Events.EventAggregator.Publish[TNotification,TNotificationHandler](IEnumerable`1 notifications)
   at Umbraco.Cms.Core.Events.EventAggregator.Publish[TNotification](TNotification notification)
   at Umbraco.Cms.Core.Events.ScopedNotificationPublisher`1.PublishCancelable(ICancelableNotification notification)
   at Umbraco.Cms.Core.Services.ContentService.Copy(IContent content, Int32 parentId, Boolean relateToOriginal, Boolean recursive, Int32 userId)
   at Umbraco.Cms.Core.Services.ContentEditingService.Copy(IContent content, Int32 newParentId, Boolean relateToOriginal, Boolean includeDescendants, Int32 userId)
   at Umbraco.Cms.Core.Services.ContentEditingServiceBase`4.HandleCopyAsync(Guid key, Nullable`1 parentKey, Boolean relateToOriginal, Boolean includeDescendants, Guid userKey)
   at Umbraco.Cms.Core.Services.ContentEditingService.CopyAsync(Guid key, Nullable`1 parentKey, Boolean relateToOriginal, Boolean includeDescendants, Guid userKey)
   at Umbraco.Cms.Api.Management.Controllers.Document.CopyDocumentController.Copy(CancellationToken cancellationToken, Guid id, CopyDocumentRequestModel copyDocumentRequestModel)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, 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()

Steps to reproduce

install new umbraco site with the starter kit

  • dotnet new umbraco -n [name]
  • cd [name]
  • dotnet add package umbraco.thestarterkit
  • dotnet run

attempt to duplicate content

  • go to content
  • click on the three dots next to "Home"
  • select duplicate
  • select content as target location
  • click duplicate
    other duplication settings have no effect

image

Expected result / actual result

should duplicate the home page

Copy link

Hi there @henryjump!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

  • We'll assess whether this issue relates to something that has already been fixed in a later version of the release that it has been raised for.
  • If it's a bug, is it related to a release that we are actively supporting or is it related to a release that's in the end-of-life or security-only phase?
  • We'll replicate the issue to ensure that the problem is as described.
  • We'll decide whether the behavior is an issue or if the behavior is intended.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

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

No branches or pull requests

1 participant