Skip to content

15.3.0-rc2: FileUploadPropertyValueEditor throws "Invalid content key." #18718

Closed as not planned
@PeterKvayt

Description

@PeterKvayt

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

15.3.0-rc2

Bug summary

I have content type with block list. Block list item has property with data editor "File upload". While creating new content and filling File upload field in item of block list property I have faced with error: "Invalid content key.".

After investigation I found the issue: block list item does not set 2 props that are required for File upload property editor: ContentKey and PropertyTypeKey. Look at the screenshot (Umbraco.Cms.Core.PropertyEditors.BlockValuePropertyValueEditorBase):

Image

These properties are configured if property is part of content, not is block list item (Umbraco.Cms.Core.Services.ContentEditingServiceBase):
Image

And here are the checks in (FileUploadPropertyValueEditor):
Image

Specifics

No response

Steps to reproduce

  1. Create content type with block list property (block list should has item with file upload property)
  2. Create new node
  3. Fill file upload property
  4. Try to save

Expected result / actual result

Expected: content saved, no errors
Actual: an error "Invalid content key." occurred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions