Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6126

LinkField: Error if linked by path but field expects ID and vice versa, and deleted target should not render field empty

XMLWordPrintable

    • Yes
    • Maintenance 27, Maintenance 28, Maintenance 29, Maintenance 30
    • 5

      Situation:

      • In JCR is linked by path, but field expects by id
      • Or vice versa: In JCR is linked by id, but field expects by path
      • This can happen when changing the field's config, but still have old content. Migrations, try outs, artefact data etc

      Problem:

      • In both cases one can not open the dialog at all! => the author can not change it
      • In the past one just saw the plain property value.
      • In JCR is linked by path, but field expects by id
      Caused by: javax.jcr.RepositoryException: Not an absolute path: 5c2c69ec-925f-4aca-9321-a143a4b9b1d2
      • In JCR is linked by id, but field expects by path
      Caused by: java.lang.IllegalArgumentException: /travel/tour-type
      	at org.apache.jackrabbit.core.id.NodeId.<init>(NodeId.java:128) ~[jackrabbit-core-2.20.0.jar:2.20.0]

      Solution:

      About path vice versa:

      • If the stored value can not be resolved, let the dialog open.
      • Show the value as it is stored

      About the linked node is deleted:

      • The field shows empty! This is not good as the author doe snot see what the link was/where it linked to.
      • The field should show then the stored value, and maybe communicate that the target node is not resolvable.

        Acceptance criteria

              apchelintcev Aleksandr Pchelintcev
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 0.85h
                  0.85h