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

LinkFieldFactory ignores workspaceName set on IdentifierToPathConverter

    XMLWordPrintable

Details

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

    Description

      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);
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD