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

JSONWS does not support Enum parameters in remote services

Details

    Description

      It is not possible to invoke a remote service which includes Enum parameters in their signature.

      Steps to reproduce:

      • Open the class BlogsEntryServiceImpl
      • Add a new method `dummy` with one parameter of type `com.liferay.portal.kernel.transaction.Isolation`.
      • Regenerate the service with `gradle buildService`
      • Deploy both `blogs-api` and `blogs-service`
      • Go to `http://localhost:8080/api/jsonws` and look for the new method
      • Fill in the parameter with one of the enum values (e.g. `COUNTER`).

      Expected: The method is resolved and invoked.
      Actual: An errors is displayed in the logs and the method is not invoked.

      Attachments

        Activity

          People

            brian.chan Brian Chan
            adolfo.perez Adolfo Pérez
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 37 weeks, 1 day ago

              Packages

                Version Package
                7.1.10 DXP FP3
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master