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

LinkFieldFactory ignores workspaceName set on IdentifierToPathConverter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Neutral Neutral
    • None
    • 5.5
    • None

      The change brought in by MGNLUI-3683 basically makes any workspaceName set on the info.magnolia.ui.form.field.converter.IdentifierToPathConverter useless and it's basically ignored. This is due to the LinkFieldFactory overriding any workspaceName given with what it finds in its own definition (as targetWorkspace). Is the workspaceName of IdentifierToPathConverter? Is it deprecated now?

      Problematic code snippet
      IdentifierToPathConverter converter = definition.getIdentifierToPathConverter();
      if (converter != null) {
          converter.setWorkspaceName(definition.getTargetWorkspace());
      }
      linkField.setTextFieldConverter(converter);
      

        Acceptance criteria

              Unassigned Unassigned
              pmundt Philip Mundt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD