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

Problem with overloaded JSONWebServices

    Details

    • Branch Version/s:
      6.0.x
    • Backported to Branch:
      Committed

      Description

      What is going on: we have 3 overloaded get-user-places methods. This is their sorted order:

      1. GroupServiceUtil#getUserPlaces()
      2. GroupServiceUtil#getUserPlaces(classNames, max)
      3. GroupServiceUtil#getUserPlaces(userId, classNames, max)

      when /group/get-user-places is invoked (no extra params) we aim for the first method (1), with zero arguments.

      However, due to smart method arguments providing functionality, we have 'userId' set as well - this one comes from logged user. So JSONWebServiceActionsManagerImpl chooses method (3) over (1), since the most method arguments are matched.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor.spasic Igor Spasic (Inactive)
              Reporter:
              igor.spasic Igor Spasic (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 5 weeks, 1 day ago

                  Packages

                  Version Package
                  6.0.12 EE
                  6.1.0 CE RC1