[MGNLPN-616] Persona's item photo node should have mgnl:resource nodetype Created: 20/Jan/22  Updated: 26/Aug/22

Status: Open
Project: Magnolia Personalization
Component/s: None
Affects Version/s: 2.1, 2.0.14
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Adam Siska Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLDAM-939 JCR DAM has fixed nodetypes for node ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Epic Link: AuthorX Maintenance
Team: AuthorX

 Description   

Steps to reproduce

  1. create new persona in Personas app
  2. provide a photo and save
  3. use JCR Browser (or JCR Tools/Dumper) to see a nodetype of photo node

Expected results

Node type of photo node should be mgnl:resource

Actual results

Node type of photo node is mgnl:contentNode

Development notes

 

add nodeType configuration to composite (wrapper) field itemProvider configuration

photo:
  $type: compositeField
  layout:
    class: info.magnolia.ui.framework.layout.SingleFieldLayoutProducer$Definition
  itemProvider:
    $type: jcrChildNodeProvider
    nodeType: mgnl:resource
  properties:
    image:
      class: info.magnolia.dam.app.field.DamUploadFieldDefinition
      allowedMimeTypePattern: image/* 

Generated at Mon Feb 12 06:39:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.