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

Staging export/imports cannot be handled with normal use of JSON WS API in DXP (7.0)

    Details

      Description

      The import-layouts API within LayoutLocalServiceImpl was deprecated in 7.0 with no direct replacement. Since this deprecation is new, it effectively removes the feature of being able to do export/imports with JSON WS (now all the methods require an ExportImportConfiguration object that you can't get through JSON WS), and the removal was not documented in the breaking changes document for DXP, we must consider this removal a bug.

      In master, this may not be considered a bug, since this policy only applies to release versions.

      Steps to reproduce

      1. Start up Liferay, and navigate to localhost:8080/api/jsonws
      2. Attempt to invoke the import-layouts API in the "Layout" section (for LayoutLocalServiceImpl)
        • Result: an UnsupportedOperationException is thrown
      3. Check for other API to invoke an import with (API requiring an ExportImportConfiguration object cannot be invoked through JSON WS)

      Expected result: API in /api/jsonws can be used to invoke Liferay export/imports without customizations, like in previous versions
      Actual result: No API in /api/jsonws can be used without customizations to invoke Liferay export/imports

      Reproduced in 7.0.x: 63a9fbbad02e2672db95ced62989b30ca801909f

        Attachments

          Activity

            People

            Assignee:
            abel.yu Abel Yu (Inactive)
            Reporter:
            alec.shay Alec Shay
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 47 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP36
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.0 M1
                Master