[MGNLUI-6954] "targetTreeRootPath" is not supported in damLinkField Created: 15/Feb/21  Updated: 16/Dec/21  Resolved: 22/Nov/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.6
Fix Version/s: 6.2.14

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Nguyen Phung Chi
Resolution: Fixed Votes: 0
Labels: VN-Maintenance, maintenance
Remaining Estimate: Not Specified
Time Spent: 4d 1h 58m
Original Estimate: Not Specified

Issue Links:
Problem/Incident
dependency
depends upon MGNLDAM-922 damLinkField: rootPath property not s... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: Assets Maintenance 2
Story Points: 3

 Description   

Steps to reproduce

  1.  Edit Image component at mtk with the following code:
    form:
      tabs:
        - name: tabImage
          fields:
            - name: image
              class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
              targetWorkspace: dam
              appName: assets
              targetTreeRootPath: /parent
              identifierToPathConverter:
                class: info.magnolia.dam.app.assets.field.translator.AssetCompositeIdKeyTranslator
              contentPreviewDefinition:
                contentPreviewClass: info.magnolia.dam.app.ui.field.DamFilePreviewComponent
            - name: imageAltText
              class: info.magnolia.ui.form.field.definition.TextFieldDefinition
              i18n: true
            - name: imageTitle
              class: info.magnolia.ui.form.field.definition.TextFieldDefinition
              i18n: true
            - name: imageCaption
              class: info.magnolia.ui.form.field.definition.TextFieldDefinition
              i18n: true
            - name: imageCredit
              class: info.magnolia.ui.form.field.definition.TextFieldDefinition
              i18n: trueactions:
      commit:
        class: info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition
      cancel:
        class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition
     
  1. Create a /parent folder on assets app and put some image within it
  2. Open Pages app, create an Image component and check that the targetTreeRootPath is ignored

Expected results

Only elements under /parent folder are available

Actual results

Every element within assets app can be chosen

Workaround

N/A

Development notes

N/A


Generated at Mon Feb 12 09:41:40 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.