Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-71050

Importing LAR shows "Mirror with Overwriting" option even when not applicable

    Details

      Description

      When importing a LAR, the "Mirror with Overwriting" import strategy appears in the UI as a selectable "Update Data" option, even when it is not implemented.

      As of now, the only class that is leveraging this option is FileEntryStagedModelDataHandler. For the similar import strategy, "Copy as New," however, there is a method in the PortletDataHandler interface (isSupportsDataStrategyCopyAsNew()), which is used to allow portlets to indicate whether this option is supported, and thus whether it can be selected.

      The "Mirror with Overwriting" option should match this same pattern, so that portlets can signal that this option should be disabled to prevent an inconsistent and confusing UI where the option is not applicable.

      This API change is not testable in the UI.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 28 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP16
                  7.0.3 CE GA4
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.1.X
                  Master